Skip to content

Commit

Permalink
Merge pull request #241 from nobu/info_version
Browse files Browse the repository at this point in the history
Extract Racc::VERSION from racc/info.rb at extconf.rb
  • Loading branch information
nobu committed Oct 31, 2023
2 parents aa1f322 + 32e5061 commit 5b7735c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion README.rdoc
Expand Up @@ -35,7 +35,6 @@

* Update VERSION number of these files
* <code>RACC_VERSION</code> in "ext/racc/com/headius/racc/Cparse.java"
* <code>RACC_VERSION</code> in "ext/racc/cparse/cparse.c"
* <code>VERSION</code> in "lib/racc/info.rb"
* Release as a gem by <code>rake release</code> with CRuby and JRuby because Racc gem provides 2 packages
* Create new release on {GitHub}[https://github.com/ruby/racc/releases]
Expand Down
2 changes: 1 addition & 1 deletion ext/racc/cparse/cparse.c
Expand Up @@ -22,7 +22,7 @@
Important Constants
----------------------------------------------------------------------- */

#define RACC_VERSION "1.7.1"
#define RACC_VERSION STRINGIZE(RACC_INFO_VERSION)

#define DEFAULT_TOKEN -1
#define ERROR_TOKEN 1
Expand Down
2 changes: 2 additions & 0 deletions ext/racc/cparse/extconf.rb
Expand Up @@ -2,5 +2,7 @@
#

require 'mkmf'
require_relative '../../../lib/racc/info'

$defs << "-D""RACC_INFO_VERSION=#{Racc::VERSION}"
create_makefile 'racc/cparse'

0 comments on commit 5b7735c

Please sign in to comment.