aboutsummaryrefslogtreecommitdiff
path: root/src/lex.l
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2013-05-14 10:16:09 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2013-05-14 10:16:09 +0000
commite0fba6888fc9ee90d27ac03a06844b22bad101be (patch)
tree873f30cd678e3d2bfad4fd5e3ce4a9d878156037 /src/lex.l
parent10201217d141314a78a7937027bfdbdb7c994a43 (diff)
downloadgdbm-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.l5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lex.l b/src/lex.l
index fda3002..8596365 100644
--- a/src/lex.l
+++ b/src/lex.l
@@ -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;

Return to:

Send suggestions and report system problems to the System administrator.