diff options
author | yui-knk <[email protected]> | 2024-04-01 14:33:17 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2024-04-02 19:37:27 +0900 |
commit | e816ab0b0ce97a49cc1a642c3fb6f78c9e838f97 () | |
tree | b2ef3903699b63d34fbc74d20216c658b4bf2875 /universal_parser.c | |
parent | e651395210b39123b6c404e455d9ff1f95d919bb (diff) |
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.
-rw-r--r-- | universal_parser.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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 |