diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2000-06-05 20:49:53 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2000-06-05 20:49:53 +0000 |
commit | 357e46e7c9f18a0603aa9a6de440bedb147e57f8 (patch) | |
tree | 7a636a8075ad6888e5c2401e87c859f74c526183 /gdb/c-exp.y | |
parent | e6d71bf34e01d840417e4fac1bcedae5fff5b9dc (diff) | |
download | ppe42-binutils-357e46e7c9f18a0603aa9a6de440bedb147e57f8.tar.gz ppe42-binutils-357e46e7c9f18a0603aa9a6de440bedb147e57f8.zip |
C++ improvements
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index a52416f48f..d4291f7b97 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]; } |