mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* eval.c (ruby_run): just return FAILURE instead of parse error
count. [ruby-list:38569] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ac52b49f4
commit
c12ae030ba
2 changed files with 10 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Oct 15 15:00:54 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* eval.c (ruby_run): just return FAILURE instead of parse error
|
||||||
|
count. [ruby-list:38569]
|
||||||
|
|
||||||
Wed Oct 15 13:17:02 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
Wed Oct 15 13:17:02 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* ext/digest/digest.c (rb_digest_base_alloc): need to initialize
|
* ext/digest/digest.c (rb_digest_base_alloc): need to initialize
|
||||||
|
|
2
eval.c
2
eval.c
|
@ -1390,7 +1390,7 @@ ruby_run()
|
||||||
int state;
|
int state;
|
||||||
static int ex;
|
static int ex;
|
||||||
|
|
||||||
if (ruby_nerrs > 0) exit(ruby_nerrs);
|
if (ruby_nerrs > 0) exit(EXIT_FAILURE);
|
||||||
state = ruby_exec();
|
state = ruby_exec();
|
||||||
if (state && !ex) ex = state;
|
if (state && !ex) ex = state;
|
||||||
ruby_stop(ex);
|
ruby_stop(ex);
|
||||||
|
|
Loading…
Add table
Reference in a new issue