summaryrefslogtreecommitdiff
path: root/internal/parse.h
diff options
context:
space:
mode:
authoryui-knk <[email protected]>2024-04-23 11:27:42 +0900
committerYuichiro Kaneko <[email protected]>2024-04-23 13:11:46 +0900
commit33929ef995522f3e1898088dda52eec582ddd266 (patch)
tree532c610738ffe38ad6e0320453b914a10e19cfca /internal/parse.h
parente15a1920ca0c6a9a8fd1c827e52fc58f8885b533 (diff)
Move encoding object conversion outside of parser
Reduce the parser's dependence on `VALUE` and `rb_enc_from_encoding`.
Diffstat (limited to 'internal/parse.h')
-rw-r--r--internal/parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/parse.h b/internal/parse.h
index 73a1c2d1b1..f06020c73f 100644
--- a/internal/parse.h
+++ b/internal/parse.h
@@ -59,7 +59,7 @@ rb_ast_t *rb_parser_compile(rb_parser_t *p, rb_parser_lex_gets_func *gets, VALUE
RUBY_SYMBOL_EXPORT_BEGIN
-VALUE rb_ruby_parser_encoding(rb_parser_t *p);
+rb_encoding *rb_ruby_parser_encoding(rb_parser_t *p);
int rb_ruby_parser_end_seen_p(rb_parser_t *p);
int rb_ruby_parser_set_yydebug(rb_parser_t *p, int flag);
rb_parser_string_t *rb_str_to_parser_string(rb_parser_t *p, VALUE str);