* c-exp.y (yylex): Give error if unmatched single quote.
This commit is contained in:
parent
c649a7c231
commit
c0bca41c47
2 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,9 @@
|
||||||
Fri Jul 2 13:39:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
Fri Jul 2 13:39:48 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
|
||||||
|
|
||||||
|
* c-exp.y (yylex): Give error if unmatched single quote.
|
||||||
|
|
||||||
|
* configure.in, config/m68k/*delta68*, delta68-nat.c: New port.
|
||||||
|
|
||||||
* Remove unused STACK_END_ADDR in the following files (in other
|
* Remove unused STACK_END_ADDR in the following files (in other
|
||||||
files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
|
files it is used for something): tm-mips.h, tm-sun2.h, tm-news.h,
|
||||||
tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
|
tm-a29k, tm-i386v.h, tm-hppa.h, tm-nindy960.h, tm-amix.h,
|
||||||
|
|
|
@ -1186,6 +1186,8 @@ yylex ()
|
||||||
if (namelen > 2)
|
if (namelen > 2)
|
||||||
{
|
{
|
||||||
lexptr = tokstart + namelen;
|
lexptr = tokstart + namelen;
|
||||||
|
if (lexptr[-1] != '\'')
|
||||||
|
error ("Unmatched single quote.");
|
||||||
namelen -= 2;
|
namelen -= 2;
|
||||||
tokstart++;
|
tokstart++;
|
||||||
goto tryname;
|
goto tryname;
|
||||||
|
|
Loading…
Reference in a new issue