projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b5c83f
)
Allow for EOF or \0 as input() return from lex.
author
Bruce Momjian
Mon, 2 Jun 1997 13:55:19 +0000
(13:55 +0000)
committer
Bruce Momjian
Mon, 2 Jun 1997 13:55:19 +0000
(13:55 +0000)
src/lextest/scan.l
patch
|
blob
|
blame
|
history
diff --git
a/src/lextest/scan.l
b/src/lextest/scan.l
index 6f801376a335f9ea8fc2cdfde37abfe6c4921eed..5a20a5fa5f048de1b630f21fc1ff80bac37de869 100644
(file)
--- a/
src/lextest/scan.l
+++ b/
src/lextest/scan.l
@@
-1,10
+1,11
@@
/*
This should work, but non-patched flex 2.5.3 fails because input()
- doesn't return EOF
+ doesn't return EOF
or '\0'
Bruce Momjian
*/
%%
. {
- while (input() != EOF)
+ int ch;
+ while ((ch = input()) != EOF && ch != '\0')
;
}