mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 06:26:00 +00:00
POSIX+ says goodbye and leaves. It used to be fun, now it's just painful
svn path=/trunk/; revision=3653
This commit is contained in:
parent
a42476b9fb
commit
6efd5e3b01
166 changed files with 0 additions and 20265 deletions
|
@ -1,46 +0,0 @@
|
|||
/* $Id: crt0w32.c,v 1.2 2002/04/10 21:30:21 ea Exp $
|
||||
*
|
||||
* PROJECT : ReactOS / POSIX+ personality
|
||||
* FILE : subsys/psx/lib/crt0w32.c
|
||||
* DESCRIPTION: startup code for POSIX+ applications.
|
||||
* DATE : 2002-01-18
|
||||
* AUTHOR : Emanuele Aliberti <eal@users.sf.net>
|
||||
*/
|
||||
|
||||
extern void __stdcall __PdxInitializeData(int*,char***);
|
||||
extern int main (int,char**,char**);
|
||||
extern void exit(int);
|
||||
|
||||
/* ANSI ENVIRONMENT */
|
||||
|
||||
char **_environ = (char**) 0;
|
||||
|
||||
int errno = 0;
|
||||
|
||||
#ifdef __SUBSYSTEM_WINDOWS__
|
||||
void WinMainCRTStartup (void)
|
||||
#else
|
||||
void mainCRTStartup (void)
|
||||
#endif
|
||||
{
|
||||
char * argv[2] = {"none", 0};
|
||||
|
||||
/* TODO: parse the command line */
|
||||
exit(main(1,argv,0));
|
||||
}
|
||||
|
||||
void __main ()
|
||||
{
|
||||
/*
|
||||
* Store in PSXDLL.DLL two well known global symbols
|
||||
* references.
|
||||
*/
|
||||
__PdxInitializeData (& errno, & _environ); /* PSXDLL.__PdxInitializeData */
|
||||
/* CRT initialization. */
|
||||
#ifdef __SUBSYSTEM_WINDOWS__
|
||||
WinMainCRTStartup ();
|
||||
#else
|
||||
mainCRTStartup ();
|
||||
#endif
|
||||
}
|
||||
/* EOF */
|
Loading…
Add table
Add a link
Reference in a new issue