Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract Racc::VERSION from racc/info.rb at extconf.rb #241

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
#

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

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