summaryrefslogtreecommitdiff
path: root/rubyparser.h
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2023-06-17 10:21:37 +0900
committerYuichiro Kaneko <spiketeika@gmail.com>2023-06-17 16:41:08 +0900
commit19c62b400d3458c4525f174515bcb616af7dfdfe (patch)
tree59a687fc1573a545cc21f6b529724cd7821a0df8 /rubyparser.h
parente5ae7a16b49d4cf7c7069aeb01ed5c4e58152055 (diff)
Replace parser & node compile_option from Hash to bit field
This commit reduces dependency to CRuby object.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7950
Diffstat (limited to 'rubyparser.h')
-rw-r--r--rubyparser.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/rubyparser.h b/rubyparser.h
index c3e3d870e2..ab70176fc4 100644
--- a/rubyparser.h
+++ b/rubyparser.h
@@ -309,11 +309,12 @@ typedef struct node_buffer_struct node_buffer_t;
/* T_IMEMO/ast */
typedef struct rb_ast_body_struct {
const NODE *root;
- VALUE compile_option;
VALUE script_lines;
// script_lines is either:
// - a Fixnum that represents the line count of the original source, or
// - an Array that contains the lines of the original source
+ int frozen_string_literal:2; /* -1: not specified, 0: false, 1: true */
+ int coverage_enabled:2; /* -1: not specified, 0: false, 1: true */
} rb_ast_body_t;
typedef struct rb_ast_struct {
VALUE flags;