Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1861838ybt; Thu, 2 Jul 2020 16:13:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGFoqDoUuK/uWZDHvF4kAN2wtmjis8v5lkO2ggSyimBBnVtU/oTHeKF1TjctsyF/CL9Swb X-Received: by 2002:a17:906:7cc4:: with SMTP id h4mr13225611ejp.339.1593731618042; Thu, 02 Jul 2020 16:13:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593731618; cv=none; d=google.com; s=arc-20160816; b=dOnm/7W1blO0TTQdTG0qxskp7G84jyXFJ1FSVeX5+p2Zsxb5DU4LLqes6rExTXzptu yOdzlgf3FyQrYOjQKRmKhCet3B+LBoRK5rxI1zchNFbRVnkF5+ty1YQCSY8HA7I9E8z7 yqFyzzcT3ns9y8ND6i5fCDfzmJtdzrs59pBreyLHvBPwvJMpqrm/hfn9uTdbOh+9SLXe xryDcL7p69+unDfj0oxxRYSOVT3IWY3qstxZU0L1u02mDcasSxwtwKgjltl2JfSQhUlT F6x3fZVwhW0GupuJmCxj7wZDg2CGEOhVVg2C0bjayMue8UY95HrE1rsepxI0VjQDokPb bhKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=VHCTMmbjnxLnBVTnwczuP/hIItaJS+A9i2ZXuCEHkYs=; b=tCs84/Wmy0jRZ3yNkXA43FGz8ubipujMcq2lGACW1S5XK/Uto9je9vj0n81ow+xmFH ijY0RrVjFmcn0wdVQJ2Q3tFnklEVLjX64db9+YKtq0QiLuLpM0a4XZhScQ61GLrZr1hE R/qs6aPsvsF8qbfLKkMdJMbxCAREOD9nO4ld9wNxOeBEuSGVomu2URzuu75G39sf/OqC lUQeMFNCvKaBG+bMBQgIWOjcp8Sqt38MwJsCb/hnWO4H2tV46Qwp/A0BbLhxQaTJDM/j Viw/duanhM/jhTTqVAFCLMjUXyjJ1rZ5A+voc6TgMNIAxqYXy9sSEVU+X8/LlLbYm5fl D8Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jkrF+vaw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k8si6788909ejc.257.2020.07.02.16.13.15; Thu, 02 Jul 2020 16:13:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jkrF+vaw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726895AbgGBXL5 (ORCPT + 99 others); Thu, 2 Jul 2020 19:11:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726639AbgGBXLO (ORCPT ); Thu, 2 Jul 2020 19:11:14 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 561F3C08C5C1 for ; Thu, 2 Jul 2020 16:11:14 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id a8so24565958edy.1 for ; Thu, 02 Jul 2020 16:11:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=VHCTMmbjnxLnBVTnwczuP/hIItaJS+A9i2ZXuCEHkYs=; b=jkrF+vawtQkDtMYq+PHc5/+8EtghPoxY+NzFDSdKTw6VzTd3xeTEnGmI3r+pKnS1MO bycVqbHQgdQE6F9H61UQJSD/zp9FqBjMUcsjBtD9NwQ9OY9NDEJcZPVM7PZ11dqcTbpx lftfYOCRfdxVSrj5LU4xLGpk/ioO8A1t6MwaJgVfA0ujOpSq2WLHwX0afJ2BlyXG6DcV WitIXN0Ma7A3seNwnBXDKeCT50j5vMcXcHcosO1pgvB+PIuQJ6rJdFfEFteM58thBWUC SiVzFhhgdBFZZr9D7t42XpjQY8eKwkME0X7dQknvs12XaVzYCizQU+7iOdtOiDePoQuj dO4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=VHCTMmbjnxLnBVTnwczuP/hIItaJS+A9i2ZXuCEHkYs=; b=gaiZ8Vyuf08Lcwd1WBmUk3hRtMaPDM8EoRzJShsPhhhQX10JFUnah0K6Kad/TH226b DB+bC3BJUjQsBoFO/ADUBGHGfCQ+7aeyxvPR0lqYXtoiL8KeocdwkFb6mdyEeJrzAQnF 6j7ABXJLTmjd6SxkhwkCy5oFjU4O5oHTg9ZjqzfFtn03DeiU6QfvyJRKuTvSW7HLRV/2 aUE6C+Ly4e74RgmZWgazRYqQSCliI1RZgW1nfu21fcyfMqwt+PLct+zBHXGYwwJWKJPD ePhPFimbIKjKg2oylhyLuvg38bx+IeAfmeItwPBaj5PmTStTBXQIAYb2W04l/nWs3ZnT bVcA== X-Gm-Message-State: AOAM532DieQeewl3IfX6wsy+1ATiXt17C4NKnZ3aJUmPrFL2FtvpWz80 sW/OqkqN6Uzobeu8dpJmBstZzSWB X-Received: by 2002:aa7:c883:: with SMTP id p3mr38425083eds.128.1593731472826; Thu, 02 Jul 2020 16:11:12 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:b7f9:7600:bd38:c82d:5283:9f1]) by smtp.gmail.com with ESMTPSA id x9sm8214031ejw.28.2020.07.02.16.11.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 16:11:12 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck Subject: [PATCH 08/15] options: avoid spaces between function name and arguments list Date: Fri, 3 Jul 2020 01:10:32 +0200 Message-Id: <20200702231039.55015-9-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200702231039.55015-1-luc.vanoostenryck@gmail.com> References: <20200702231039.55015-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's a stylistic detail but a lot of the strcmp() calls used for the processing of the options are written 'strcmp (...)'. Two other functions calls are also in the case. Reformat them to the usual style for function calls: without the space between the function name and the arguments. Signed-off-by: Luc Van Oostenryck --- lib.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/lib.c b/lib.c index 5f4e6b2d76c8..b3bacb180cac 100644 --- a/lib.c +++ b/lib.c @@ -570,7 +570,7 @@ OPT_NUMERIC(uint, unsigned int, strtoul) static char **handle_switch_a(char *arg, char **next) { - if (!strcmp (arg, "ansi")) + if (!strcmp(arg, "ansi")) standard = STANDARD_C89; return next; @@ -759,7 +759,7 @@ static char **handle_switch_f(char *arg, char **next) static char **handle_switch_G(char *arg, char **next) { - if (!strcmp (arg, "G") && *next) + if (!strcmp(arg, "G") && *next) return next + 1; // "-G 0" else return next; // "-G0" or (bogus) terminal "-G" @@ -775,7 +775,7 @@ static char **handle_base_dir(char *arg, char **next) static char **handle_switch_g(char *arg, char **next) { - if (!strcmp (arg, "gcc-base-dir")) + if (!strcmp(arg, "gcc-base-dir")) return handle_base_dir(arg, next); return next; @@ -907,7 +907,7 @@ static char **handle_nostdinc(char *arg, char **next) static char **handle_switch_n(char *arg, char **next) { - if (!strcmp (arg, "nostdinc")) + if (!strcmp(arg, "nostdinc")) return handle_nostdinc(arg, next); return next; @@ -925,7 +925,7 @@ static char **handle_switch_O(char *arg, char **next) static char **handle_switch_o(char *arg, char **next) { - if (!strcmp (arg, "o")) { // "-o foo" + if (!strcmp(arg, "o")) { // "-o foo" if (!*++next) die("argument to '-o' is missing"); outfile = *next; @@ -949,23 +949,23 @@ static char **handle_switch_p(char *arg, char **next) static char **handle_switch_s(const char *arg, char **next) { if ((arg = match_option(arg, "std="))) { - if (!strcmp (arg, "c89") || - !strcmp (arg, "iso9899:1990")) + if (!strcmp(arg, "c89") || + !strcmp(arg, "iso9899:1990")) standard = STANDARD_C89; - else if (!strcmp (arg, "iso9899:199409")) + else if (!strcmp(arg, "iso9899:199409")) standard = STANDARD_C94; - else if (!strcmp (arg, "c99") || - !strcmp (arg, "c9x") || - !strcmp (arg, "iso9899:1999") || - !strcmp (arg, "iso9899:199x")) + else if (!strcmp(arg, "c99") || + !strcmp(arg, "c9x") || + !strcmp(arg, "iso9899:1999") || + !strcmp(arg, "iso9899:199x")) standard = STANDARD_C99; - else if (!strcmp (arg, "gnu89")) + else if (!strcmp(arg, "gnu89")) standard = STANDARD_GNU89; - else if (!strcmp (arg, "gnu99") || !strcmp (arg, "gnu9x")) + else if (!strcmp(arg, "gnu99") || !strcmp(arg, "gnu9x")) standard = STANDARD_GNU99; else if (!strcmp(arg, "c11") || @@ -986,7 +986,7 @@ static char **handle_switch_s(const char *arg, char **next) standard = STANDARD_GNU17; else - die ("Unsupported C dialect"); + die("Unsupported C dialect"); } return next; @@ -995,7 +995,7 @@ static char **handle_switch_s(const char *arg, char **next) static char **handle_switch_U(char *arg, char **next) { const char *name = arg + 1; - add_pre_buffer ("#undef %s\n", name); + add_pre_buffer("#undef %s\n", name); return next; } @@ -1516,7 +1516,7 @@ static struct symbol_list *sparse_file(const char *filename) int fd; struct token *token; - if (strcmp (filename, "-") == 0) { + if (strcmp(filename, "-") == 0) { fd = 0; } else { fd = open(filename, O_RDONLY); -- 2.27.0