Skip to content

Commit

Permalink
Extract Racc::VERSION from racc/info.rb at extconf.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Oct 31, 2023
1 parent 01d7bda commit ac6b8bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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'

0 comments on commit ac6b8bc

Please sign in to comment.