chiark
/
gitweb
/
~ian
/
userv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
changelog WIP
[userv.git]
/
lexer.l
diff --git
a/lexer.l
b/lexer.l
index 5b98073c2b8cc88f697680784c60afcf8566cdfb..17b757d9a12aa2669f3074a84c7774e2a156e574 100644
(file)
--- a/
lexer.l
+++ b/
lexer.l
@@
-249,7
+249,7
@@
error { lr_dir= df_error; lr_loglevel= LOG_ERR; return tokv_word_error; }
char *ep;
lr_min= (int)strtoul(yytext,&ep,10);
assert(*ep == HYPHEN);
char *ep;
lr_min= (int)strtoul(yytext,&ep,10);
assert(*ep == HYPHEN);
-
assert(*++
ep);
+
ep++; assert(*
ep);
lr_max= (int)strtoul(ep,&ep,10);
assert(!*ep);
if (lr_max < lr_min)
lr_max= (int)strtoul(ep,&ep,10);
assert(!*ep);
if (lr_max < lr_min)
@@
-260,7
+260,7
@@
error { lr_dir= df_error; lr_loglevel= LOG_ERR; return tokv_word_error; }
char *ep;
lr_min= (int)strtoul(yytext,&ep,10);
assert(*ep == HYPHEN);
char *ep;
lr_min= (int)strtoul(yytext,&ep,10);
assert(*ep == HYPHEN);
-
assert(!*++
ep);
+
ep++; assert(!*
ep);
lr_max=-1;
return tokv_fdstoend;
}
lr_max=-1;
return tokv_fdstoend;
}