Re: [AD] END_OF_MAIN removal patch for msvc |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
For Windows, it's useful because the user doesn't need to make a
separate WinMain function themselves. If you do find/decide on a way
to remove END_OF_MAIN(), what's do users do about WinMain?
On Tue, Nov 18, 2008 at 8:44 PM, Trent Gamblin <trent@xxxxxxxxxx> wrote:
>
> On Tue, November 18, 2008 4:56 pm, Stefanos A. said:
>> On Tue, 2008-11-18 at 16:41 -0700, Thomas Fjellstrom wrote:
>>> On November 18, 2008, Stefanos A. wrote:
>>> >
>>> > Would this solve the problem? Is this worth it when compared to
>>> the
>>> > END_OF_MAIN hack? Any catches?
>>>
>>> Thats what END_OF_MAIN does on OSX.. But that api might not play
>>> nice with X
>>> or Windows...
>>
>> Any reason to hide this from the user? This is how modern operating
>> systems work, the single process / single thread / no reentrancy
>> model
>> of DOS no longer holds.
>>
>> This code works fine on X11 and Win32 (simply raise the callback
>> whenever you hit an idle event). Unless you were referring to
>> something
>> else entirely...?
>
> The current api has been fairly well thought out and tested.
> Changing to some kind of GUI toolkit-alike API at the last minute,
> removing a ton of features from Allegro just for this is ridiculous.
> END_OF_MAIN has worked with A4 for a long time and there haven't
> been any major problems with it. Binaries don't run across operating
> systems anyway. And leaving out END_OF_MAIN at least in my
> experience always results in a predictable compiler error. There
> will be far less confusion if we just keep it if it's needed for
> OSX.
>
> Trent :{)>
>
> -------------------------------------------------------------------------
> 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=/
> --
> https://lists.sourceforge.net/lists/listinfo/alleg-developers
>
--
Note: No trees were killed in the sending of this message, but a large
number of electrons were terribly inconvenienced.