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 7C228428CE; Tue, 4 Apr 2023 20:09:27 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4D0D8427E9; Tue, 4 Apr 2023 20:09:23 +0200 (CEST) Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by mails.dpdk.org (Postfix) with ESMTP id A366E410FB for ; Tue, 4 Apr 2023 20:09:20 +0200 (CEST) Received: by linux.microsoft.com (Postfix, from userid 1086) id B66F7210DDB4; Tue, 4 Apr 2023 11:09:19 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com B66F7210DDB4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1680631759; bh=1pVrjg/I84uiU3kefF1OzDhKSHG1S/hrJkVrupZfBYA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=S/UUENDxJsTimg+V8848IHlQd7f/bQqsGAQjjPVuoXlgIUUZpKCNPWzmZ3lMuY6kK uZ9+AZ/TdJRwxEjCMp6JCO/nCp1U+ErbYP4CemylSb1shfI9lOQMktJROWui+oed4f 9y2zV3Ic+rmz62o0isrFMZTx4Z+b7kb6lo/KPA8c= From: Tyler Retzlaff To: dev@dpdk.org Cc: ciara.power@intel.com, david.marchand@redhat.com, thomas@monjalon.net, konstantin.ananyev@huawei.com, Tyler Retzlaff Subject: [PATCH v4] improve code portability Date: Tue, 4 Apr 2023 11:09:15 -0700 Message-Id: <1680631756-7222-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. 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