Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

main.c

Go to the documentation of this file.
00001 /**********************************************************************
00002 
00003   main.c -
00004 
00005   $Author: eban $
00006   $Date: 2004/10/31 16:06:57 $
00007   created at: Fri Aug 19 13:19:58 JST 1994
00008 
00009   Copyright (C) 1993-2003 Yukihiro Matsumoto
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 /* to link startup code with ObjC support */
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 

Generated on Wed Jan 18 23:32:03 2006 for Ruby by doxygen 1.3.5