This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH to c-typeprint.c
- From: Jason Merrill <jason at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Wed, 09 Jan 2002 23:15:36 +0000
- Subject: 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')