From: Jim Blandy <jimb@redhat.com>
To: gdb-patches@sources.redhat.com
Subject: PATCH: remove uses of DEPRECATED_STREQ{,N} from dwarf2read.c.
Date: Sat, 13 Dec 2003 22:29:00 -0000 [thread overview]
Message-ID: <vt21xr8mjzy.fsf@zenia.home> (raw)
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;
reply other threads:[~2003-12-13 22:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=vt21xr8mjzy.fsf@zenia.home \
--to=jimb@redhat.com \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox