=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/bc/scan.l,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/bc/scan.l 2003/09/28 07:57:57 1.5 --- src/usr.bin/bc/scan.l 2003/09/29 03:24:27 1.6 *************** *** 1,5 **** %{ ! /* $OpenBSD: scan.l,v 1.5 2003/09/28 07:57:57 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek --- 1,5 ---- %{ ! /* $OpenBSD: scan.l,v 1.6 2003/09/29 03:24:27 otto Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek *************** *** 18,24 **** */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: scan.l,v 1.5 2003/09/28 07:57:57 otto Exp $"; #endif /* not lint */ #include --- 18,24 ---- */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: scan.l,v 1.6 2003/09/29 03:24:27 otto Exp $"; #endif /* not lint */ #include *************** *** 88,102 **** } \\\n[ \t]* lineno++; [^0-9A-F\.] { ! if (strcmp(strbuf, ".") == 0) { ! yyerror("syntax error"); ! BEGIN(INITIAL); ! REJECT; ! } else { - BEGIN(INITIAL); yylval.str = strbuf; - unput(yytext[0]); return NUMBER; } } --- 88,99 ---- } \\\n[ \t]* lineno++; [^0-9A-F\.] { ! BEGIN(INITIAL); ! unput(yytext[0]); ! if (strcmp(strbuf, ".") == 0) ! return DOT; else { yylval.str = strbuf; return NUMBER; } }