2000-05-01 05:42:38 -04:00
|
|
|
/**********************************************************************
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
main.c -
|
|
|
|
|
|
|
|
$Author$
|
|
|
|
$Date$
|
|
|
|
created at: Fri Aug 19 13:19:58 JST 1994
|
|
|
|
|
2002-04-18 04:46:18 -04:00
|
|
|
Copyright (C) 1993-2002 Yukihiro Matsumoto
|
2000-05-01 05:42:38 -04:00
|
|
|
|
|
|
|
**********************************************************************/
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
#include "ruby.h"
|
|
|
|
|
|
|
|
#ifdef DJGPP
|
1999-08-13 01:45:20 -04:00
|
|
|
unsigned int _stklen = 0x180000;
|
1998-01-16 07:13:05 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __human68k__
|
2000-01-04 23:41:21 -05:00
|
|
|
int _stacksize = 262144;
|
1998-01-16 07:13:05 -05:00
|
|
|
#endif
|
|
|
|
|
2000-05-28 22:10:22 -04:00
|
|
|
#if defined __MINGW32__
|
|
|
|
int _CRT_glob = 0;
|
|
|
|
#endif
|
|
|
|
|
1999-08-13 01:45:20 -04:00
|
|
|
#if defined(__MACOS__) && defined(__MWERKS__)
|
|
|
|
#include <console.h>
|
|
|
|
#endif
|
|
|
|
|
2000-10-02 03: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 07:13:05 -05:00
|
|
|
int
|
|
|
|
main(argc, argv, envp)
|
|
|
|
int argc;
|
|
|
|
char **argv, **envp;
|
|
|
|
{
|
2002-12-02 02:57:17 -05:00
|
|
|
#if defined(NT) || defined(_WIN32_WCE)
|
1998-01-16 07:13:05 -05:00
|
|
|
NtInitialize(&argc, &argv);
|
|
|
|
#endif
|
1999-08-13 01:45:20 -04:00
|
|
|
#if defined(__MACOS__) && defined(__MWERKS__)
|
|
|
|
argc = ccommand(&argv);
|
|
|
|
#endif
|
1998-01-16 07:13:05 -05:00
|
|
|
|
|
|
|
ruby_init();
|
|
|
|
ruby_options(argc, argv);
|
|
|
|
ruby_run();
|
1999-01-19 23:59:39 -05:00
|
|
|
return 0;
|
1998-01-16 07:13:05 -05:00
|
|
|
}
|