ruby-changes:50156
From: usa <ko1@a...>
Date: Wed, 7 Feb 2018 13:04:39 +0900 (JST)
Subject: [ruby-changes:50156] usa:r62274 (trunk): remove declaration of ruby_engine from internal.h
usa 2018-02-07 13:04:33 +0900 (Wed, 07 Feb 2018) New Revision: 62274 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62274 Log: remove declaration of ruby_engine from internal.h * internal.h (ruby_engine): remove declaration of ruby_engine because it's declared at ruby/version.h. * ruby.c: include ruby/version.h for ruby_engine. Modified files: trunk/internal.h trunk/ruby.c Index: internal.h =================================================================== --- internal.h (revision 62273) +++ internal.h (revision 62274) @@ -1859,9 +1859,6 @@ void rb_autoload_str(VALUE mod, ID id, V https://github.com/ruby/ruby/blob/trunk/internal.h#L1859 void rb_deprecate_constant(VALUE mod, const char *name); NORETURN(VALUE rb_mod_const_missing(VALUE,VALUE)); -/* version.c */ -extern const char ruby_engine[]; - /* vm_insnhelper.h */ rb_serial_t rb_next_class_serial(void); Index: ruby.c =================================================================== --- ruby.c (revision 62273) +++ ruby.c (revision 62274) @@ -17,6 +17,7 @@ https://github.com/ruby/ruby/blob/trunk/ruby.c#L17 #endif #include "ruby/encoding.h" #include "ruby/thread.h" +#include "ruby/version.h" #include "internal.h" #include "eval_intern.h" #include "dln.h" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/