projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* c-exp.y (yylex): Give error if unmatched single quote.
[deliverable/binutils-gdb.git]
/
gdb
/
c-exp.y
diff --git
a/gdb/c-exp.y
b/gdb/c-exp.y
index 0394ae915728078446a811361ea3e64e6f9e39ef..3756721faf06f8492d5de94a49792fc666d71cec 100644
(file)
--- a/
gdb/c-exp.y
+++ b/
gdb/c-exp.y
@@
-1186,6
+1186,8
@@
yylex ()
if (namelen > 2)
{
lexptr = tokstart + namelen;
+ if (lexptr[-1] != '\'')
+ error ("Unmatched single quote.");
namelen -= 2;
tokstart++;
goto tryname;
This page took
0.023013 seconds
and
4
git commands to generate.