diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-11-06 22:54:02 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-11-06 22:54:02 +0000 |
commit | bf896cb059775f7c8a68e13a733191755fdc1a85 (patch) | |
tree | a6f1eef6b583ba11704c991afe58c040b5df72af /gdb/objc-exp.y | |
parent | 0b915e9cc2215e3037d333be1bf54dbfc76cdb93 (diff) | |
download | gdb-bf896cb059775f7c8a68e13a733191755fdc1a85.zip gdb-bf896cb059775f7c8a68e13a733191755fdc1a85.tar.gz gdb-bf896cb059775f7c8a68e13a733191755fdc1a85.tar.bz2 |
2003-11-06 Andrew Cagney <cagney@redhat.com>
* valops.c (destructor_name_p): Replace STREQN with strncmp.
* top.c (command_line_input): Ditto.
* objc-exp.y (yylex): Ditto.
* minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
* jv-exp.y (yylex): Ditto.
* f-exp.y (yylex): Ditto.
* event-top.c (command_line_handler): Ditto.
* environ.c (get_in_environ): Ditto.
(set_in_environ): Ditto.
* dwarfread.c (handle_producer): Ditto.
* dbxread.c (process_one_symbol): Ditto.
* c-typeprint.c (c_type_print_base): Ditto.
* c-exp.y (yylex): Ditto.
2003-11-06 Andrew Cagney <cagney@redhat.com>
* mi-cmd-var.c (mi_cmd_var_set_format): Replace STREQN with
strncmp.
Diffstat (limited to 'gdb/objc-exp.y')
-rw-r--r-- | gdb/objc-exp.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/objc-exp.y b/gdb/objc-exp.y index d47fd68..f6123e6 100644 --- a/gdb/objc-exp.y +++ b/gdb/objc-exp.y @@ -1592,7 +1592,7 @@ yylex () if (STREQN (tokstart, "unsigned", 8)) return UNSIGNED; if (current_language->la_language == language_cplus - && STREQN (tokstart, "template", 8)) + && strncmp (tokstart, "template", 8) == 0) return TEMPLATE; if (STREQN (tokstart, "volatile", 8)) return VOLATILE_KEYWORD; @@ -1609,7 +1609,7 @@ yylex () break; case 5: if ((current_language->la_language == language_cplus) - && STREQN (tokstart, "class", 5)) + && strncmp (tokstart, "class", 5) == 0) return CLASS; if (STREQN (tokstart, "union", 5)) return UNION; |