aboutsummaryrefslogtreecommitdiff
path: root/src/preproc.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2016-06-20 16:16:15 +0300
committerSergey Poznyakoff <gray@gnu.org>2016-06-20 16:20:20 +0300
commit91610984e90d0062cb4ea50b37428559d5e4ede5 (patch)
tree99deb3719161a870e98eea008f4aaf8619855e58 /src/preproc.c
parent6ab660a7f9a9857a56cff44765144016356bd9f1 (diff)
downloadgrecs-91610984e90d0062cb4ea50b37428559d5e4ede5.tar.gz
grecs-91610984e90d0062cb4ea50b37428559d5e4ede5.tar.bz2
Avoid closing stdin.
The default grecs parser closes stdin before returning. This might cause grief for programs assuming that open(2) never returns 0. * src/grecs-lex.l (yywrap): Avoid closing stdin. The yyin variable has meaning only if grecs_preprocessor is set. Otherwise, it will be assigned the pointer to stdin by lex-generated code.
Diffstat (limited to 'src/preproc.c')
0 files changed, 0 insertions, 0 deletions

Return to:

Send suggestions and report system problems to the System administrator.