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 18 Nov 2008, at 10:01, Thomas Fjellstrom wrote:
> > I'm pretty sure C wants you to have argc and argv in there. I know
> > gcc has no
> > problems with (void), but that doesn't make it proper.
>
> Any compiler that has a problem with "int main(void)" is broken and
> shouldn't be used. It is valid, you may want to pull out your copy of
> K&R and check.
> The closest thing to a reputable source that I could easily find on-
> line is
> http://www.delorie.com/djgpp/v2faq/faq22_25.html

Well then, I guess I'm wrong.. hmm. I thought (void) was something you 
_shouldnt_ 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/