main.c
DEFINITIONS
This source file includes following functions.
- objcdummyfunction
- main
1
2
3
4
5
6
7
8
9
10
11
12
13 #include "ruby.h"
14
15 #ifdef DJGPP
16 unsigned int _stklen = 0x180000;
17 #endif
18
19 #ifdef __human68k__
20 int _stacksize = 262144;
21 #endif
22
23 #if defined __MINGW32__
24 int _CRT_glob = 0;
25 #endif
26
27 #if defined(__MACOS__) && defined(__MWERKS__)
28 #include <console.h>
29 #endif
30
31
32 #if defined(__APPLE__) && defined(__MACH__)
33 static void objcdummyfunction( void ) { objc_msgSend(); }
34 #endif
35
36 int
37 main(argc, argv, envp)
38 int argc;
39 char **argv, **envp;
40 {
41 #if defined(NT)
42 NtInitialize(&argc, &argv);
43 #endif
44 #if defined(__MACOS__) && defined(__MWERKS__)
45 argc = ccommand(&argv);
46 #endif
47
48 ruby_init();
49 ruby_options(argc, argv);
50 ruby_run();
51 return 0;
52 }