diff options
author | yui-knk <[email protected]> | 2023-12-28 11:52:50 +0900 |
---|---|---|
committer | Yuichiro Kaneko <[email protected]> | 2023-12-28 13:17:36 +0900 |
commit | 4374236e959c1e585611acfc7a2e3d2142265ab0 () | |
tree | 737356bfa56a37a7a62762b04eb6f6de5261fb6f | |
parent | 02973b78f499acc28c714a082c82a846314a911f (diff) |
Add errno_ptr property for Universal Parser
-rw-r--r-- | ruby_parser.c | 7 | ||||
-rw-r--r-- | rubyparser.h | 1 | ||||
-rw-r--r-- | universal_parser.c | 2 |
3 files changed, 10 insertions, 0 deletions
@@ -450,6 +450,12 @@ ruby_verbose2(void) return ruby_verbose; } static int type_p(VALUE obj, int t) { @@ -724,6 +730,7 @@ rb_parser_config_initialize(rb_parser_config_t *config) config->bug = rb_bug; config->fatal = rb_fatal; config->verbose = ruby_verbose2; config->make_backtrace = rb_make_backtrace; @@ -1352,6 +1352,7 @@ typedef struct rb_parser_config_struct { void (*bug)(const char *fmt, ...); void (*fatal)(const char *fmt, ...); VALUE (*verbose)(void); /* VM */ VALUE (*make_backtrace)(void); @@ -331,6 +331,8 @@ struct rb_imemo_tmpbuf_struct { #define rb_fatal p->config->fatal #undef ruby_verbose #define ruby_verbose p->config->verbose() #define rb_make_backtrace p->config->make_backtrace |