Re: [AD] END_OF_MAIN removal patch for msvc

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


On November 17, 2008, Peter Wang wrote:
> On 2008-11-17, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> > On 17 Nov 2008, at 06:58, Thomas Fjellstrom wrote:
> > Who said anything about holding back?
> > It's just that ALLEGRO_WITH_MAGIC_MAIN as a configure option is not
> > completely pointless.
> >
> > > IMO we should consider END_OF_MAIN not needed for the unix port.
> >
> > Except when it is. :P
> > I certainly think of END_OF_MAIN() as not being needed on UNIX, but
> > it's not strictly true and that is something to be aware of.
> > As I said, it's possible to configure a Linux system in such a way
> > that it is needed. I think at the time I implemented the /proc method
> > for getting the executable path this was the case on Debian, but it's
> > been a while.
>
> What functions in 4.9 still need to magically know the values of argc,
> argv?  If there are any, they should be designed out.

As far as I know, theres one, and its the absolute last thing the function 
tries if magic main is enabled, that being al_get_path.

> Peter
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge Build the coolest Linux based applications with Moblin SDK & win
> great prizes Grand prize is a trip for two to an Open Source event anywhere
> in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/


-- 
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx




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