Skip to content
Snippets Groups Projects
Commit bb61218c authored by Peter Eisentraut's avatar Peter Eisentraut
Browse files

Removed lextest, because lex'ed files are now in the distribution.

parent 759fba48
No related branches found
No related tags found
No related merge requests found
#
# Makefile - test for 2.5.3 flex bug
# Bruce Momjian 5/14/97
#
SRCDIR= ../
include ../Makefile.global
.DEFAULT all : lextest
install:
depend:
lextest: lextest.c scan.l
$(LEX) scan.l
$(CC) -c lex.yy.c
$(CC) -c lextest.c
$(CC) -o lextest lex.yy.o lextest.o
@echo "If this fails, flex is broken" | ./lextest || rm -f lextest
clean:
rm -f lextest$(X) lex.yy.c lex.yy.o lextest.o
dep:
/*
** lextest.c
**
** tests for flex 2.5.3 bug
*/
int
main()
{
yylex();
return 0;
}
int
yywrap()
{
return 1;
};
%{
/*
This should work, but non-patched flex 2.5.3 fails because input()
doesn't return EOF or '\0'
Bruce Momjian <root@candle.pha.pa.us>
*/
%}
%%
. {
int ch;
while ((ch = input()) != EOF && ch != '\0')
;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment