diff options
author | Fred Fish <fnf@specifix.com> | 1992-07-09 07:15:11 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 1992-07-09 07:15:11 +0000 |
commit | 866ecded64f95d14bfc4ac313211a5cb9a289afa (patch) | |
tree | 22fd6067d6e11990df26e19e7b508e7320895624 /gdb/c-exp.y | |
parent | d42563daf72b2cb5bc56b07ac037548fb7233bc5 (diff) | |
download | gdb-866ecded64f95d14bfc4ac313211a5cb9a289afa.zip gdb-866ecded64f95d14bfc4ac313211a5cb9a289afa.tar.gz gdb-866ecded64f95d14bfc4ac313211a5cb9a289afa.tar.bz2 |
Only treat "class" as a token if the current language is C++.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index cc09247..4416253 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -1369,7 +1369,8 @@ yylex () return SIZEOF; break; case 5: - if (!strncmp (tokstart, "class", 5)) + if (current_language->la_language == language_cplus + && !strncmp (tokstart, "class", 5)) return CLASS; if (!strncmp (tokstart, "union", 5)) return UNION; |