summaryrefslogtreecommitdiff
path: root/internal.h
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 03:04:54 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 03:04:54 +0000
commitc1de9fc5efc84de132acee649be549020a497e21 (patch)
tree7ee631ec27206b41ddacc68a96aaf63bb1e2059a /internal.h
parent6916254afa41689f2480cf02f08ffb67004fc871 (diff)
downloadruby-c1de9fc5efc84de132acee649be549020a497e21.tar.gz
Replace NODE_STRTERM and NODE_HEREDOC with imemo_strterm
Just refactoring. NODE_STRTERM and NODE_HEREDOC are not an internal node of AST, but a temporary storage for managing termination of string literals and heredocs. Instead of NODE abuse, I want to use imemo for the storage in order to avoid (my) confusion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r--internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal.h b/internal.h
index ad29434c7c..e21a2b6801 100644
--- a/internal.h
+++ b/internal.h
@@ -845,7 +845,8 @@ enum imemo_type {
imemo_ment = 6,
imemo_iseq = 7,
imemo_alloc = 8,
- imemo_ast = 9
+ imemo_ast = 9,
+ imemo_strterm = 10
};
#define IMEMO_MASK 0x0f
@@ -941,6 +942,8 @@ typedef struct rb_imemo_alloc_struct {
rb_imemo_alloc_t *rb_imemo_alloc_new(VALUE, VALUE, VALUE, VALUE);
+void rb_strterm_mark(VALUE obj);
+
/*! MEMO
*
* @see imemo_type