Skip to content

Commit

Permalink
switch to using new bison skeleton
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmonktastic committed Sep 16, 2011
1 parent ae5eb43 commit 83aad72
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions generic.mk.in
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ALLCFLAGS = -g -D$(VARIANT) \
$(READLINE_INCLUDE) $(OPENGL_INCLUDE) $(PNG_INCLUDE) \
$(DEFS) $(X_CFLAGS) $(CONF_CFLAGS) $(CFLAGS)

PARSER_SKEL = ../bison/bison.simple
PARSER_SKEL = ../bison/custom_yacc.c

PARSER_OBJ = $(PARSER_OUT:.c=.o)

Expand All @@ -73,10 +73,8 @@ $(LIB): $(OBJS)
# -p instead. If NOTATION_PREFIX is blank, don't do the -p option.
$(PARSER_OUT): $(PARSER_SOURCE) $(PARSER_SKEL)
if test -z "$(NOTATION_PREFIX)"; \
then BISON_SIMPLE=$(PARSER_SKEL) \
$(BISON) -v --defines -o $@ $(PARSER_SOURCE); \
else BISON_SIMPLE=$(PARSER_SKEL) \
$(BISON) -v -p $(NOTATION_PREFIX) \
then $(BISON) -S $(PARSER_SKEL) -v --defines -o $@ $(PARSER_SOURCE); \
else $(BISON) -S $(PARSER_SKEL) -v -p $(NOTATION_PREFIX) \
--defines -o $@ $(PARSER_SOURCE); fi

# Bison's -p fails to translate the yyrestart name, so do it here...
Expand Down

0 comments on commit 83aad72

Please sign in to comment.