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;
|
|
|
|
{
|
* 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-14 22:18:08 -05:00
|
|
|
#ifdef _WIN32
|
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
|
|
|
}
|