diff options
| author | Arnaud Lacombe <lacombar@gmail.com> | 2011-05-23 02:08:18 -0400 |
|---|---|---|
| committer | Arnaud Lacombe <lacombar@gmail.com> | 2011-06-09 14:04:43 -0400 |
| commit | b96a0d0c78c878db6e6b5c02587ba69973e22d41 (patch) | |
| tree | 590529b064b44e4d22f735866aceb9d0219bceda /scripts/kconfig | |
| parent | 61f956f576031bea270ea54b10411ebb1e172b1b (diff) | |
kconfig: kill no longer needed reference to YYDEBUG
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
Diffstat (limited to 'scripts/kconfig')
| -rw-r--r-- | scripts/kconfig/lkc.h | 2 | ||||
| -rw-r--r-- | scripts/kconfig/zconf.y | 8 |
2 files changed, 0 insertions, 10 deletions
diff --git a/scripts/kconfig/lkc.h b/scripts/kconfig/lkc.h index febf0c94d558..f34a0a9b50f1 100644 --- a/scripts/kconfig/lkc.h +++ b/scripts/kconfig/lkc.h | |||
| @@ -68,9 +68,7 @@ struct kconf_id { | |||
| 68 | enum symbol_type stype; | 68 | enum symbol_type stype; |
| 69 | }; | 69 | }; |
| 70 | 70 | ||
| 71 | #ifdef YYDEBUG | ||
| 72 | extern int zconfdebug; | 71 | extern int zconfdebug; |
| 73 | #endif | ||
| 74 | 72 | ||
| 75 | int zconfparse(void); | 73 | int zconfparse(void); |
| 76 | void zconfdump(FILE *out); | 74 | void zconfdump(FILE *out); |
diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y index 98c57167ef7e..377d04d832d1 100644 --- a/scripts/kconfig/zconf.y +++ b/scripts/kconfig/zconf.y | |||
| @@ -31,10 +31,6 @@ struct symbol *symbol_hash[SYMBOL_HASHSIZE]; | |||
| 31 | 31 | ||
| 32 | static struct menu *current_menu, *current_entry; | 32 | static struct menu *current_menu, *current_entry; |
| 33 | 33 | ||
| 34 | #define YYDEBUG 0 | ||
| 35 | #if YYDEBUG | ||
| 36 | #define YYERROR_VERBOSE | ||
| 37 | #endif | ||
| 38 | %} | 34 | %} |
| 39 | %expect 30 | 35 | %expect 30 |
| 40 | 36 | ||
| @@ -503,10 +499,8 @@ void conf_parse(const char *name) | |||
| 503 | modules_sym->flags |= SYMBOL_AUTO; | 499 | modules_sym->flags |= SYMBOL_AUTO; |
| 504 | rootmenu.prompt = menu_add_prompt(P_MENU, "Linux Kernel Configuration", NULL); | 500 | rootmenu.prompt = menu_add_prompt(P_MENU, "Linux Kernel Configuration", NULL); |
| 505 | 501 | ||
| 506 | #if YYDEBUG | ||
| 507 | if (getenv("ZCONF_DEBUG")) | 502 | if (getenv("ZCONF_DEBUG")) |
| 508 | zconfdebug = 1; | 503 | zconfdebug = 1; |
| 509 | #endif | ||
| 510 | zconfparse(); | 504 | zconfparse(); |
| 511 | if (zconfnerrs) | 505 | if (zconfnerrs) |
| 512 | exit(1); | 506 | exit(1); |
| @@ -590,9 +584,7 @@ static void zconf_error(const char *err, ...) | |||
| 590 | 584 | ||
| 591 | static void zconferror(const char *err) | 585 | static void zconferror(const char *err) |
| 592 | { | 586 | { |
| 593 | #if YYDEBUG | ||
| 594 | fprintf(stderr, "%s:%d: %s\n", zconf_curname(), zconf_lineno() + 1, err); | 587 | fprintf(stderr, "%s:%d: %s\n", zconf_curname(), zconf_lineno() + 1, err); |
| 595 | #endif | ||
| 596 | } | 588 | } |
| 597 | 589 | ||
| 598 | static void print_quoted_string(FILE *out, const char *str) | 590 | static void print_quoted_string(FILE *out, const char *str) |
