rockbox/apps/plugins/fractals
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
..
cpu_arm.h Fractals: Have helper functions in header file to keep them inlined 2010-01-17 22:03:36 +00:00
cpu_coldfire.h Fractals: Have helper functions in header file to keep them inlined 2010-01-17 22:03:36 +00:00
cpu_sh7043.h Fractals: Have helper functions in header file to keep them inlined 2010-01-17 22:03:36 +00:00
fractal.c Introduce plugin_crt0.c that every plugin links. 2010-08-23 16:56:49 +00:00
fractal.h Add MPIO HD200 port - changed files 2010-04-26 21:40:00 +00:00
fractal_rect.c FS#10911 - Plugins: Fractals (formerly Mandelbrot) 2010-01-15 05:53:15 +00:00
fractal_rect.h Fractals: Use constants for screen panning 2010-01-17 15:32:17 +00:00
fractal_sets.h Convert some more stuff to mylcd_ and support pgfx as well. 2010-06-04 13:22:50 +00:00
fractals.make FS#10911 - Plugins: Fractals (formerly Mandelbrot) 2010-01-15 05:53:15 +00:00
mandelbrot_set.c Fractals: Remove redundant assignment to a variable (y_delta) 2010-03-28 18:58:43 +00:00
mandelbrot_set.h FS#10911 - Plugins: Fractals (formerly Mandelbrot) 2010-01-15 05:53:15 +00:00
SOURCES Fractals: Have helper functions in header file to keep them inlined 2010-01-17 22:03:36 +00:00