00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #undef RUBY_EXPORT
00013 #include "ruby.h"
00014 #include "vm_debug.h"
00015 #ifdef HAVE_LOCALE_H
00016 #include <locale.h>
00017 #endif
00018 #ifdef RUBY_DEBUG_ENV
00019 #include <stdlib.h>
00020 #endif
00021
00022 int
00023 main(int argc, char **argv)
00024 {
00025 #ifdef RUBY_DEBUG_ENV
00026 ruby_set_debug_option(getenv("RUBY_DEBUG"));
00027 #endif
00028 #ifdef HAVE_LOCALE_H
00029 setlocale(LC_CTYPE, "");
00030 #endif
00031
00032 ruby_sysinit(&argc, &argv);
00033 {
00034 RUBY_INIT_STACK;
00035 ruby_init();
00036 return ruby_run_node(ruby_options(argc, argv));
00037 }
00038 }
00039