diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-27 06:44:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-27 06:44:02 +0000 |
commit | 859337b17b5e1f9ee9ebeb0ac9e3ed7d73691ca2 (patch) | |
tree | 2f87021f6f7a577c1ab65ed51191bd448e39570e /iseq.h | |
parent | 71730b42434e3c2dce7e7f6488bd54fae52cae51 (diff) | |
download | ruby-859337b17b5e1f9ee9ebeb0ac9e3ed7d73691ca2.tar.gz |
fronzen-string-literal pragma
* compile.c (iseq_compile_each): override compile option by option
given by pragma.
* iseq.c (rb_iseq_make_compile_option): extract a function to
overwrite rb_compile_option_t.
* parse.y (parser_set_compile_option_flag): introduce pragma to
override compile options.
* parse.y (magic_comments): new pragma "fronzen-string-literal".
[Feature #8976]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.h')
-rw-r--r-- | iseq.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -173,6 +173,7 @@ enum defined_type { }; VALUE rb_iseq_defined_string(enum defined_type type); +void rb_iseq_make_compile_option(struct rb_compile_option_struct *option, VALUE opt); RUBY_SYMBOL_EXPORT_END |