Makefile.in (gengtype-lex.c): Work around a bug in flex.
* Makefile.in (gengtype-lex.c): Work around a bug in flex. * gengtype-lex.l (YY_USE_PROTOS): Undef. (YY_DECL): Define. From-SVN: r55803
This commit is contained in:
parent
a3926fe192
commit
e66f55b878
@ -1,3 +1,9 @@
|
||||
2002-07-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
|
||||
|
||||
* Makefile.in (gengtype-lex.c): Work around a bug in flex.
|
||||
* gengtype-lex.l (YY_USE_PROTOS): Undef.
|
||||
(YY_DECL): Define.
|
||||
|
||||
2002-07-27 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* doc/invoke.texi: Document that both -fno-builtin-foo and
|
||||
|
@ -2035,9 +2035,17 @@ gengtype-yacc.o : gengtype-yacc.c gengtype.h $(HCONFIG_H) $(SYSTEM_H)
|
||||
$(HOST_CC) -c $(HOST_CFLAGS) $(HOST_CPPFLAGS) $(INCLUDES) \
|
||||
$(srcdir)/gengtype-yacc.c $(OUTPUT_OPTION)
|
||||
|
||||
# The sed command works around a bug in flex-2.5.4.
|
||||
$(srcdir)/gengtype-lex.c : $(srcdir)/gengtype-lex.l
|
||||
$(FLEX) $(FLEXFLAGS) -o$@ $(srcdir)/gengtype-lex.l \
|
||||
|| ( rm -f $@ && false )
|
||||
cd $(srcdir) && \
|
||||
$(FLEX) $(FLEXFLAGS) -t -o$@ $(srcdir)/gengtype-lex.l | \
|
||||
sed 's/^\(char msg\[\];\)/yyconst \1/' > g-$$$$ ; \
|
||||
if test $$? -eq 0 ; then \
|
||||
mv -f g-$$$$ gengtype-lex.c ; \
|
||||
else \
|
||||
rm -f g-$$$$.* ; \
|
||||
false ; \
|
||||
fi
|
||||
|
||||
$(srcdir)/gengtype-yacc.c: $(srcdir)/gengtype-yacc.y
|
||||
(cd $(srcdir) && \
|
||||
|
@ -28,6 +28,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
||||
#include "gengtype.h"
|
||||
#include "gengtype-yacc.h"
|
||||
|
||||
#undef YY_USE_PROTOS
|
||||
#define YY_DECL int yylex ()
|
||||
|
||||
static void update_lineno PARAMS ((const char *l, size_t len));
|
||||
|
||||
struct fileloc lexer_line;
|
||||
|
Loading…
Reference in New Issue
Block a user