diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-09 23:56:17 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-09 23:56:17 +0000 |
commit | bdcb8fd07e7e4aa6097b402b9f0986e756d20308 (patch) | |
tree | 98c897ade51a40f84895bc737485e5fa0afafe90 | |
parent | 94dc1e0b4ad27327beae4ff7e07e674ceb0a3fe9 (diff) | |
download | ruby-bdcb8fd07e7e4aa6097b402b9f0986e756d20308.tar.gz |
* gc.c (STACK_LEVEL_MAX, ruby_stack_length): returns size_t.
[ruby-core:18207]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | gc.c | 2 | ||||
-rw-r--r-- | include/ruby/intern.h | 2 |
3 files changed, 6 insertions, 3 deletions
@@ -1,4 +1,7 @@ -Sun Aug 10 08:15:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> +Sun Aug 10 08:56:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * gc.c (STACK_LEVEL_MAX, ruby_stack_length): returns size_t. + [ruby-core:18207] * configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert), ext/digest/md5/md5.c, ext/openssl/ossl.c (main), @@ -815,7 +815,7 @@ ruby_get_stack_grow_direction(VALUE *addr) #define GC_WATER_MARK 512 -int +size_t ruby_stack_length(VALUE **p) { rb_thread_t *th = GET_THREAD(); diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 243e7015a0..acd8d84c6b 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -330,7 +330,7 @@ VALUE rb_file_directory_p(VALUE,VALUE); void ruby_set_stack_size(size_t); NORETURN(void rb_memerror(void)); int ruby_stack_check(void); -int ruby_stack_length(VALUE**); +size_t ruby_stack_length(VALUE**); int rb_during_gc(void); void rb_gc_mark_locations(VALUE*, VALUE*); void rb_mark_tbl(struct st_table*); |