Project

General

Profile

« Previous | Next » 

Revision e4092873

Added by ko1 (Koichi Sasada) about 15 years ago

  • ruby.c (process_options): decrement parse_in_eval to recognize
    parsing main or normal eval script.
  • compile.c (rb_parse_in_main): return 1 if parsing main script.
    (if parse_in_eval is negative value, it means main script)
  • parse.y (yycompile0): check rb_parse_in_main() to accumulate
    script text. Bug #848 [ruby-core:20450]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e