aboutsummaryrefslogtreecommitdiff
path: root/gdb/jv-exp.y
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-11-06 22:54:02 +0000
committerAndrew Cagney <cagney@redhat.com>2003-11-06 22:54:02 +0000
commitbf896cb059775f7c8a68e13a733191755fdc1a85 (patch)
treea6f1eef6b583ba11704c991afe58c040b5df72af /gdb/jv-exp.y
parent0b915e9cc2215e3037d333be1bf54dbfc76cdb93 (diff)
downloadfsf-binutils-gdb-bf896cb059775f7c8a68e13a733191755fdc1a85.zip
fsf-binutils-gdb-bf896cb059775f7c8a68e13a733191755fdc1a85.tar.gz
fsf-binutils-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/jv-exp.y')
-rw-r--r--gdb/jv-exp.y8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/jv-exp.y b/gdb/jv-exp.y
index d47a65b..586c1ca 100644
--- a/gdb/jv-exp.y
+++ b/gdb/jv-exp.y
@@ -872,7 +872,7 @@ yylex ()
tokstart = lexptr;
/* See if it is a special token of length 3. */
for (i = 0; i < sizeof tokentab3 / sizeof tokentab3[0]; i++)
- if (STREQN (tokstart, tokentab3[i].operator, 3))
+ if (strncmp (tokstart, tokentab3[i].operator, 3) == 0)
{
lexptr += 3;
yylval.opcode = tokentab3[i].opcode;
@@ -881,7 +881,7 @@ yylex ()
/* See if it is a special token of length 2. */
for (i = 0; i < sizeof tokentab2 / sizeof tokentab2[0]; i++)
- if (STREQN (tokstart, tokentab2[i].operator, 2))
+ if (strncmp (tokstart, tokentab2[i].operator, 2) == 0)
{
lexptr += 2;
yylval.opcode = tokentab2[i].opcode;
@@ -1167,9 +1167,9 @@ yylex ()
}
break;
case 3:
- if (STREQN (tokstart, "int", 3))
+ if (strncmp (tokstart, "int", 3) == 0)
return INT;
- if (STREQN (tokstart, "new", 3))
+ if (strncmp (tokstart, "new", 3) == 0)
return NEW;
break;
default: