From: SourceForge.net <no...@so...> - 2007-10-02 08:22:43
|
Bugs item #1805710, was opened at 2007-10-01 16:35 Message generated for change (Comment added) made by patryks You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1805710&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: C-Front End Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: can't init const function poins with NULL Initial Comment: typedef struct Foo_ { void (*f)(); } Foo; This doesn't work: const Foo foo = {NULL}; But this works: const Foo foo = {0}; ---------------------------------------------------------------------- Comment By: Patryk (patryks) Date: 2007-10-02 10:22 Message: Logged In: YES user_id=1788180 Originator: NO Did you include any header with NULL definition (sttdef.h, stdio.h etc.)? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=1805710&group_id=599 |