Ruby
2.0.0p247(2013-06-27revision41674)
|
00001 /********************************************************************** 00002 00003 main.c - 00004 00005 $Author: ko1 $ 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 "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