Skip to content

Commit 9620964

Browse files
committed
Use API version for syntax version instead of program version
1 parent 234f4c0 commit 9620964

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

depend

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,7 +1415,6 @@ compile.$(OBJEXT): $(top_srcdir)/prism/util/pm_strncasecmp.h
14151415
compile.$(OBJEXT): $(top_srcdir)/prism/util/pm_strpbrk.h
14161416
compile.$(OBJEXT): $(top_srcdir)/prism/version.h
14171417
compile.$(OBJEXT): $(top_srcdir)/prism_compile.c
1418-
compile.$(OBJEXT): $(top_srcdir)/version.h
14191418
compile.$(OBJEXT): {$(VPATH)}assert.h
14201419
compile.$(OBJEXT): {$(VPATH)}atomic.h
14211420
compile.$(OBJEXT): {$(VPATH)}backward/2/assume.h
@@ -1606,7 +1605,6 @@ compile.$(OBJEXT): {$(VPATH)}prism_compile.h
16061605
compile.$(OBJEXT): {$(VPATH)}ractor.h
16071606
compile.$(OBJEXT): {$(VPATH)}re.h
16081607
compile.$(OBJEXT): {$(VPATH)}regex.h
1609-
compile.$(OBJEXT): {$(VPATH)}revision.h
16101608
compile.$(OBJEXT): {$(VPATH)}ruby_assert.h
16111609
compile.$(OBJEXT): {$(VPATH)}ruby_atomic.h
16121610
compile.$(OBJEXT): {$(VPATH)}rubyparser.h

prism_compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "prism.h"
2-
#include "version.h"
2+
#include "ruby/version.h"
33

44
/**
55
* 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)
1150111501
#define PM_VERSION_FOR_RELEASE_IMPL(major, minor) PM_OPTIONS_VERSION_CRUBY_##major##_##minor
1150211502

1150311503
void pm_options_version_for_current_ruby_set(pm_options_t *options) {
11504-
options->version = PM_VERSION_FOR_RELEASE(RUBY_VERSION_MAJOR, RUBY_VERSION_MINOR);
11504+
options->version = PM_VERSION_FOR_RELEASE(RUBY_API_VERSION_MAJOR, RUBY_API_VERSION_MINOR);
1150511505
}
1150611506

1150711507
#undef NEW_ISEQ

0 commit comments

Comments
 (0)