From: <no...@so...> - 2002-08-25 11:52:42
|
Bugs item #599887, was opened at 2002-08-25 13:34 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=599887&group_id=599 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Felipe Massia Pereira (felmasper) Assigned to: Nobody/Anonymous (nobody) Summary: functional vars Initial Comment: void func (void) {} ; int main(void) { void (*fvar)(void); fvar = func; fvar(); /* this line giver error: too many parameters */ /* i have to call like this */ (*fvar)() } /* I'm compiling for Z80, but I think I tried for the mcs51 as well TIA! */ ---------------------------------------------------------------------- >Comment By: Bernhard Held (bernhardheld) Date: 2002-08-25 13:52 Message: Logged In: YES user_id=203539 The source in the initial comment doesn't show the bug. The bug is exposed in: #define NULL 0 void func (void *x) reentrant; int main(void) { void (*fvar)(void *arg) reentrant; fvar = func; fvar (NULL); /* this line giver error: too many parameters */ (*fvar) (NULL); /* i have to call like this */ } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=599887&group_id=599 |