From patchwork Mon May 23 08:10:34 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Lacombe X-Patchwork-Id: 807942 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4N8B6oY032713 for ; Mon, 23 May 2011 08:11:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753940Ab1EWILM (ORCPT ); Mon, 23 May 2011 04:11:12 -0400 Received: from mail-iy0-f174.google.com ([209.85.210.174]:45855 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753887Ab1EWILK (ORCPT ); Mon, 23 May 2011 04:11:10 -0400 Received: by mail-iy0-f174.google.com with SMTP id 14so4457027iyb.19 for ; Mon, 23 May 2011 01:11:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=mXffpB4ccro5SSEjXd76BvpO6Yn2ZrEU5m5ZYnu9tp4=; b=dKv4N/Ocjki5kbDjxqanKvYwZTv6suGnORphk38WZMmT0/PpvTcY2T7MEh9NqFgCdJ bRLM1HBefGYktawQZ+l70zE4VTVSN/UAUgRgyG4JtJPl5XYY67CakBFSEBKKqcSFU+96 U0ho2gIbK0dosV2tC9cv65ic0K/xCd9rQA694= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=hED9LJCeRURrU3o0QL3hkd9+QzhOdCLr/Mt3G2GgUxW7JPNjR1khxBKpAC/cKW4iib 06qDtGTSZt1sdmRMQX9r3m6QtZPzmA9ZEbr3JihI7njvKVwmWZ+cqnlehSzGjDQMgLZG ez5YaKK1nru6Dieh8NIvx/ifGnGv12v4BToac= Received: by 10.42.217.138 with SMTP id hm10mr8674615icb.205.1306138270644; Mon, 23 May 2011 01:11:10 -0700 (PDT) Received: from localhost.localdomain (76-10-146-236.dsl.teksavvy.com [76.10.146.236]) by mx.google.com with ESMTPS id gy41sm2820660ibb.56.2011.05.23.01.11.09 (version=SSLv3 cipher=OTHER); Mon, 23 May 2011 01:11:10 -0700 (PDT) From: Arnaud Lacombe To: linux-kbuild@vger.kernel.org Cc: Michal Marek , Arnaud Lacombe Subject: [RFCv2 08/13] kconfig: kill no longer needed reference to YYDEBUG Date: Mon, 23 May 2011 04:10:34 -0400 Message-Id: <1306138239-13440-9-git-send-email-lacombar@gmail.com> X-Mailer: git-send-email 1.7.3.4.574.g608b.dirty In-Reply-To: <1306138239-13440-1-git-send-email-lacombar@gmail.com> References: <1306138239-13440-1-git-send-email-lacombar@gmail.com> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 23 May 2011 08:11:12 +0000 (UTC) --- scripts/kconfig/lkc.h | 2 -- scripts/kconfig/zconf.y | 12 +++--------- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index 716c36c..81d25b0 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h @@ -68,9 +68,7 @@ struct kconf_id { enum symbol_type stype; }; -#ifdef YYDEBUG extern int yyebug; -#endif int zconfparse(void); void zconfdump(FILE *out); diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y index 8564238..8f8dc70 100644 --- a/scripts/kconfig/zconf.y +++ b/scripts/kconfig/zconf.y @@ -31,10 +31,6 @@ struct symbol *symbol_hash[SYMBOL_HASHSIZE]; static struct menu *current_menu, *current_entry; -#define YYDEBUG 0 -#if YYDEBUG -#define YYERROR_VERBOSE -#endif %} %expect 30 @@ -503,10 +499,10 @@ void conf_parse(const char *name) modules_sym->flags |= SYMBOL_AUTO; rootmenu.prompt = menu_add_prompt(P_MENU, "Linux Kernel Configuration", NULL); -#if YYDEBUG - if (getenv("ZCONF_DEBUG")) + if (getenv("ZCONF_DEBUG")) { + extern int yydebug; yydebug = 1; -#endif + } yyparse(); if (yynerrs) exit(1); @@ -590,9 +586,7 @@ static void zconf_error(const char *err, ...) static void yyerror(const char *err) { -#if YYDEBUG fprintf(stderr, "%s:%d: %s\n", zconf_curname(), zconf_lineno() + 1, err); -#endif } static void print_quoted_string(FILE *out, const char *str)