* dwarf2read.c (dwarf2_add_member_fn, read_structure_scope):
authorJim Blandy <jimb@codesourcery.com>
Sat, 13 Dec 2003 22:29:06 +0000 (22:29 +0000)
committerJim Blandy <jimb@codesourcery.com>
Sat, 13 Dec 2003 22:29:06 +0000 (22:29 +0000)
Replace uses of DEPRECATED_STREQ and DEPRECATED_STREQN with calls
to strcmp and strncmp.

gdb/ChangeLog
gdb/dwarf2read.c

index dd15edc76e788701aa614697fbfc8f94ac6a2eec..179bffb3c1f46f1b138b8756f99a152971f332da 100644 (file)
@@ -1,5 +1,9 @@
 2003-12-13  Jim Blandy  <jimb@redhat.com>
 
+       * dwarf2read.c (dwarf2_add_member_fn, read_structure_scope):
+       Replace uses of DEPRECATED_STREQ and DEPRECATED_STREQN with calls
+       to strcmp and strncmp.
+
        * osabi.c (gdbarch_init_osabi): Reformat error message with better
        line breaks.
 
index b151d60ec8d21ba3e4bb7698fe49416168f60d89..bf2a57e519758a1fba4cb77a9d1e9d1196f01f33 100644 (file)
@@ -2604,7 +2604,7 @@ dwarf2_add_member_fn (struct field_info *fip, struct die_info *die,
   /* Look up member function name in fieldlist.  */
   for (i = 0; i < fip->nfnfields; i++)
     {
-      if (DEPRECATED_STREQ (fip->fnfieldlists[i].name, fieldname))
+      if (strcmp (fip->fnfieldlists[i].name, fieldname) == 0)
        break;
     }
 
@@ -2883,7 +2883,9 @@ read_structure_scope (struct die_info *die, struct dwarf2_cu *cu)
                    {
                      char *fieldname = TYPE_FIELD_NAME (t, i);
 
-                     if (DEPRECATED_STREQN (fieldname, vptr_name, strlen (vptr_name) - 1)
+                     if ((strncmp (fieldname, vptr_name,
+                                    strlen (vptr_name) - 1)
+                           == 0)
                          && is_cplus_marker (fieldname[strlen (vptr_name)]))
                        {
                          TYPE_VPTR_FIELDNO (type) = i;