X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=userv.git;a=blobdiff_plain;f=lexer.l.m4;h=575c2f17850d976a5a17615b2cfc46940710b6ea;hp=78aab9d4020f4ced1b63aa6942844679f82e6aa0;hb=6f3532c0d110bf8ecb7d84a50d2f9fd1e933ee46;hpb=5723a49791587f497380fee82d9c481faff2099c diff --git a/lexer.l.m4 b/lexer.l.m4 index 78aab9d..575c2f1 100644 --- a/lexer.l.m4 +++ b/lexer.l.m4 @@ -134,11 +134,10 @@ static struct error_handling eh = { tokv_word_errorstostderr, 0,0,0,0,0 }; static int dequote(char *inplace); static void countnewlines(void); -#define YY_NO_UNPUT - %} %option noyywrap +%option nounput %% @@ -156,7 +155,7 @@ changequote({*,*}) 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) @@ -167,7 +166,7 @@ changequote({*,*}) char *ep; lr_min= (int)strtoul(yytext,&ep,10); assert(*ep == HYPHEN); - assert(!*++ep); + ep++; assert(!*ep); lr_max=-1; return tokv_fdstoend; }