From 0c68198cc49431c683ffb9915e67cd05f625553a Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 27 Sep 2015 06:44:02 +0000 Subject: 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 --- iseq.h | 1 + 1 file changed, 1 insertion(+) (limited to 'iseq.h') diff --git a/iseq.h b/iseq.h index 9d544fdbe7..13d2f2630c 100644 --- a/iseq.h +++ b/iseq.h @@ -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 -- cgit v1.2.3