[patch/rfc] ``struct complaint'' -> ``struct deprecated_complaint''
Andrew Cagney
ac131313@redhat.com
Tue Oct 22 11:28:00 GMT 2002
Hello,
This mechanical change is so that the old complain() mechanism is more
clearly deprecated. You can't do a complain() call without declaring a
``struct deprecated_complaint'' :-)
I'll commit it in a day or so.
For those that are wondering, the big improvement that comes with the
new interface, vis:
extern void complaint (struct complaints **complaints, const char *fmt,
...) ATTR_FORMAT (printf, 2, 3);
is the ATTR_FORMAT(). It eliminates the risk of a complain call having
a botched printf format string.
Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diffs
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20021022/548e47c0/attachment.ksh>
More information about the Gdb-patches
mailing list