summaryrefslogtreecommitdiffstats
path: root/ext/racc
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-10 03:06:15 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-10 03:06:15 +0000
commit8b218e7c33f5cfaba2e9292a46d3bdd919efff30 (patch)
tree642a6c82599486537c3136f32cac7a644c4bf4a3 /ext/racc
parentf5ed50e7f01723ad77a27501d66bca219d8810a9 (diff)
downloadruby-8b218e7c33f5cfaba2e9292a46d3bdd919efff30.tar.gz
ruby-8b218e7c33f5cfaba2e9292a46d3bdd919efff30.tar.xz
ruby-8b218e7c33f5cfaba2e9292a46d3bdd919efff30.zip
* include/ruby: moved public headers.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/racc')
-rw-r--r--ext/racc/cparse/cparse.c6
-rw-r--r--ext/racc/cparse/extconf.rb1
2 files changed, 2 insertions, 5 deletions
diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c
index e52d0da80..d085158f1 100644
--- a/ext/racc/cparse/cparse.c
+++ b/ext/racc/cparse/cparse.c
@@ -11,8 +11,7 @@
*/
-#include "ruby.h"
-#include "version.h"
+#include "ruby/ruby.h"
/* -----------------------------------------------------------------------
Important Constants
@@ -65,9 +64,6 @@ static ID id_d_e_pop;
#ifndef LONG2NUM
# define LONG2NUM(i) INT2NUM(i)
#endif
-#if RUBY_VERSION_CODE >= 190
-# define HAVE_RB_BLOCK_CALL 1
-#endif
static ID value_to_id _((VALUE v));
static inline long num_to_long _((VALUE n));
diff --git a/ext/racc/cparse/extconf.rb b/ext/racc/cparse/extconf.rb
index dd953a7e1..3710f6f7e 100644
--- a/ext/racc/cparse/extconf.rb
+++ b/ext/racc/cparse/extconf.rb
@@ -1,4 +1,5 @@
# $Id$
require 'mkmf'
+have_func('rb_block_call', 'ruby/ruby.h')
create_makefile 'racc/cparse'