This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Use macro for void typecast necessary for ncurses library.
- From: Tom Tromey <tromey at redhat dot com>
- To: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: "'Joel Brobecker'" <brobecker at adacore dot com>, "'Pedro Alves'" <pedro at codesourcery dot com>, <gdb-patches at sourceware dot org>
- Date: Tue, 20 Apr 2010 09:44:39 -0600
- Subject: Re: [RFC] Use macro for void typecast necessary for ncurses library.
- References: <003001cadae7$2e639860$8b2ac920$@muller@ics-cnrs.unistra.fr> <20100414155944.GK19194@adacore.com> <000001cadbef$a21bad70$e6530850$@muller@ics-cnrs.unistra.fr> <201004141738.22662.pedro@codesourcery.com> <000601cadc72$e751a330$b5f4e990$@muller@ics-cnrs.unistra.fr> <20100415155258.GN19194@adacore.com> <9120.2086922296$1271371097@news.gmane.org>
- Reply-to: tromey at redhat dot com
>>>>> "Pierre" == Pierre Muller <pierre.muller@ics-cnrs.unistra.fr> writes:
Pierre> I am unsure about:
Pierre> - the name we should give to the macro.
Pierre> - should the macro have a parameter?
Pierre> - should I mention that it would also apply to uses of wattrset?
If you are going to use a macro, then I would say it ought to have a
parameter. I think the CURSES_CAST_TO_VOID thing is less readable than
a plain (void) cast.
Tom