From fe42e405abd72e8005b043f33a06d124531e0d1f Mon Sep 17 00:00:00 2001 From: aamine Date: Sun, 2 Jul 2006 10:04:14 +0000 Subject: [PATCH] * ext/racc/cparse/cparse.c: sync with original code, rev 1.7. * ext/racc/cparse/cparse.c: must require version.h to get RUBY_VERSION_CODE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 7 +++++++ ext/racc/cparse/cparse.c | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6018c45ba8..92c571c299 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sun Jul 2 19:03:30 2006 Minero Aoki + + * ext/racc/cparse/cparse.c: sync with original code, rev 1.7. + + * ext/racc/cparse/cparse.c: must require version.h to get + RUBY_VERSION_CODE. + Sun Jul 2 18:42:27 2006 Minero Aoki * ext/racc/cparse/cparse.c: sync with original source code, rev diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c index d846f4f309..be4d138849 100644 --- a/ext/racc/cparse/cparse.c +++ b/ext/racc/cparse/cparse.c @@ -7,11 +7,12 @@ This library is free software. You can distribute/modify this program under the same terms of ruby. - $originalId: cparse.c,v 1.6 2006/07/02 09:34:14 aamine Exp $ + $originalId: cparse.c,v 1.7 2006/07/02 10:02:02 aamine Exp $ */ #include "ruby.h" +#include "version.h" /* ----------------------------------------------------------------------- Important Constants @@ -188,7 +189,6 @@ static VALUE racc_yyparse _((VALUE parser, VALUE lexer, VALUE lexmid, VALUE arg, VALUE sysdebug)); static void call_lexer _((struct cparse_params *v)); -static VALUE lexer_iter _((VALUE data)); static VALUE lexer_i _((VALUE block_args, VALUE data, VALUE self)); static VALUE assert_array _((VALUE a)); @@ -765,7 +765,7 @@ Init_cparse(void) rb_define_const(Parser, "Racc_Runtime_Core_Version_C", rb_str_new2(RACC_VERSION)); rb_define_const(Parser, "Racc_Runtime_Core_Id_C", - rb_str_new2("$originalId: cparse.c,v 1.6 2006/07/02 09:34:14 aamine Exp $")); + rb_str_new2("$originalId: cparse.c,v 1.7 2006/07/02 10:02:02 aamine Exp $")); CparseParams = rb_define_class_under(Racc, "CparseParams", rb_cObject);