Re: [AD] Proposal for new magic main (2)

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


> Here are the various paths we can take (from the most conservative one to
> the most ground-breaking one):
> - no Darwin/MacOS X support,
> - disabling USE_CONSOLE for Darwin/MacOS X (magic main mandatory),
> - disabling USE_CONSOLE for all Unix ports (magic main mandatory),
> - implementing new magic main proposal #1 (breaks programs using 'main' for
>   any other purposes than the program entry point),
> - implementing new magic main proposal #2 (breaks source compatibility).

I propose to take path #2, i.e disabling USE_CONSOLE for Darwin only, at least for the
time being.

Meanwhile, I've commited the attached patch that defines the symbol ALLEGRO_MAGIC_MAIN
when Allegro uses... a magic main.

--
Eric Botcazou
ebotcazou@xxxxxxxxxx

Attachment: magic_main_sym.diff
Description: Binary data



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/