X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=blobdiff_plain;f=parser.c;h=037e6f9fe19a49eef2b4a88fac87e80645acb964;hb=5df3f68d0d1f7d3e82a4421ca5252b2be7c540f7;hp=3f40ffb71ed99b8eec4cb7c83861f1637306897c;hpb=36df57f725905f613109b8b610efd60ec0952c77;p=userv.git diff --git a/parser.c b/parser.c index 3f40ffb..037e6f9 100644 --- a/parser.c +++ b/parser.c @@ -148,7 +148,7 @@ static int dequote(char *inplace) { int v; p=q=inplace; - assert(*p++ = '"'); + assert(*p=='"'); p++; while (*p && *p != '"') { if (*p != '\\') { *q++= *p++; continue; } switch (*++p) { @@ -183,7 +183,7 @@ static int dequote(char *inplace) { } } } - assert(*p); assert(!*++p); + assert(*p); p++; assert(!*p); *q++= 0; return tokv_quotedstring; } @@ -422,7 +422,7 @@ static int skip(int allowce) { for (;;) { /* loop over lines */ cstate->reportlineno= cstate->lineno; - do { token= yylex(); } while (token == tokv_lwsp); + do { token= yylex(); } while (token == tokv_lwsp || token == tokv_newline); if (token & tokt_exception) { return token; } else if (token & tokt_controlend) {