X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/3208e3f4d9aff080a546685560536336f0852bcb..ce268795cc020e408845fd4d1fefeddab121fe3d:/src/scan-gram.l diff --git a/src/scan-gram.l b/src/scan-gram.l index 5c0418c6..de93b95c 100644 --- a/src/scan-gram.l +++ b/src/scan-gram.l @@ -18,7 +18,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -%option debug nodefault nounput noyywrap never-interactive +%option debug nodefault noinput nounput noyywrap never-interactive %option prefix="gram_" outfile="lex.yy.c" %{ @@ -500,9 +500,9 @@ splice (\\[ \f\t\v]*\n)* { /* FIXME: Eventually, make these errors. */ size_t length = strlen (last_string); - if (strlen (last_string) < 3) + if (length < 3) warn_at (*loc, _("empty character literal")); - else if (strlen (last_string) > 3) + else if (length > 3) warn_at (*loc, _("extra characters in character literal")); } if (yytext[0] == '\n')