Date: Tue, 10 Feb 1998 13:23:26 +0200 (IST) From: Eli Zaretskii To: Vik Heyndrickx cc: DJ Delorie , djgpp-workers AT delorie DOT com Subject: Re: char != unsigned char... sometimes, sigh In-Reply-To: <34E00C85.57DE@rug.ac.be> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Tue, 10 Feb 1998, Vik Heyndrickx wrote: > #define isupper(c) ({int t=(c);unsigned v;\ > ++t;\ > if(t<0)t+=256;\ > v=__dj_ctype_flags[t];\ > (v&__dj_ISUPPER)!=0;}) I think it is better to have the temporary variables' names begin with an underscore. Otherwise, if the program which uses this macro defines a variable named `t', gcc will print warning about inner variable which shadows the outer one (given the right -Wxxx switches). Variables that begin with underscores are less frequent and ANSI reserves them anyway. Note that I didn't try to compile this, so I might be wrong.