diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-09 07:11:59 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-09 07:11:59 +0000 |
commit | e9303e1a00f83d51d46c0df418cfbd57a1bb0c6d (patch) | |
tree | f12db4a89726de542abf8600fdec69c935eae195 /internal.h | |
parent | af0696782d78c6939d325dbe587a722b88f7e5dc (diff) |
Rename imemo_alloc with imemo_tmpbuf
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal.h b/internal.h index 8cc765f15c..a3b952e021 100644 --- a/internal.h +++ b/internal.h @@ -864,7 +864,7 @@ enum imemo_type { imemo_memo = 5, imemo_ment = 6, imemo_iseq = 7, - imemo_alloc = 8, + imemo_tmpbuf = 8, imemo_ast = 9, imemo_parser_strterm = 10 }; @@ -952,17 +952,17 @@ rb_vm_ifunc_proc_new(VALUE (*func)(ANYARGS), const void *data) return rb_vm_ifunc_new(func, data, 0, UNLIMITED_ARGUMENTS); } -typedef struct rb_imemo_alloc_struct { +typedef struct rb_imemo_tmpbuf_struct { VALUE flags; VALUE reserved; VALUE *ptr; /* malloc'ed buffer */ - struct rb_imemo_alloc_struct *next; /* next imemo */ + struct rb_imemo_tmpbuf_struct *next; /* next imemo */ size_t cnt; /* buffer size in VALUE */ -} rb_imemo_alloc_t; +} rb_imemo_tmpbuf_t; -VALUE rb_imemo_alloc_auto_free_pointer(void *buf); -VALUE rb_imemo_alloc_auto_free_maybe_mark_buffer(void *buf, size_t cnt); -rb_imemo_alloc_t *rb_imemo_alloc_parser_heap(void *buf, rb_imemo_alloc_t *old_heap, size_t cnt); +VALUE rb_imemo_tmpbuf_auto_free_pointer(void *buf); +VALUE rb_imemo_tmpbuf_auto_free_maybe_mark_buffer(void *buf, size_t cnt); +rb_imemo_tmpbuf_t *rb_imemo_tmpbuf_parser_heap(void *buf, rb_imemo_tmpbuf_t *old_heap, size_t cnt); void rb_strterm_mark(VALUE obj); |