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


Fergus Henderson wrote:-

> On 16-Jan-2003, Jan Hubicka <jh@suse.cz> wrote:
> > For consistency please use int in both places.
> > SImply never use bool as function arguemnt.
> 
> It would be nicer to have
> 
> 	typedef int bool_param;
> 
> and to use `bool_param' instead of using `int' directly.

I think that's a great idea.

Neil.


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