From: Bernhard <ber...@be...> - 2002-08-24 11:34:31
|
> I'm getting this error: > > ../../src/core/tcp.c:599: error: too many parameters > > when I use a functional variable as in > > /* begin */ > void func(void *x) { } ; Either omit the braces or the semicolon. > main (void) { > void (*f)(void *arg); > > f = func; > > f(NULL); /* here I get the error */ warning: Functions called via pointers must be 'reentrant' to take arguments> } > /* end */ > > I was circumventing this using (*f)(NULL). But I'm porting this program > that uses many callbacks and, therefore, many functional vars. Is this a > bug in SDCC or the C Spec would not allow this? It's a bug in SDCC. Could you please file it to the bug reports? Bernhard |