mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
Use API version for syntax version instead of program version
This commit is contained in:
parent
234f4c0bb6
commit
9620964f9c
2
depend
2
depend
@ -1415,7 +1415,6 @@ compile.$(OBJEXT): $(top_srcdir)/prism/util/pm_strncasecmp.h
|
||||
compile.$(OBJEXT): $(top_srcdir)/prism/util/pm_strpbrk.h
|
||||
compile.$(OBJEXT): $(top_srcdir)/prism/version.h
|
||||
compile.$(OBJEXT): $(top_srcdir)/prism_compile.c
|
||||
compile.$(OBJEXT): $(top_srcdir)/version.h
|
||||
compile.$(OBJEXT): {$(VPATH)}assert.h
|
||||
compile.$(OBJEXT): {$(VPATH)}atomic.h
|
||||
compile.$(OBJEXT): {$(VPATH)}backward/2/assume.h
|
||||
@ -1606,7 +1605,6 @@ compile.$(OBJEXT): {$(VPATH)}prism_compile.h
|
||||
compile.$(OBJEXT): {$(VPATH)}ractor.h
|
||||
compile.$(OBJEXT): {$(VPATH)}re.h
|
||||
compile.$(OBJEXT): {$(VPATH)}regex.h
|
||||
compile.$(OBJEXT): {$(VPATH)}revision.h
|
||||
compile.$(OBJEXT): {$(VPATH)}ruby_assert.h
|
||||
compile.$(OBJEXT): {$(VPATH)}ruby_atomic.h
|
||||
compile.$(OBJEXT): {$(VPATH)}rubyparser.h
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
#include "prism.h"
|
||||
#include "version.h"
|
||||
#include "ruby/version.h"
|
||||
|
||||
/**
|
||||
* This compiler defines its own concept of the location of a node. We do this
|
||||
@ -11501,7 +11501,7 @@ pm_parse_stdin(pm_parse_result_t *result)
|
||||
#define PM_VERSION_FOR_RELEASE_IMPL(major, minor) PM_OPTIONS_VERSION_CRUBY_##major##_##minor
|
||||
|
||||
void pm_options_version_for_current_ruby_set(pm_options_t *options) {
|
||||
options->version = PM_VERSION_FOR_RELEASE(RUBY_VERSION_MAJOR, RUBY_VERSION_MINOR);
|
||||
options->version = PM_VERSION_FOR_RELEASE(RUBY_API_VERSION_MAJOR, RUBY_API_VERSION_MINOR);
|
||||
}
|
||||
|
||||
#undef NEW_ISEQ
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user