Skip to content

Commit

Permalink
Per #2408, update vx_config Makefiles to reset yystate = 0 to = 8 imm…
Browse files Browse the repository at this point in the history
…ediately after its created.
  • Loading branch information
JohnHalleyGotway committed Jan 13, 2023
1 parent c1f1d20 commit 48718d5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/basic/vx_config/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@ MAINTAINERCLEANFILES = Makefile.in
include ${top_srcdir}/Make-include

# Yacc/lex flags
# Initialize yystate to 8 to allow for empty configuartion files

AM_YFLAGS = --defines=config.tab.h -p config
AM_YFLAGS = --defines=config.tab.h -p config ; \
cat config.tab.cc | sed 's/yystate = 0;/yystate = 8;/g' > config.tab.cc.patch ; \
mv config.tab.cc.patch config.tab.cc

# The library

Expand Down
6 changes: 5 additions & 1 deletion src/basic/vx_config/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,11 @@ top_srcdir = @top_srcdir@
MAINTAINERCLEANFILES = Makefile.in

# Yacc/lex flags
AM_YFLAGS = --defines=config.tab.h -p config
# Initialize yystate to 8 to allow for empty configuartion files
AM_YFLAGS = --defines=config.tab.h -p config ; \
cat config.tab.cc | sed 's/yystate = 0;/yystate = 8;/g' > config.tab.cc.patch ; \
mv config.tab.cc.patch config.tab.cc


# The library
noinst_LIBRARIES = libvx_config.a
Expand Down

0 comments on commit 48718d5

Please sign in to comment.