Ruby 1.9.3p327(2012-11-10revision37606)
|
00001 /********************************************************************** 00002 00003 main.c - 00004 00005 $Author: shyouhei $ 00006 created at: Fri Aug 19 13:19:58 JST 1994 00007 00008 Copyright (C) 1993-2007 Yukihiro Matsumoto 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 #ifdef RUBY_DEBUG_ENV 00019 #include <stdlib.h> 00020 #endif 00021 00022 RUBY_GLOBAL_SETUP 00023 00024 int 00025 main(int argc, char **argv) 00026 { 00027 #ifdef RUBY_DEBUG_ENV 00028 ruby_set_debug_option(getenv("RUBY_DEBUG")); 00029 #endif 00030 #ifdef HAVE_LOCALE_H 00031 setlocale(LC_CTYPE, ""); 00032 #endif 00033 00034 ruby_sysinit(&argc, &argv); 00035 { 00036 RUBY_INIT_STACK; 00037 ruby_init(); 00038 return ruby_run_node(ruby_options(argc, argv)); 00039 } 00040 } 00041