summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-18 06:00:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-18 06:00:45 +0000
commit741ca76912fc71269dce5519a360f8c186e0530f (patch)
treee17dcbed96ca3425229edff91e0dd94d2b7d14b2 /eval.c
parent448e63d627bf3653da0b3dc0dcf93e161829dc71 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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;