1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/plugins/chessbox
Thomas Martitz abdc5935be Introduce plugin_crt0.c that every plugin links.
It handles exit() properly, calling the handler also when the plugin returns
normally (also it makes exit() more standard compliant while at it).
It also holds PLUGIN_HEADER, so that it doesn't need to be in each plugin anymore.

To work better together with callbacks passed to rb->default_event_handler_ex introduce exit_on_usb() which will call the exit handler before showing the usb screen and exit() after it.
In most cases it was passed a callback which was manually called at all other return points. This can now be done via atexit().

In future plugin_crt0.c could also handle clearing bss, initializing iram and more.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27862 a1c6a512-1295-4272-9138-f99709370657
2010-08-23 16:56:49 +00:00
..
chessbox.c Introduce plugin_crt0.c that every plugin links. 2010-08-23 16:56:49 +00:00
chessbox.make Build overlay plugins for all targets with PLUGIN_BUFFER <= 0x10000 bytes 2010-05-18 14:14:53 +00:00
chessbox_pgn.c Fix size_t handling in plugin_get_buffer() 2010-05-07 19:27:42 +00:00
chessbox_pgn.h Add MPIO HD200 port - changed files 2010-04-26 21:40:00 +00:00
gnuchess.c chessbox: fix 'i = i++', based on gnuchess4.0-pl80 2010-07-04 13:27:50 +00:00
gnuchess.h loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
opening.c Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
opening.h Removed executable flag 2007-01-09 23:22:14 +00:00
SOURCES New makefile solution: A single invocation of 'make' to build the entire tree. Fully controlled dependencies give faster and more correct recompiles. 2008-11-20 11:27:31 +00:00