mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
Remove rb_obj_as_string for Parser
Ruby Parser not used rb_obj_as_string. And obj_as_string property can be removed from Universal Parser.
This commit is contained in:
parent
6d3951e788
commit
5c95898e93
Notes:
git
2025-01-20 14:53:12 +00:00
@ -374,7 +374,6 @@ static const rb_parser_config_t rb_global_parser_config = {
|
||||
.rb_sprintf = rb_sprintf,
|
||||
.rstring_ptr = RSTRING_PTR,
|
||||
.rstring_len = RSTRING_LEN,
|
||||
.obj_as_string = rb_obj_as_string,
|
||||
|
||||
.int2num = rb_int2num_inline,
|
||||
|
||||
|
||||
@ -1260,7 +1260,6 @@ typedef struct rb_parser_config_struct {
|
||||
VALUE (*rb_sprintf)(const char *format, ...);
|
||||
char *(*rstring_ptr)(VALUE str);
|
||||
long (*rstring_len)(VALUE str);
|
||||
VALUE (*obj_as_string)(VALUE);
|
||||
|
||||
/* Numeric */
|
||||
VALUE (*int2num)(int v);
|
||||
|
||||
@ -124,7 +124,6 @@
|
||||
#define RSTRING_PTR p->config->rstring_ptr
|
||||
#undef RSTRING_LEN
|
||||
#define RSTRING_LEN p->config->rstring_len
|
||||
#define rb_obj_as_string p->config->obj_as_string
|
||||
|
||||
#undef INT2NUM
|
||||
#define INT2NUM p->config->int2num
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user