X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flanguage%2Flexer%2Fq2c.c;h=cf8e53ee5cb881529ead693e0328f66e520a300b;hb=38993354cabb6fc37bb882be92f9a49e9aeb4c88;hp=f2617092b3368c6173a4676ee549b3bf7cb320d5;hpb=a0cd09d576acbe8a956c004579bab98fc5112bfe;p=pspp diff --git a/src/language/lexer/q2c.c b/src/language/lexer/q2c.c index f2617092b3..cf8e53ee5c 100644 --- a/src/language/lexer/q2c.c +++ b/src/language/lexer/q2c.c @@ -225,11 +225,11 @@ st_upper (const char *s) /* Returns the address of the first non-whitespace character in S, or the address of the null terminator if none. */ static char * -skip_ws (const char *s) +skip_ws (char *s) { while (isspace ((unsigned char) *s)) s++; - return (char *) s; + return s; } /* Read one line from the input file into buf. Lines having special @@ -1534,7 +1534,7 @@ dump_specifier_parse (const specifier *spec, const subcommand *sbc) else if (s->value == VAL_STRING) { dump (1, "if (lex_token (lexer) != T_ID " - "&& lex_token (lexer) != T_STRING)"); + "&& !lex_is_string (lexer))"); dump (1, "{"); dump (0, "msg (SE, _(\"%s specifier of %s subcommand " "requires a string argument.\"));",