Remove SYM2ID for Parser
Ruby Parser not used SYM2ID. And sym2id property can be removed from Universal Parser.
This commit is contained in:
parent
e0591b666f
commit
975461bf88
Notes:
git
2025-01-06 11:18:05 +00:00
@ -362,7 +362,6 @@ static const rb_parser_config_t rb_global_parser_config = {
|
|||||||
.id2name = rb_id2name,
|
.id2name = rb_id2name,
|
||||||
.id2str = rb_id2str,
|
.id2str = rb_id2str,
|
||||||
.id2sym = rb_id2sym,
|
.id2sym = rb_id2sym,
|
||||||
.sym2id = rb_sym2id,
|
|
||||||
|
|
||||||
.str_catf = rb_str_catf,
|
.str_catf = rb_str_catf,
|
||||||
.str_cat_cstr = rb_str_cat_cstr,
|
.str_cat_cstr = rb_str_cat_cstr,
|
||||||
|
@ -1233,7 +1233,6 @@ typedef struct rb_parser_config_struct {
|
|||||||
const char *(*id2name)(ID id);
|
const char *(*id2name)(ID id);
|
||||||
VALUE (*id2str)(ID id);
|
VALUE (*id2str)(ID id);
|
||||||
VALUE (*id2sym)(ID x);
|
VALUE (*id2sym)(ID x);
|
||||||
ID (*sym2id)(VALUE sym);
|
|
||||||
|
|
||||||
/* String */
|
/* String */
|
||||||
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 3)
|
RBIMPL_ATTR_FORMAT(RBIMPL_PRINTF_FORMAT, 2, 3)
|
||||||
|
@ -107,8 +107,6 @@
|
|||||||
#define rb_id2str p->config->id2str
|
#define rb_id2str p->config->id2str
|
||||||
#undef ID2SYM
|
#undef ID2SYM
|
||||||
#define ID2SYM p->config->id2sym
|
#define ID2SYM p->config->id2sym
|
||||||
#undef SYM2ID
|
|
||||||
#define SYM2ID p->config->sym2id
|
|
||||||
|
|
||||||
#define rb_str_catf p->config->str_catf
|
#define rb_str_catf p->config->str_catf
|
||||||
#undef rb_str_cat_cstr
|
#undef rb_str_cat_cstr
|
||||||
|
Loading…
x
Reference in New Issue
Block a user