This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: warning when bool parameter in function prototype
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Thu, 16 Jan 2003 19:36:55 +0000 (GMT)
- Subject: Re: warning when bool parameter in function prototype
On 16 Jan 2003, Alexandre Oliva wrote:
> And then, when we switch to C89, we can change a single typedef and
> all the places where we wanted bool but had to use int due to lack of
> prototypes would be fixed.
No, we remove the typedef and change all uses of bool_param to bool.
Using bool_param allows this information to be put in now, but once we're
using ISO C function definitions throughout the compiler there's no need
to maintain the distinction.
(Making either change, to the typedef or replacing its uses by plain bool,
has the same prerequisite - that all functions (outside front ends, which
are only built with GCC) with bool_param parameters have been converted to
new-style definitions.)
--
Joseph S. Myers
jsm28@cam.ac.uk