Re: 2.2.18 signal.h

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Dec 15 2000 - 13:50:21 EST


> void foo()
> {
> extern int a;
> if(a) goto a;
> return;
> a:
> printf("%d\n", a);
> }
>
> Both examples allow an extern declaration inside a function scope
> which is also contrary to any (even old) 'C' standards. 'extern'
> is always file scope, there's no way to make it otherwise.

extern in function scope is in original C. In fact its even _older_ than that
its in the B compiler too - although in B its 'extrn' not 'extern'.

Alan (yes I programmed in B)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 15 2000 - 21:00:33 EST