Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd906936

Browse files
committed
Add test for flex bug as part of make, and point them to README.flex.
1 parent650638c commitd906936

File tree

4 files changed

+35
-1
lines changed

4 files changed

+35
-1
lines changed

‎src/GNUmakefile.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88
#
99
# IDENTIFICATION
10-
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.12 1997/04/15 18:17:43 scrappy Exp $
10+
# $Header: /cvsroot/pgsql/src/Attic/GNUmakefile.in,v 1.13 1997/05/14 03:32:16 momjian Exp $
1111
#
1212
#-------------------------------------------------------------------------
1313

@@ -30,6 +30,7 @@ all:
3030
false ;\
3131
else true;\
3232
fi
33+
$(MAKE) -C lextest all
3334
$(MAKE) -C utils all
3435
$(MAKE) -C backend all
3536
$(MAKE) -C libpq all

‎src/lextest/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#
2+
# Makefile - tests for 2.5.3 flex bug
3+
#
4+
#
5+
lextest : lextest.c scan.l
6+
$(LEX) scan.l
7+
$(CC) -c lex.yy.c
8+
$(CC) -c lextest.c
9+
$(CC) -o lextest lex.yy.o lextest.o
10+
@echo"If this fails, flex is broken"| lextest||echo"You have a buggy version of flex. Read doc/README.flex for a fix."
11+
12+
clean:
13+
rm -f lextest lex.yy.c lex.yy.o lextest.o

‎src/lextest/lextest.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
main()
2+
{
3+
yylex();
4+
return;
5+
}
6+
7+
yywrap()
8+
{
9+
return1;
10+
};

‎src/lextest/scan.l

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
This should work, but non-patched flex 2.5.3 fails because input()
3+
doesn'treturn EOF
4+
Bruce Momjian <root@candle.pha.pa.us>
5+
*/
6+
%%
7+
.{
8+
while (input() != EOF)
9+
;
10+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp