diff options
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 39 |
1 files changed, 19 insertions, 20 deletions
@@ -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; |