diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-12-19 23:20:09 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-12-19 23:20:09 +0900 |
commit | 7b2ae8df905d7bbc084d31a8f55cecc7e7c422b3 () | |
tree | d1f60f7e5bedb3a43a8997ecfa3644c357d3b8b4 /rubyparser.h | |
parent | a58675386c10f4183116056bc0cf289548883ac0 (diff) |
[Bug #20969] Pass `assignable` from ripper
For the universal parser, `rb_reg_named_capture_assign_iter_impl` function is shared between the parser and ripper. However `parser_params` struct is partially different, and `assignable` function depends on that part indirectly.
Notes: Merged: https://.com/ruby/ruby/pull/12400
-rw-r--r-- | rubyparser.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1171,6 +1171,8 @@ typedef struct parser_params rb_parser_t; typedef struct rb_imemo_tmpbuf_struct rb_imemo_tmpbuf_t; #endif #ifdef UNIVERSAL_PARSER typedef struct rb_parser_config_struct { /* Memory */ @@ -1188,7 +1190,7 @@ typedef struct rb_parser_config_struct { // VALUE rb_suppress_tracing(VALUE (*func)(VALUE), VALUE arg); VALUE (*compile_callback)(VALUE (*func)(VALUE), VALUE arg); - NODE *(*reg_named_capture_assign)(struct parser_params* p, VALUE regexp, const rb_code_location_t *loc); /* Variable */ VALUE (*attr_get)(VALUE obj, ID id); |