rockbox/apps/plugins/reversi
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
..
reversi-game.c Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
reversi-game.h loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
reversi-gui.c Introduce plugin_crt0.c that every plugin links. 2010-08-23 16:56:49 +00:00
reversi-gui.h Add MPIO HD200 port - changed files 2010-04-26 21:40:00 +00:00
reversi-strategy-naive.c loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
reversi-strategy-simple.c loader-initialized global plugin API: 2009-01-16 10:34:40 +00:00
reversi-strategy.c Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
reversi-strategy.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
reversi.make Use a static pattern rule to restrict the dependency on [pluginname].o to single-file plugins. This allows the pattern rule for %.rock (with all dependencies defined elsewhere) to pick up multi-file plugins with no [pluginname].o file, and get rid of the duplication in (doom|midi|reversi).make. 2009-03-04 23:41:58 +00:00
SOURCES Implement 2 simple AIs for reversi: 2007-07-01 17:51:38 +00:00