aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index 5171fb4741..86f0a78c85 100644
--- a/parse.y
+++ b/parse.y
@@ -236,6 +236,7 @@ struct parser_params {
int line_count;
int has_shebang;
int parser_ruby_sourceline; /* current line no. */
+ rb_encoding *enc;
#ifndef RIPPER
/* Ruby core only */
@@ -257,8 +258,6 @@ struct parser_params {
VALUE parsing_thread;
int toplevel_p;
#endif
-
- rb_encoding *enc;
};
#define STR_NEW(p,n) rb_enc_str_new((p),(n),parser->enc)