X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Flexer.c;h=8a3ccc21881c1cea1d2e9510fe88b9e1741c650e;hb=f62700038e9edd7d8002242015a900a15626bceb;hp=fe999ff1aff50c24c783bab6a96dfa12dcd3d9a6;hpb=4de79b34b329d1da6cdeb145993d3efd911e2967;p=pspp diff --git a/src/lexer.c b/src/lexer.c index fe999ff1af..8a3ccc2188 100644 --- a/src/lexer.c +++ b/src/lexer.c @@ -384,6 +384,22 @@ lex_get (void) #endif } +/* Reports an error to the effect that subcommand SBC may only be + specified once. */ +void +lex_sbc_only_once (const char *sbc) +{ + msg (SE, _("Subcommand %s may only be specified once."), sbc); +} + +/* Reports an error to the effect that subcommand SBC is + missing. */ +void +lex_sbc_missing (const char *sbc) +{ + lex_error (_("missing required subcommand %s"), sbc); +} + /* Prints a syntax error message containing the current token and given message MESSAGE (if non-null). */ void