diff options
author | Josh Triplett <josh@joshtriplett.org> | 2009-10-15 11:03:20 -0700 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2009-10-15 11:10:12 -0700 |
commit | 1456edbb1476db735715ddcc7ac306de587024eb (patch) | |
tree | 569701addf41a0e5ae68d78e1fd47e7ec6865575 /scripts/kconfig/zconf.y | |
parent | a3ccf63ee643ef243cbf8918da8b3f9238f10029 (diff) | |
download | op-kernel-dev-1456edbb1476db735715ddcc7ac306de587024eb.zip op-kernel-dev-1456edbb1476db735715ddcc7ac306de587024eb.tar.gz |
kconfig: Make zconf.y work with current bison
zconf.y includes zconf.hash.c from the initial code section.
zconf.hash.c references the token constants from zconf.y. However,
current bison defines the token constants after the initial code
section, making zconf.hash.c fail to compile. Move the include of
zconf.hash.c later in zconf.y, so bison puts it after the token
constants.
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'scripts/kconfig/zconf.y')
-rw-r--r-- | scripts/kconfig/zconf.y | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/scripts/kconfig/zconf.y b/scripts/kconfig/zconf.y index 9710b82..01ec550 100644 --- a/scripts/kconfig/zconf.y +++ b/scripts/kconfig/zconf.y @@ -14,8 +14,6 @@ #define LKC_DIRECT_LINK #include "lkc.h" -#include "zconf.hash.c" - #define printd(mask, fmt...) if (cdebug & (mask)) printf(fmt) #define PRINTD 0x0001 @@ -100,6 +98,11 @@ static struct menu *current_menu, *current_entry; menu_end_menu(); } if_entry menu_entry choice_entry +%{ +/* Include zconf.hash.c here so it can see the token constants. */ +#include "zconf.hash.c" +%} + %% input: stmt_list; |