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
|
|
|
|
|
2003-01-16 10:34:03 +03:00
|
|
|
Copyright (C) 1993-2003 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;
|
|
|
|
{
|
* configure.in, defines.h, dir.c, dir.h, dln.c, error.c,
eval.c, file.c, hash.c, io.c, main.c, missing.c,
process.c, ruby.c, rubysig.h, signal.c, st.c, util.c, util.h,
bcc/Makefile.sub, win32/Makefile.sub, win32/win32.h,
ext/Win32API/Win32API.c, ext/socket/getaddrinfo.c,
ext/socket/getnameinfo.c, ext/socket/socket.c,
ext/tcltklib/stubs.c
: replace "NT" with "_WIN32", add DOSISH_DRIVE_LETTER
* wince/exe.mak : delete \r at the end of lines.
* wince/mswince-ruby17.def : delete rb_obj_become
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2002-12-15 06:18:08 +03:00
|
|
|
#ifdef _WIN32
|
1998-01-16 15:13:05 +03:00
|
|
|
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
|
|
|
}
|