Update contrib.
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // EPOC32 version of crt0.c for pure C programs
23 extern "C" int wmain (int argc, wchar_t *argv[], wchar_t *envp[]);
25 GLDEF_C TInt E32Main()
34 __crt0(argc,argv,envp); // get args & environment from somewhere
36 int ret=wmain(argc, argv, envp); // go
38 // no need to explicitly delete the cleanup stack here as all memory used by
39 // the process will be released by RProcess::Terminate(), called from inside exit().
41 exit(ret); // finish with atexit processing
49 /* stub function inserted into main() by GCC */
51 extern "C" void __main (void) {}
53 extern "C" void __gccmain (void) {}
56 /* Default GCC entrypoint */
57 extern "C" TInt _mainCRTStartup (void)
59 extern TInt _E32Startup();
63 #endif /* __GCC32__ */