mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
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
This commit is contained in:
parent
75d5cf55de
commit
58823392b4
3 changed files with 14 additions and 14 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue