On Sun, 2009-04-26 at 20:48 +0100, John Tytgat wrote:
> _main is what we have in UnixLib wrapping the user supplied main() and
> not as is replaceble. As far as I remember, all identifiers starting with
> an underscore are reserved for user code so a bit questionable that Vala
> uses this.

Identifiers starting with two underscores, or one underscore followed by
a capital letter, are the ones that are reserved to the C runtime
library. So Vala is within its rights to use "_main" according to the C
standard, and I'd argue UnixLib should be changed.

You'll note that the shared C library doesn't export a "_main" symbol
(even though it defines one for internal use).

Ben



_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to