2000-05-01 13:42:38 +04:00
|
|
|
/**********************************************************************
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
main.c -
|
|
|
|
|
|
|
|
$Author$
|
|
|
|
$Date$
|
|
|
|
created at: Fri Aug 19 13:19:58 JST 1994
|
|
|
|
|
2001-02-14 08:52:06 +03:00
|
|
|
Copyright (C) 1993-2001 Yukihiro Matsumoto
|
2000-05-01 13:42:38 +04:00
|
|
|
|
|
|
|
**********************************************************************/
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
#include "ruby.h"
|
|
|
|
|
|
|
|
#ifdef DJGPP
|
1999-08-13 09:45:20 +04:00
|
|
|
unsigned int _stklen = 0x180000;
|
1998-01-16 15:13:05 +03:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __human68k__
|
2000-01-05 07:41:21 +03:00
|
|
|
int _stacksize = 262144;
|
1998-01-16 15:13:05 +03:00
|
|
|
#endif
|
|
|
|
|
2000-05-29 06:10:22 +04:00
|
|
|
#if defined __MINGW32__
|
|
|
|
int _CRT_glob = 0;
|
|
|
|
#endif
|
|
|
|
|
1999-08-13 09:45:20 +04:00
|
|
|
#if defined(__MACOS__) && defined(__MWERKS__)
|
|
|
|
#include <console.h>
|
|
|
|
#endif
|
|
|
|
|
2000-10-02 11:48:42 +04:00
|
|
|
/* to link startup code with ObjC support */
|
|
|
|
#if defined(__APPLE__) && defined(__MACH__)
|
|
|
|
static void objcdummyfunction( void ) { objc_msgSend(); }
|
|
|
|
#endif
|
|
|
|
|
1998-01-16 15:13:05 +03:00
|
|
|
int
|
|
|
|
main(argc, argv, envp)
|
|
|
|
int argc;
|
|
|
|
char **argv, **envp;
|
|
|
|
{
|
|
|
|
#if defined(NT)
|
|
|
|
NtInitialize(&argc, &argv);
|
|
|
|
#endif
|
1999-08-13 09:45:20 +04:00
|
|
|
#if defined(__MACOS__) && defined(__MWERKS__)
|
|
|
|
argc = ccommand(&argv);
|
|
|
|
#endif
|
1998-01-16 15:13:05 +03:00
|
|
|
|
|
|
|
ruby_init();
|
|
|
|
ruby_options(argc, argv);
|
|
|
|
ruby_run();
|
1999-01-20 07:59:39 +03:00
|
|
|
return 0;
|
1998-01-16 15:13:05 +03:00
|
|
|
}
|