[ruby-cvs:68791] mame:r61610 (trunk): node.h: remove NODE_PRELUDE

mame at ruby-lang.org mame at ruby-lang.org
Fri Jan 5 17:59:23 JST 2018


mame	2018-01-05 17:59:23 +0900 (Fri, 05 Jan 2018)

  New Revision: 61610

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61610

  Log:
    node.h: remove NODE_PRELUDE
    
    NODE_PRELUDE contains a `BEGIN` node, a main node, and compile_option.
    This node is assumed that it must be located immediately under the root
    NODE_SCOPE, but this strange assumption is not so good, IMO.
    
    This change removes the assumtion; it integrates the former two nodes by
    block_append, and moves compile_option into rb_ast_body_t.

  Modified files:
    trunk/compile.c
    trunk/ext/objspace/objspace.c
    trunk/iseq.c
    trunk/node.c
    trunk/node.h
    trunk/parse.y
    trunk/vm.c


More information about the ruby-cvs mailing list