Ruby
1.9.3p448(2013-06-27revision41675)
Main Page
Modules
Data Structures
Files
File List
Globals
main.c
Go to the documentation of this file.
1
/**********************************************************************
2
3
main.c -
4
5
$Author: shyouhei $
6
created at: Fri Aug 19 13:19:58 JST 1994
7
8
Copyright (C) 1993-2007 Yukihiro Matsumoto
9
10
**********************************************************************/
11
12
#undef RUBY_EXPORT
13
#include "ruby.h"
14
#include "
debug.h
"
15
#ifdef HAVE_LOCALE_H
16
#include <locale.h>
17
#endif
18
#ifdef RUBY_DEBUG_ENV
19
#include <stdlib.h>
20
#endif
21
22
RUBY_GLOBAL_SETUP
23
24
int
25
main
(
int
argc
,
char
**
argv
)
26
{
27
#ifdef RUBY_DEBUG_ENV
28
ruby_set_debug_option
(
getenv
(
"RUBY_DEBUG"
));
29
#endif
30
#ifdef HAVE_LOCALE_H
31
setlocale(LC_CTYPE,
""
);
32
#endif
33
34
ruby_sysinit
(&argc, &argv);
35
{
36
RUBY_INIT_STACK
;
37
ruby_init
();
38
return
ruby_run_node
(
ruby_options
(argc, argv));
39
}
40
}
debug.h
RUBY_GLOBAL_SETUP
#define RUBY_GLOBAL_SETUP
Definition:
ruby.h:1393
RUBY_INIT_STACK
#define RUBY_INIT_STACK
Definition:
ruby.h:1225
ruby_init
void ruby_init(void)
Definition:
eval.c:37
argc
int argc
Definition:
ruby.c:120
ruby_sysinit
#define ruby_sysinit
Definition:
stub.c:3
getenv
char * getenv()
ruby_run_node
#define ruby_run_node
Definition:
goruby.c:2
ruby_set_debug_option
void ruby_set_debug_option(const char *str)
Definition:
debug.c:159
main
RUBY_GLOBAL_SETUP int main(int argc, char **argv)
Definition:
main.c:25
ruby_options
void * ruby_options(int argc, char **argv)
Definition:
eval.c:65
argv
char ** argv
Definition:
ruby.c:121
Generated on Thu Jul 31 2014 19:14:28 for Ruby by
1.8.7