PATCH: remove uses of DEPRECATED_STREQ{,N} from dwarf2read.c.

Jim Blandy jimb@redhat.com
Sat Dec 13 22:29:00 GMT 2003


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;



More information about the Gdb-patches mailing list