mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-20 23:13:33 +08:00
* c-exp.y (yylex): Fix a bug in template scanning.
This commit is contained in:
parent
2d4838fe0d
commit
e38e7f47a8
@ -1,3 +1,7 @@
|
||||
Tue Nov 15 16:18:52 1994 Kung Hsu (kung@mexican.cygnus.com)
|
||||
|
||||
* c-exp.y (yylex): Fix a bug in template scanning.
|
||||
|
||||
Tue Nov 15 14:25:47 1994 Stan Shebs (shebs@andros.cygnus.com)
|
||||
|
||||
* i386-stub.c, m68k-stub.c, sparc-stub.c, sparcl-stub.c: Mask out
|
||||
|
@ -1366,7 +1366,12 @@ yylex ()
|
||||
|| (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '<');)
|
||||
{
|
||||
if (c == '<')
|
||||
while (tokstart[++namelen] != '>');
|
||||
{
|
||||
int i = namelen;
|
||||
while (tokstart[++i] && tokstart[i] != '>');
|
||||
if (tokstart[i] == '>')
|
||||
namelen = i;
|
||||
}
|
||||
c = tokstart[++namelen];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user