X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Flexer%2Flexer.c;h=7d40ce1cd50a39ad70baabc9547855d74d5caada;hb=39df27f80745cf9622ac5e916a098c17961c2585;hp=1fadf53b3079e9758bc4e13a5fc8bc36f1d0a046;hpb=5e2aadfa3a7df06abf118bdac7e663d58fd52877;p=pspp diff --git a/src/language/lexer/lexer.c b/src/language/lexer/lexer.c index 1fadf53b30..7d40ce1cd5 100644 --- a/src/language/lexer/lexer.c +++ b/src/language/lexer/lexer.c @@ -530,6 +530,12 @@ lex_error_expecting_array (struct lexer *lexer, const char **options, size_t n) options[5], options[6], options[7]); break; + case 9: + lex_error (lexer, _("expecting %s, %s, %s, %s, %s, %s, %s, %s, or %s"), + options[0], options[1], options[2], options[3], options[4], + options[5], options[6], options[7], options[8]); + break; + default: lex_error (lexer, NULL); } @@ -1862,7 +1868,7 @@ lex_source_syntax__ (const struct lex_source *src, int ofs0, int ofs1) static bool lex_source_contains_macro_call (struct lex_source *src, int n0, int n1) { - for (size_t i = n0; i <= n1; i++) + for (int i = n0; i <= n1; i++) if (lex_source_next__ (src, i)->macro_rep) return true; return false;