summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS-H-GAMELINKS <[email protected]>2025-01-20 23:08:04 +0900
committerNobuyoshi Nakada <[email protected]>2025-01-20 23:52:56 +0900
commit5c95898e930051ecc48d5cd2dd3434c02dd661ad ()
treeb7889aac05342b038076e34feb89ed022aad0917
parent6d3951e788c8fae8b70cbd81ab0352cef372b4f3 (diff)
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.
Notes: Merged: https://.com/ruby/ruby/pull/12603
-rw-r--r--ruby_parser.c1
-rw-r--r--rubyparser.h1
-rw-r--r--universal_parser.c1
3 files changed, 0 insertions, 3 deletions
@@ -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