From 46463af983aee8b3e17635e796140c24a0469859 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Thu, 31 May 2018 06:13:06 +0000 Subject: Define AST module under RubyVM [experimental] * ext/-test-/ast/ast.c: Rename to ast.c and define AST module under RubyVM. * common.mk: compile ast.c. * ext/-test-/ast/extconf.rb: Don't need this file anymore. * inits.c (rb_call_inits): Call Init_ast to setup AST module. * test/-ext-/ast/test_ast.rb: Follow up the namespace change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- common.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'common.mk') diff --git a/common.mk b/common.mk index be57bfb1e5..1dbf1e85fa 100644 --- a/common.mk +++ b/common.mk @@ -75,6 +75,7 @@ MAKE_ENC = -f $(ENC_MK) V="$(V)" UNICODE_HDR_DIR="$(UNICODE_HDR_DIR)" \ RUBY="$(MINIRUBY)" MINIRUBY="$(MINIRUBY)" $(mflags) COMMONOBJS = array.$(OBJEXT) \ + ast.$(OBJEXT) \ bignum.$(OBJEXT) \ class.$(OBJEXT) \ compar.$(OBJEXT) \ @@ -1445,6 +1446,12 @@ array.$(OBJEXT): {$(VPATH)}ruby_assert.h array.$(OBJEXT): {$(VPATH)}st.h array.$(OBJEXT): {$(VPATH)}subst.h array.$(OBJEXT): {$(VPATH)}util.h +ast.$(OBJEXT): $(hdrdir)/ruby/ruby.h +ast.$(OBJEXT): $(top_srcdir)/include/ruby.h +ast.$(OBJEXT): {$(VPATH)}encoding.h +ast.$(OBJEXT): {$(VPATH)}internal.h +ast.$(OBJEXT): {$(VPATH)}node.h +ast.$(OBJEXT): {$(VPATH)}vm_core.h bignum.$(OBJEXT): $(hdrdir)/ruby/ruby.h bignum.$(OBJEXT): $(top_srcdir)/include/ruby.h bignum.$(OBJEXT): {$(VPATH)}bignum.c -- cgit v1.2.3