summaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-24 20:33:04 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-24 20:33:04 +0000
commit1c08a457a28bba0b1b94c6e200e77a65720b4f72 (patch)
tree88b03ca1962b2997f5f8e749c5f3e9c04965f100 /error.c
parente7beb46b822b527f70eb12ee6783dd38dde9d766 (diff)
downloadruby-1c08a457a28bba0b1b94c6e200e77a65720b4f72.tar.gz
ruby-1c08a457a28bba0b1b94c6e200e77a65720b4f72.tar.xz
ruby-1c08a457a28bba0b1b94c6e200e77a65720b4f72.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@12608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/error.c b/error.c
index 6b5aac012..d2b5a0ef7 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