Re: fake loop

J . A . Magallon (jamagallon@able.es)
Sat, 4 Aug 2001 02:13:04 +0200


On 20010803 Richard B. Johnson wrote:
>
>Yes! This is neat! The { } defines a new program unit. Therefore,
>you can allocate temporary variables within it, like:
>
> do {
> int i;
> for(i=0; i< MAX; i++)
> do_something(i);
> } while (0);
>

I have heard many times that kernel is not thought to be compiled by anything
but gcc. Please, start useing gcc features, like statement expressions:

({
int i;
for(i=0; i< MAX; i++)
do_something(i);
})

-- 
J.A. Magallon                           #  Let the source be with you...        
mailto:jamagallon@able.es
Mandrake Linux release 8.1 (Cooker) for i586
Linux werewolf 2.4.7-ac3 #1 SMP Mon Jul 30 16:39:36 CEST 2001 i686
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/