Remove rb_imemo_tmpbuf_t from parser

No parser semantic value types are `VALUE` then no need to
use imemo for managing semantic value stack anymore.
This commit is contained in:
yui-knk 2024-04-01 14:33:17 +09:00 committed by Yuichiro Kaneko
parent e651395210
commit e816ab0b0c
7 changed files with 0 additions and 99 deletions

View file

@ -61,16 +61,6 @@
#define rb_encoding void
#ifndef INTERNAL_IMEMO_H
struct rb_imemo_tmpbuf_struct {
VALUE flags;
VALUE reserved;
VALUE *ptr; /* malloc'ed buffer */
struct rb_imemo_tmpbuf_struct *next; /* next imemo */
size_t cnt; /* buffer size in VALUE */
};
#endif
#undef xmalloc
#define xmalloc p->config->malloc
#undef xcalloc
@ -95,8 +85,6 @@ struct rb_imemo_tmpbuf_struct {
#undef MEMCPY
#define MEMCPY(p1,p2,type,n) (p->config->nonempty_memcpy((p1), (p2), sizeof(type), (n)))
#define rb_imemo_tmpbuf_parser_heap p->config->tmpbuf_parser_heap
#define compile_callback p->config->compile_callback
#define reg_named_capture_assign p->config->reg_named_capture_assign