From f58eb1e276a2db3ff2062c80a7acf97860aca8ca Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 24 Jun 2007 20:33:04 +0000 Subject: * eval.c: remove ruby_current_node and change eval() prototype. fix to use rb_sourcefile/line() instead of ruby_sourcefile/line. * error.c, eval_error.ci, eval_load.c, eval_safe.ci, gc.c, include/ruby/intern.h, parse.y, process.c, ruby.c: ditto. * vm.c: fix spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- error.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'error.c') diff --git a/error.c b/error.c index 6b5aac0126..d2b5a0ef71 100644 --- a/error.c +++ b/error.c @@ -26,9 +26,6 @@ extern const char ruby_version[], ruby_release_date[], ruby_platform[]; int ruby_nerrs; -const char *rb_sourcefile(void); -int rb_sourceline(void); - static int err_position_0(char *buf, long len, const char *file, long line) { @@ -52,7 +49,7 @@ err_position(char *buf, long len) static int compile_position(char *buf, long len) { - return err_position_0(buf, len, ruby_sourcefile, ruby_sourceline); + return err_position_0(buf, len, rb_sourcefile(), rb_sourceline()); } static void -- cgit v1.2.3