* PATCH: remove uses of DEPRECATED_STREQ{,N} from dwarf2read.c.
@ 2003-12-13 22:29 Jim Blandy
0 siblings, 0 replies; only message in thread
From: Jim Blandy @ 2003-12-13 22:29 UTC (permalink / raw)
To: gdb-patches
Committed as obvious.
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.
Index: gdb/dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.116
diff -c -r1.116 dwarf2read.c
*** gdb/dwarf2read.c 2 Dec 2003 16:41:39 -0000 1.116
--- gdb/dwarf2read.c 13 Dec 2003 22:25:17 -0000
***************
*** 2604,2610 ****
/* Look up member function name in fieldlist. */
for (i = 0; i < fip->nfnfields; i++)
{
! if (DEPRECATED_STREQ (fip->fnfieldlists[i].name, fieldname))
break;
}
--- 2604,2610 ----
/* Look up member function name in fieldlist. */
for (i = 0; i < fip->nfnfields; i++)
{
! if (strcmp (fip->fnfieldlists[i].name, fieldname) == 0)
break;
}
***************
*** 2883,2889 ****
{
char *fieldname = TYPE_FIELD_NAME (t, i);
! if (DEPRECATED_STREQN (fieldname, vptr_name, strlen (vptr_name) - 1)
&& is_cplus_marker (fieldname[strlen (vptr_name)]))
{
TYPE_VPTR_FIELDNO (type) = i;
--- 2883,2891 ----
{
char *fieldname = TYPE_FIELD_NAME (t, i);
! if ((strncmp (fieldname, vptr_name,
! strlen (vptr_name) - 1)
! == 0)
&& is_cplus_marker (fieldname[strlen (vptr_name)]))
{
TYPE_VPTR_FIELDNO (type) = i;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-13 22:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-13 22:29 PATCH: remove uses of DEPRECATED_STREQ{,N} from dwarf2read.c Jim Blandy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox