Re: [AD] END_OF_MAIN, again |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] END_OF_MAIN, again
- From: Chris <chris.kcat@xxxxxxxxxx>
- Date: Mon, 1 Aug 2005 14:41:21 -0700
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=l1UgUVuNeL1aq26IVaxyTuX4Jp83nSuUzqvvcM3GQtIaC1gGYgBulrVXGzvFyTPwqP6pZXEJCN0UNzqqG2qDyF5jx7Pt1+0xrsbON3S7x7gC10pV20RbH0aXAVQPz9t5X4l2VKsTI7Y+jb/sezq8w8ZJP4FyDNBgggnsHXta3vk=
On Monday 01 August 2005 02:28 pm, Hrvoje Ban wrote:
> In wmain.c I forward declare
> _mangled_c_main(int, char *[]), _mangled_cpp_main() and
> _mangled_cpp_main(int, char *[]) and assign they address to pointers and
> invoke all three in WinMain.
What about _mangled_cpp_main(int, char**, char**)? And are arrays passed as
arguments always the same as pointers in C++? In C the _mangled_main
definition shouldn't matter, since the argument list and return type have no
effect on the produced symbol (_mangled_main() and _mangled_main(int, char**)
are the same as far as the linker is concerned).
And can this behavior be gauranteed (that it'll skip the other files if
there's no matching symbol)? This also means introducing C++ sources for
Windows. Allegro's never required C++ before.