This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit] Get rid of DEPRECATED_STREQ in eval.c
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 28 Jun 2005 22:52:56 +0200 (CEST)
- Subject: [commit] Get rid of DEPRECATED_STREQ in eval.c
Committed as obvious,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* eval.c (evaluate_struct_tuple): Use strcmp instead of
DEPRECATED_STREQ.
Index: eval.c
===================================================================
RCS file: /cvs/src/src/gdb/eval.c,v
retrieving revision 1.56
diff -u -p -r1.56 eval.c
--- eval.c 13 Jun 2005 07:23:15 -0000 1.56
+++ eval.c 28 Jun 2005 20:46:53 -0000
@@ -225,7 +225,7 @@ evaluate_struct_tuple (struct value *str
fieldno++)
{
char *field_name = TYPE_FIELD_NAME (struct_type, fieldno);
- if (field_name != NULL && DEPRECATED_STREQ (field_name, label))
+ if (field_name != NULL && strcmp (field_name, label) == 0)
{
variantno = -1;
subfieldno = fieldno;
@@ -253,9 +253,9 @@ evaluate_struct_tuple (struct value *str
subfieldno < TYPE_NFIELDS (substruct_type);
subfieldno++)
{
- if (DEPRECATED_STREQ (TYPE_FIELD_NAME (substruct_type,
+ if (strcmp(TYPE_FIELD_NAME (substruct_type,
subfieldno),
- label))
+ label) == 0)
{
goto found;
}