1
0
Fork 0
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:
nobu 2003-10-15 06:00:57 +00:00
parent 0ac52b49f4
commit c12ae030ba
2 changed files with 10 additions and 5 deletions

View file

@ -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
@ -32,7 +37,7 @@ Wed Oct 15 08:09:07 2003 why the lucky stiff <ruby-cvs@whytheluckystiff.net>
* ext/syck/handler.c: Now using 'tag' rather than 'taguri' in type URIs. * ext/syck/handler.c: Now using 'tag' rather than 'taguri' in type URIs.
* ext/syck/rubyext.c: Ditto (on both counts). * ext/syck/rubyext.c: Ditto (on both counts).
Wed Oct 15 05:05:53 2003 Akinori MUSHA <knu@iDaemons.org> Wed Oct 15 05:05:53 2003 Akinori MUSHA <knu@iDaemons.org>
* lib/generator.rb: A new library which converts an internal * lib/generator.rb: A new library which converts an internal
@ -43,10 +48,10 @@ Wed Oct 15 05:05:53 2003 Akinori MUSHA <knu@iDaemons.org>
Wed Oct 15 04:31:51 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> Wed Oct 15 04:31:51 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/sample/demos-en/entry3.rb, ext/tk/sample/demos-jp/entry3.rb : * ext/tk/sample/demos-en/entry3.rb, ext/tk/sample/demos-jp/entry3.rb :
new demo-scripts new demo-scripts
* ext/tk/sample/demos-en/widget, ext/tk/sample/demos-jp/widget : * ext/tk/sample/demos-en/widget, ext/tk/sample/demos-jp/widget :
add entries for 'entry3.rb' add entries for 'entry3.rb'
Wed Oct 15 04:31:47 2003 Akinori MUSHA <knu@iDaemons.org> Wed Oct 15 04:31:47 2003 Akinori MUSHA <knu@iDaemons.org>
@ -75,7 +80,7 @@ Wed Oct 15 00:20:15 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* ext/tk/lib/multi-tk.rb: support TclTkIp._thread_vwait and * ext/tk/lib/multi-tk.rb: support TclTkIp._thread_vwait and
_thread_tkwait. _thread_tkwait.
* ext/tk/lib/tk.rb: now, TkVariable#wait has 2 arguments. * ext/tk/lib/tk.rb: now, TkVariable#wait has 2 arguments.
If 1st argument is true, waits on a thread. If false, waits on If 1st argument is true, waits on a thread. If false, waits on
an eventloop. If 2nd argument is true, checks existence of an eventloop. If 2nd argument is true, checks existence of
rootwidgets. If false, doesn't. Default is wait(true, false). rootwidgets. If false, doesn't. Default is wait(true, false).

2
eval.c
View file

@ -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);