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 to c-typeprint.c


The test for 'ptype class Foo' in classes.exp was printing 'int operator
int();', which is wrong.  Fixed thusly.  Is this OK to check in?

2002-01-09  Jason Merrill  <jason@redhat.com>

	* c-typeprint.c (is_type_conversion_operator): Fix thinko.

*** c-typeprint.c.~1~	Tue Jan  8 11:43:51 2002
--- c-typeprint.c	Wed Jan  9 20:44:54 2002
*************** is_type_conversion_operator (struct type
*** 407,413 ****
    else if (strncmp (name, "delete", 6) == 0)
      name += 6;
    else
!     return 0;
  
    /* Is that really the end of the name?  */
    if (('a' <= *name && *name <= 'z')
--- 407,415 ----
    else if (strncmp (name, "delete", 6) == 0)
      name += 6;
    else
!     /* If it doesn't look like new or delete, it's a type conversion
!        operator.  */
!     return 1;
  
    /* Is that really the end of the name?  */
    if (('a' <= *name && *name <= 'z')

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