00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #include "ruby.h"
00014
00015 #ifdef __human68k__
00016 int _stacksize = 262144;
00017 #endif
00018
00019 #if defined __MINGW32__
00020 int _CRT_glob = 0;
00021 #endif
00022
00023 #if defined(__MACOS__) && defined(__MWERKS__)
00024 #include <console.h>
00025 #endif
00026
00027
00028 #if (defined(__APPLE__) || defined(__NeXT__)) && defined(__MACH__)
00029 static void objcdummyfunction( void ) { objc_msgSend(); }
00030 #endif
00031
00032 int
00033 main(argc, argv, envp)
00034 int argc;
00035 char **argv, **envp;
00036 {
00037 #ifdef _WIN32
00038 NtInitialize(&argc, &argv);
00039 #endif
00040 #if defined(__MACOS__) && defined(__MWERKS__)
00041 argc = ccommand(&argv);
00042 #endif
00043
00044 ruby_init();
00045 ruby_options(argc, argv);
00046 ruby_run();
00047 return 0;
00048 }
00049