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

Adjust Racc parser version with gem version. #205

Merged
merged 2 commits into from
Dec 23, 2022
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
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