Re: [AD] END_OF_MAIN removal patch for msvc

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


On November 18, 2008, Evert Glebbeek wrote:
> On 17 Nov 2008, at 22:41, Peter Wang wrote:
> > I've done that with END_OF_MAIN(), too.  Granted, END_OF_MAIN() is
> > shorter so easier to remember.
>
> Oh, so have I - but it's indeed fairly easy to fix. Turning
> END_OF_MAIN() to a no-op on some platforms in this sense makes it
> easier to write platform-specific code, unfortunately.
>
> > We can tweak it until you're happy ;-)
>
> Cool, I'd loke it to look like one of the following:
>
> int main(void)
> {
> ...
> }
>
> or
>
> int main(int, char **)
> {
> ...
> }
>
> ?
>
> :P

The first one isn't valid C ;)

> > The ucontext idea is fun, but I have a feeling it's too clever.
>
> It does sound like the sort of thing that seems a good idea at one
> time and then turns out to be a spectacular hack and blow up in your
> face at some point in the future.
> But I'd still like looking into it if it's the best we can do. ;)
>
> Evert
>
> -------------------------------------------------------------------------
> 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/