Skip to content

Commit

Permalink
Merge pull request #205 from ruby/racc-version
Browse files Browse the repository at this point in the history
Adjust Racc parser version with gem version.
  • Loading branch information
hsbt authored Dec 23, 2022
2 parents 9b0a22c + 359971f commit e766291
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions ext/racc/com/headius/racc/Cparse.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
import org.jruby.runtime.load.Library;

public class Cparse implements Library {
public static final String RACC_VERSION = "1.4.15"; // TODO: parse from Cparse.c
public static final String RACC_VERSION = "1.6.1"; // TODO: parse from Cparse.c

public enum TokenType {
DEFAULT(-1),
Expand Down Expand Up @@ -738,7 +738,6 @@ public Parser(Ruby runtime, RubyClass rubyClass) {
}

public static final String Racc_Runtime_Core_Version_C = RACC_VERSION;
public static final String Racc_Runtime_Core_Id_C = "$originalId: cparse.c,v 1.8 2006/07/06 11:39:46 aamine Exp $";

@JRubyMethod(name = "_racc_do_parse_c", frame = true)
public IRubyObject racc_cparse(ThreadContext context, IRubyObject arg, IRubyObject sysdebug) {
Expand Down Expand Up @@ -821,7 +820,6 @@ public IRubyObject allocate(Ruby ruby, RubyClass rubyClass) {
parser.defineAnnotatedMethods(Parser.class);

parser.defineConstant("Racc_Runtime_Core_Version_C", runtime.newString(Parser.Racc_Runtime_Core_Version_C));
parser.defineConstant("Racc_Runtime_Core_Id_C", runtime.newString(Parser.Racc_Runtime_Core_Id_C));

CparseParams = racc.defineClassUnder("CparseParams", runtime.getObject(), new ObjectAllocator() {
@Override
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.4.15"
#define RACC_VERSION "1.6.1"

#define DEFAULT_TOKEN -1
#define ERROR_TOKEN 1
Expand Down

0 comments on commit e766291

Please sign in to comment.