ruby-changes:48643
From: ko1 <ko1@a...>
Date: Tue, 14 Nov 2017 10:37:49 +0900 (JST)
Subject: [ruby-changes:48643] ko1:r60758 (trunk): use RUBY_API_VERSION as ISEQ versions.
ko1 2017-11-14 10:37:41 +0900 (Tue, 14 Nov 2017) New Revision: 60758 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60758 Log: use RUBY_API_VERSION as ISEQ versions. * iseq.h: use RUBY_API_VERSION_MAJOR for ISEQ_MAJOR_VERSION and RUBY_API_VERSION_MINOR for ISEQ_MINOR_VERSION. We need to keep compatibility for ISeq during same major/minor versions. If we need to change compatibility between teeny versions, we should use (RUBY_API_VERSION_MINOR * 10 + iseq revs) for ISEQ_MINOR_VERSION. Modified files: trunk/iseq.h Index: iseq.h =================================================================== --- iseq.h (revision 60757) +++ iseq.h (revision 60758) @@ -12,8 +12,10 @@ https://github.com/ruby/ruby/blob/trunk/iseq.h#L12 #ifndef RUBY_ISEQ_H #define RUBY_ISEQ_H 1 -#define ISEQ_MAJOR_VERSION 2 -#define ISEQ_MINOR_VERSION 3 +#include "ruby/version.h" + +#define ISEQ_MAJOR_VERSION RUBY_API_VERSION_MAJOR +#define ISEQ_MINOR_VERSION RUBY_API_VERSION_MINOR #ifndef rb_iseq_t typedef struct rb_iseq_struct rb_iseq_t; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/