diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-18 08:21:40 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-03-18 08:21:40 +0000 |
commit | e24034b0f8e36a6b50f557f952e09a9e96eb3b6d (patch) | |
tree | 9d4d04c3e8a23092a4e4886516179036ba5eeb78 | |
parent | a11a07801e3aae0c5ef1524e5f7c8f105fe1ab7c (diff) | |
download | ruby-e24034b0f8e36a6b50f557f952e09a9e96eb3b6d.tar.gz ruby-e24034b0f8e36a6b50f557f952e09a9e96eb3b6d.tar.xz ruby-e24034b0f8e36a6b50f557f952e09a9e96eb3b6d.zip |
* eval.c (rb_f_abort): should not bypass cleanup.
* ext/stringio/stringio.c (check_modifiable): void function.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | eval.c | 2 | ||||
-rw-r--r-- | ext/stringio/stringio.c | 3 |
3 files changed, 9 insertions, 2 deletions
@@ -1,3 +1,9 @@ +Mon Mar 18 17:18:06 2002 Nobuyoshi Nakada <nobu.nakada@nifty.ne.jp> + + * eval.c (rb_f_abort): should not bypass cleanup. + + * ext/stringio/stringio.c (check_modifiable): void function. + Mon Mar 18 12:52:01 2002 WATANABE Hirofumi <eban@ruby-lang.org> * ext/iconv/extconf.rb: workaround for GNU libiconv. @@ -3504,7 +3504,7 @@ rb_f_abort(argc, argv) rb_scan_args(argc, argv, "01", &mesg); rb_io_puts(argc, argv, rb_stderr); - exit(1); + rb_exit(1); } return Qnil; /* not reached */ } diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c index 25122dd1b..14611a77f 100644 --- a/ext/stringio/stringio.c +++ b/ext/stringio/stringio.c @@ -32,6 +32,7 @@ static struct StringIO* check_strio _((VALUE)); static struct StringIO* get_strio _((VALUE)); static struct StringIO* readable _((struct StringIO *)); static struct StringIO* writable _((struct StringIO *)); +static struct void check_modifiable _((struct StringIO *)); #define IS_STRIO(obj) (RDATA(obj)->dmark == (RUBY_DATA_FUNC)strio_mark) #define error_inval(msg) (errno = EINVAL, rb_sys_fail(msg)) @@ -117,7 +118,7 @@ writable(ptr) return ptr; } -static struct StringIO* +static struct void check_modifiable(ptr) struct StringIO *ptr; { |