summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-11 00:57:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-11 00:57:09 +0000
commitfbe5ce6ca7c57cb74572395b6cc5e9f76dd3c9d8 (patch)
tree9ceb2bac4a709c627e2546d5caf0af9ab965793e
parentc20a118c500a783388d698a8585ab25935160f98 (diff)
* eval_intern.h (rb_vm_get_sourceline): add prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--eval_intern.h1
-rw-r--r--vm_dump.c2
-rw-r--r--vm_method.c1
4 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 814610a..427f32e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Tue May 11 09:57:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_intern.h (rb_vm_get_sourceline): add prototype.
+
Tue May 11 09:53:07 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
* ext/psych/parser.c (PSYCH_TRANSCODE): get rid of bare use of gcc
diff --git a/eval_intern.h b/eval_intern.h
index 549953a..72ce25f 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -210,6 +210,7 @@ void rb_vm_set_progname(VALUE filename);
void rb_thread_terminate_all(void);
VALUE rb_vm_top_self();
VALUE rb_vm_cbase(void);
+int rb_vm_get_sourceline(const rb_control_frame_t *);
void rb_trap_restore_mask(void);
#ifndef CharNext /* defined as CharNext[AW] on Windows. */
diff --git a/vm_dump.c b/vm_dump.c
index 7667cb6..f245ccc 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -103,8 +103,6 @@ control_frame_dump(rb_thread_t *th, rb_control_frame_t *cfp)
iseq_name = "<ifunc>";
}
else {
- int rb_vm_get_sourceline(rb_control_frame_t *);
-
pc = cfp->pc - cfp->iseq->iseq_encoded;
iseq_name = RSTRING_PTR(cfp->iseq->name);
line = rb_vm_get_sourceline(cfp);
diff --git a/vm_method.c b/vm_method.c
index 69d50d9..fffde6a 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -304,7 +304,6 @@ method_added(VALUE klass, ID mid)
rb_method_entry_t *
rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *opts, rb_method_flag_t noex)
{
- int rb_vm_get_sourceline(const rb_control_frame_t *cfp);
rb_thread_t *th;
rb_control_frame_t *cfp;
int line;