nes-proj/core
oliverschmidt a7cb609321 With dynamic loading enabled the function ctk_textentry_input_null() lives in the persistent core while the macro CTK_TEXTENTRY() is typically used in loadable modules. So ctk_textentry_input_null() needs to be dynamically resolved.
On Win32 dynamic resolving isn't done by patching the dynamically loaded segments. Rather the code generated by the compiler for accessing symbols declared with __declspec(dllimport) is implicitly modified to actually go through pointer dereferenciations. The dynamic linker only initializes this pointers.

But with the symbol ctk_textentry_input_null becoming a pointer to a function it isn't a constant anymore and so it can't be used as initializer element - and thus breaking CTK_TEXTENTRY().

So the only viable solution seems to stick to the inversally available NULL pointer on Win32. But if there's an ugly #ifdef <platform> necessary anyway than it seems resonable to classify ctk_textentry_input_null as the special case and therefore use #ifdef SDCC:
- It saves some bytes on all non-SDCC platforms
- Is matches the exsisting inline documentation
2009-02-28 10:43:30 +00:00
..
cfs fixed cfs_seek signature. 2009-02-27 14:52:52 +00:00
ctk With dynamic loading enabled the function ctk_textentry_input_null() lives in the persistent core while the macro CTK_TEXTENTRY() is typically used in loadable modules. So ctk_textentry_input_null() needs to be dynamically resolved. 2009-02-28 10:43:30 +00:00
dev added configuration of checksum and timesynch 2009-02-25 21:21:06 +00:00
lib Added a dummy function instead of a NULL callback in the textentry widget because sdcc does not like NULL function pointers 2009-02-24 21:30:02 +00:00
loader switched all users of cfs_seek(x,y) to cfs_seek(x,y,CFS_SEEK_SET) 2009-02-27 14:28:02 +00:00
net The global prefixes processed must be one less than the total amount of prefixes, as the link local one occupies one slot 2009-02-25 08:35:52 +00:00
sys Removed PROCESS_ZOMBIE code, which does not compile with sdcc, added some optional debugging printouts 2009-02-20 21:24:17 +00:00
contiki-lib.h Import of the contiki-2.x development code from the SICS internal CVS server 2006-06-17 22:41:10 +00:00
contiki-net.h Main uIPv6 files addition 2008-10-14 09:40:56 +00:00
contiki-version.h Bumber version number to 2.2.2 2008-11-09 12:28:28 +00:00
contiki.h Moved energest.{c,h} from core/lib to core/sys: power profiling is a system mechanism, not a library 2008-07-03 23:36:30 +00:00