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, 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.
That way, you get the documentation value of knowing that
the parameter represents a boolean rather than an integer.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.


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