diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-09 06:12:17 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-09 06:12:17 +0000 |
commit | 58823392b465ef50819f36994be5a75a91da6ecc (patch) | |
tree | afe8e53929c163c73b3eb678b5946db5dfb0e77b /internal.h | |
parent | 75d5cf55dea0c1351ebd37d432545935698c5c18 (diff) |
gc.c (rb_imemo_alloc_new): improve the API interface
rb_imemo_alloc_new returns rb_imemo_alloc_t*, but took VALUEs, which is
inconsistent. To make the intention clear, it now takes only a pointer
to the buffer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h index 6cab3d4ffd..304dcc1910 100644 --- a/internal.h +++ b/internal.h @@ -960,7 +960,7 @@ typedef struct rb_imemo_alloc_struct { size_t cnt; /* buffer size in VALUE */ } rb_imemo_alloc_t; -rb_imemo_alloc_t *rb_imemo_alloc_new(VALUE, VALUE, VALUE, VALUE); +rb_imemo_alloc_t *rb_imemo_alloc_new(void *buf); void rb_strterm_mark(VALUE obj); |