Skip to content

Commit

Permalink
kconfig: kill no longer needed reference to YYDEBUG
Browse files Browse the repository at this point in the history
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
  • Loading branch information
Arnaud Lacombe committed Jun 9, 2011
1 parent 61f956f commit b96a0d0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions scripts/kconfig/lkc.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ struct kconf_id {
enum symbol_type stype;
};

#ifdef YYDEBUG
extern int zconfdebug;
#endif

int zconfparse(void);
void zconfdump(FILE *out);
Expand Down
8 changes: 0 additions & 8 deletions scripts/kconfig/zconf.y
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b96a0d0

Please sign in to comment.