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