path: root/tool/compile_prelude.rb
diff options
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-17 22:43:38 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-17 22:43:38 +0000
commite7996eb3cc1687d1f70ea8f78befddf821ad3ff0 (patch)
treeec56eb86d91238755b2cfc180342fa495cc402e1 /tool/compile_prelude.rb
parentaba879a3f08cebd78ddd76aefceb6bafb8dbf907 (diff)
* internal.h: declare internal functions here.
* node.h: declare NODE dependent internal functions here. * iseq.h: declare rb_iseq_t dependent internal functions here. * vm_core.h: declare rb_thread_t dependent internal functions here. * bignum.c, class.c, compile.c, complex.c, cont.c, dir.c, encoding.c, enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c, iseq.c, load.c, marshal.c, math.c, numeric.c, object.c, parse.y, proc.c, process.c, range.c, rational.c, re.c, ruby.c, string.c, thread.c, time.c, transcode.c, variable.c, vm.c, tool/compile_prelude.rb: don't declare internal functions declared in above headers. include above headers if required. Note that rb_thread_mark() was declared as void rb_thread_mark(rb_thread_t *th) in cont.c but defined as void rb_thread_mark(void *ptr) in vm.c. Now it is declared as the later in internal.h. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/compile_prelude.rb')
1 files changed, 1 insertions, 2 deletions
diff --git a/tool/compile_prelude.rb b/tool/compile_prelude.rb
index 8ddf44edf1..6ad9fce7da 100755
--- a/tool/compile_prelude.rb
+++ b/tool/compile_prelude.rb
@@ -83,6 +83,7 @@ class Prelude
sources: <%= {|n,*| prelude_base(n)}.join(', ') %>
#include "ruby/ruby.h"
+#include "internal.h"
#include "vm_core.h"
% preludes = @preludes.values.sort
@@ -115,8 +116,6 @@ prelude_prefix_path(VALUE self)
% end
% unless preludes.empty?
-VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
static void
prelude_eval(VALUE code, VALUE name, VALUE line)