From 7c2ae80d703edaff7f5727c5c78bbe02904e215c Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 21 Dec 2007 11:13:53 +0000 Subject: [PATCH] * include/ruby/ruby.h (rb_catch_obj, rb_throw_obj): prototyped. * include/ruby/intern.h (rb_fiber_alive_p): prototyped. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ include/ruby/intern.h | 1 + include/ruby/ruby.h | 2 ++ 3 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 6a404733ea..97eb30263a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Fri Dec 21 20:13:51 2007 Nobuyoshi Nakada + + * include/ruby/ruby.h (rb_catch_obj, rb_throw_obj): prototyped. + + * include/ruby/intern.h (rb_fiber_alive_p): prototyped. + Fri Dec 21 20:09:18 2007 Nobuyoshi Nakada * string.c (rb_str_succ): retry increasing until valid char is found. diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 37cec43d4c..a16b14f0dc 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -154,6 +154,7 @@ VALUE rb_fiber_new(VALUE (*)(ANYARGS), VALUE); VALUE rb_fiber_resume(VALUE fib, int argc, VALUE *args); VALUE rb_fiber_yield(int argc, VALUE *args); VALUE rb_fiber_current(void); +VALUE rb_fiber_alive_p(VALUE); /* enum.c */ /* enumerator.c */ VALUE rb_enumeratorize(VALUE, VALUE, int, VALUE *); diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 80f3a56e69..72d695a2bc 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -787,7 +787,9 @@ VALUE rb_rescue(VALUE(*)(ANYARGS),VALUE,VALUE(*)(ANYARGS),VALUE); VALUE rb_rescue2(VALUE(*)(ANYARGS),VALUE,VALUE(*)(ANYARGS),VALUE,...); VALUE rb_ensure(VALUE(*)(ANYARGS),VALUE,VALUE(*)(ANYARGS),VALUE); VALUE rb_catch(const char*,VALUE(*)(ANYARGS),VALUE); +VALUE rb_catch_obj(VALUE,VALUE(*)(ANYARGS),VALUE); NORETURN(void rb_throw(const char*,VALUE)); +NORETURN(void rb_throw_obj(VALUE,VALUE)); VALUE rb_require(const char*);