From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 73731428D0; Wed, 5 Apr 2023 20:53:02 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1BF8842B7E; Wed, 5 Apr 2023 20:52:58 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id 97898400D7 for ; Wed, 5 Apr 2023 20:52:54 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id D0F18210DEE3; Wed, 5 Apr 2023 11:52:53 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com D0F18210DEE3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1680720773; bh=RDMmRcrvAXBjcYrdqgeojNbrE/GO75A6MyWzBiIdGwg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MNsWMGK3JYccnwHrXoXSLwKC3glCS2AZoG3rtHTQVxtiQdfAT/1DLZm7Hja6PuLJL 6GN2On0vMYchXj4TrnI9FfboEUHkShgXXgnYYehpPL/xyyGKpOaGkNBxzAU0BCot8o uYZ0Giw+LM3eKuSIn2zkBkqQfLLTQ9sit/rEpnUI= From: Tyler Retzlaff To: dev@dpdk.org Cc: ciara.power@intel.com, bruce.richardson@intel.com, david.marchand@redhat.com, thomas@monjalon.net, konstantin.ananyev@huawei.com, Tyler Retzlaff Subject: [PATCH v5] improve code portability Date: Wed, 5 Apr 2023 11:52:51 -0700 Message-Id: <1680720772-31405-1-git-send-email-roretzla@linux.microsoft.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1680539424-20255-1-git-send-email-roretzla@linux.microsoft.com> References: <1680539424-20255-1-git-send-email-roretzla@linux.microsoft.com> X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Improve portability of telemetry code to allow it to be compiled by msvc unconditionally. Remove use of designated initialization ranges (gcc extension). Instead use a combination of a trivially initialized array and standard C isalnum. v5: * declare allowed array static * fix alpha-numeric -> alphanumeric (ci warning) v4: * Re-implement using isalnum and sparsely populated array. v3: * Move int index declaration to top of function * Fix typo 'Z' -> 'z' in last for loop v2: * Initialize valid character array using for loop instead of explicit initialization of each element. * Drop patch removing VLAs, in a separate series a conditionally compiled change will be introduced. Tyler Retzlaff (1): telemetry: remove non-portable array initialization syntax lib/telemetry/telemetry_data.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) -- 1.8.3.1