summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c39
1 files changed, 19 insertions, 20 deletions
diff --git a/eval.c b/eval.c
index 70051cab9c..24a7298387 100644
--- a/eval.c
+++ b/eval.c
@@ -1002,26 +1002,6 @@ ruby_init()
ruby_scope = top_scope;
}
-void
-ruby_options(argc, argv)
- int argc;
- char **argv;
-{
- int state;
-
- PUSH_TAG(PROT_NONE)
- if ((state = EXEC_TAG()) == 0) {
- ruby_process_options(argc, argv);
- }
- POP_TAG();
- if (state) {
- trace_func = 0;
- tracing = 0;
- error_print();
- exit(1);
- }
-}
-
static VALUE
eval_node(self)
VALUE self;
@@ -1100,6 +1080,25 @@ error_handle(ex)
}
void
+ruby_options(argc, argv)
+ int argc;
+ char **argv;
+{
+ int state;
+
+ PUSH_TAG(PROT_NONE)
+ if ((state = EXEC_TAG()) == 0) {
+ ruby_process_options(argc, argv);
+ }
+ POP_TAG();
+ if (state) {
+ trace_func = 0;
+ tracing = 0;
+ exit(error_handle(state));
+ }
+}
+
+void
ruby_run()
{
int state;