aboutsummaryrefslogtreecommitdiff
path: root/gdb/c-exp.y
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2000-06-05 20:49:53 +0000
committerDaniel Berlin <dberlin@dberlin.org>2000-06-05 20:49:53 +0000
commit357e46e7c9f18a0603aa9a6de440bedb147e57f8 (patch)
tree7a636a8075ad6888e5c2401e87c859f74c526183 /gdb/c-exp.y
parente6d71bf34e01d840417e4fac1bcedae5fff5b9dc (diff)
downloadfsf-binutils-gdb-357e46e7c9f18a0603aa9a6de440bedb147e57f8.zip
fsf-binutils-gdb-357e46e7c9f18a0603aa9a6de440bedb147e57f8.tar.gz
fsf-binutils-gdb-357e46e7c9f18a0603aa9a6de440bedb147e57f8.tar.bz2
C++ improvements
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r--gdb/c-exp.y22
1 files changed, 0 insertions, 22 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y
index a52416f..d4291f7 100644
--- a/gdb/c-exp.y
+++ b/gdb/c-exp.y
@@ -1433,8 +1433,6 @@ yylex ()
if (c == '<')
{
- if (hp_som_som_object_present)
- {
/* Scan ahead to get rest of the template specification. Note
that we look ahead only when the '<' adjoins non-whitespace
characters; for comparison expressions, e.g. "a < b > c",
@@ -1444,26 +1442,6 @@ yylex ()
if (p)
namelen = p - tokstart;
break;
- }
- else
- {
- int i = namelen;
- int nesting_level = 1;
- while (tokstart[++i])
- {
- if (tokstart[i] == '<')
- nesting_level++;
- else if (tokstart[i] == '>')
- {
- if (--nesting_level == 0)
- break;
- }
- }
- if (tokstart[i] == '>')
- namelen = i;
- else
- break;
- }
}
c = tokstart[++namelen];
}