This is the mail archive of the gcc-patches@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]

Re: Patch to remove promoting integer type bool as a parameter


On 02-May-2001, Kaveh R. Ghazi <ghazi@caip.rutgers.edu> wrote:
> 	* i386.c (ix86_emit_restore_regs_using_mov, ix86_save_reg): Change
> 	`bool' parameter to `int'.
> 	* hash.c (hash_lookup): Likewise.
> 	* hash.h (hash_lookup): Likewise.
> 	* tlink.c (symbol_hash_lookup, demangled_hash_lookup): Likewise.

It might be a little nicer to have

	/* ... a comment explaining why we use int instead of bool ... */
	typedef int bool_param;

and then use bool_param rather than int.

-- 
Fergus Henderson <fjh@cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  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]