kconfig: kill no longer needed reference to YYDEBUG
authorArnaud Lacombe <lacombar@gmail.com>
Mon, 23 May 2011 06:08:18 +0000 (02:08 -0400)
committerArnaud Lacombe <lacombar@gmail.com>
Thu, 9 Jun 2011 18:04:43 +0000 (14:04 -0400)
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>

scripts/kconfig/lkc.h
scripts/kconfig/zconf.y

index febf0c9..f34a0a9 100644 (file)
@@ -68,9 +68,7 @@ struct kconf_id {
        enum symbol_type stype;
 };
 
-#ifdef YYDEBUG
 extern int zconfdebug;
-#endif
 
 int zconfparse(void);
 void zconfdump(FILE *out);
index 98c5716..377d04d 100644 (file)
@@ -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,8 @@ 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"))
                zconfdebug = 1;
-#endif
        zconfparse();
        if (zconfnerrs)
                exit(1);
@@ -590,9 +584,7 @@ static void zconf_error(const char *err, ...)
 
 static void zconferror(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)