diff mbox

[RFCv2,08/13] kconfig: kill no longer needed reference to YYDEBUG

Message ID 1306138239-13440-9-git-send-email-lacombar@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Arnaud Lacombe May 23, 2011, 8:10 a.m. UTC
---
 scripts/kconfig/lkc.h   |    2 --
 scripts/kconfig/zconf.y |   12 +++---------
 2 files changed, 3 insertions(+), 11 deletions(-)
diff mbox

Patch

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)