diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-14 10:16:09 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-05-14 10:16:09 +0000 |
commit | e0fba6888fc9ee90d27ac03a06844b22bad101be (patch) | |
tree | 873f30cd678e3d2bfad4fd5e3ce4a9d878156037 /src/lex.l | |
parent | 10201217d141314a78a7937027bfdbdb7c994a43 (diff) | |
download | gdbm-e0fba6888fc9ee90d27ac03a06844b22bad101be.tar.gz gdbm-e0fba6888fc9ee90d27ac03a06844b22bad101be.tar.bz2 |
Cleanup.
* src/datconv.c (s_float): Use strtod.
(datum_scan_notag, datum_scan_tag): Made static.
(dsprint): New function.
* src/gdbmtool.c (status_handler): Print ket and
content definitions.
(slist_new): Bugfix (missing return statement).
* src/gdbmtool.h: Add new prototypes.
* src/lex.l: Remove unused variables, set option
nounput.
Diffstat (limited to 'src/lex.l')
-rw-r--r-- | src/lex.l | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -131,7 +131,6 @@ findctx (struct stat *st) int setsource (const char *name, int intr) { - int rc; struct stat st; struct context *cp; FILE *fp; @@ -190,6 +189,8 @@ setsource (const char *name, int intr) } %} +%option nounput + %x STR DEF WS [ \t][ \t]* @@ -201,7 +202,7 @@ O [0-7] %% ^[ \t]*#[ \t]*line[ \t].*\n { - char *p, *q; + char *p; char *file = NULL; int line, len; |