Re: [PATCH 4/8] config: Improve variable 'type' handling.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 15, 2009, 12:24 UTC
- Message-ID
- <alpine.DEB.1.00.0902151323100.10279@pacific.mpi-cbg.de>
- In-Reply-To
- <1234688460-9248-4-git-send-email-felipe.contreras@gmail.com>
Hi,
On Sun, 15 Feb 2009, Felipe Contreras wrote:
Show 6 quoted lines
> + switch (types) {
> + case TYPE_BOOL: type = T_BOOL; break;
> + case TYPE_INT: type = T_INT; break;
> + case TYPE_BOOL_OR_INT: type = T_BOOL_OR_INT; break;
> + default: break;
> + }Would it not be nicer to get rid of the variable named "type" and use "types == TYPE_BOOL" and similar statements instead?
Ciao, Dscho