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]

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


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;


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