This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
 				    }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]