Messages in this thread | | | From | (Alan Cox) | Subject | Re: 2.1.22 unneeded global symbols | Date | Mon, 27 Jan 1997 21:33:48 +0000 (GMT) |
| |
> \begin{C-Legalese} > If you pass the address of object to another compilation unit > (i.e. source file), this object does not need to be extern; it > can be static or allocated (but NOT automatic). > \end{C-legalese}
Ah but the following isnt going to work
foo.c
static void flobble(int x) { printf("Kersplat\n"); }
bar.c
extern void flobble(int);
int main() { register_kersplat_handler(flobble); }
| |