main.c

Go to the documentation of this file.
00001 /**********************************************************************
00002 
00003   main.c -
00004 
00005   $Author: akr $
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 
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 

Generated on Wed Aug 10 09:13:59 2011 for Ruby by  doxygen 1.4.7