This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC 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]

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


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