lib/drb/drb.rb: Prevent a "warning: assigned but unused variable"
[ruby-80x24.org.git] / main.c
blobd81cfce8793dbe1573a3d9b5c1d20e54b0c4a210
1 /**********************************************************************
3 main.c -
5 $Author$
6 created at: Fri Aug 19 13:19:58 JST 1994
8 Copyright (C) 1993-2007 Yukihiro Matsumoto
10 **********************************************************************/
12 /*!
13 * \mainpage Developers' documentation for Ruby
15 * This documentation is produced by applying Doxygen to
16 * <a href="https://github.com/ruby/ruby">Ruby's source code</a>.
17 * It is still under construction (and even not well-maintained).
18 * If you are familiar with Ruby's source code, please improve the doc.
20 #undef RUBY_EXPORT
21 #include "ruby.h"
22 #include "vm_debug.h"
23 #ifdef HAVE_LOCALE_H
24 #include <locale.h>
25 #endif
26 #if RUBY_DEVEL && !defined RUBY_DEBUG_ENV
27 # define RUBY_DEBUG_ENV 1
28 #endif
29 #if defined RUBY_DEBUG_ENV && !RUBY_DEBUG_ENV
30 # undef RUBY_DEBUG_ENV
31 #endif
33 int
34 main(int argc, char **argv)
36 #ifdef RUBY_DEBUG_ENV
37 ruby_set_debug_option(getenv("RUBY_DEBUG"));
38 #endif
39 #ifdef HAVE_LOCALE_H
40 setlocale(LC_CTYPE, "");
41 #endif
43 ruby_sysinit(&argc, &argv);
45 RUBY_INIT_STACK;
46 ruby_init();
47 return ruby_run_node(ruby_options(argc, argv));