This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch to remove promoting integer type bool as a parameter
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Patch to remove promoting integer type bool as a parameter
- From: Fergus Henderson <fjh at cs dot mu dot oz dot au>
- Date: Thu, 3 May 2001 18:11:09 +1000
- Cc: gcc-patches at gcc dot gnu dot org
- References: <200105022142.RAA00074@caip.rutgers.edu>
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.