ROOT  6.06/09
Reference Guide
ruby64.c
Go to the documentation of this file.
1 /**********************************************************************
2 
3  main.c -
4 
5  $Author: shyouhei $
6  $Date: 2007-02-13 08:01:19 +0900 (Tue, 13 Feb 2007) $
7  created at: Fri Aug 19 13:19:58 JST 1994
8 
9  Copyright (C) 1993-2003 Yukihiro Matsumoto
10 
11 **********************************************************************/
12 
13 #include "ruby.h"
14 
15 #ifdef __human68k__
16 int _stacksize = 262144;
17 #endif
18 
19 #if defined __MINGW32__
20 int _CRT_glob = 0;
21 #endif
22 
23 #if defined(__MACOS__) && defined(__MWERKS__)
24 #include <console.h>
25 #endif
26 
27 /* to link startup code with ObjC support */
28 /* don't core about ObjC support (rdm)
29 #if (defined(__APPLE__) || defined(__NeXT__)) && defined(__MACH__)
30 static void objcdummyfunction( void ) { objc_msgSend(); }
31 #endif
32 */
33 
34 int
35 main(argc, argv, envp)
36  int argc;
37  char **argv, **envp;
38 {
39 #ifdef _WIN32
40  NtInitialize(&argc, &argv);
41 #endif
42 #if defined(__MACOS__) && defined(__MWERKS__)
43  argc = ccommand(&argv);
44 #endif
45 
46  {
47  RUBY_INIT_STACK
48  ruby_init();
49  ruby_options(argc, argv);
50  ruby_run();
51  }
52  return 0;
53 }
int main(int argc, char **argv, char **envp)
Definition: ruby64.c:35