aboutsummaryrefslogtreecommitdiff
path: root/src/lex.l
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-05-15 18:31:55 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2013-05-15 18:31:55 +0000
commit04d75f9797ce3d117e0f8a18f925c096014ed1fa (patch)
tree3aec2ba937c52b5f12e3bc75703cbb668eb0a17f /src/lex.l
parentbd1fd16d2eab21688a1e9b536821eae4970cedfd (diff)
downloadgdbm-04d75f9797ce3d117e0f8a18f925c096014ed1fa.tar.gz
gdbm-04d75f9797ce3d117e0f8a18f925c096014ed1fa.tar.bz2
Implement the "quiet" variable.
* src/var.c (vartab) <quiet>: New variable. (variable_is_true): Return 0 if the value cannot be retrieved. * src/gdbmtool.c (optab): New option --file (-f). (main): Handle the --file option. Retrieve the "quiet" setting from the variable. * src/lex.l (context_pop): Clear both point.file and yylloc.
Diffstat (limited to 'src/lex.l')
-rw-r--r--src/lex.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lex.l b/src/lex.l
index 919bbad..d8d9eb0 100644
--- a/src/lex.l
+++ b/src/lex.l
@@ -100,6 +100,8 @@ context_pop ()
fclose (yyin);
yyin = NULL;
free (point.file);
+ point.file = NULL;
+ memset (&yylloc, 0, sizeof (yylloc));
if (!cp)
return 1;

Return to:

Send suggestions and report system problems to the System administrator.