From fbe5ce6ca7c57cb74572395b6cc5e9f76dd3c9d8 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 11 May 2010 00:57:09 +0000 Subject: [PATCH] * 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 --- ChangeLog | 4 ++++ eval_intern.h | 1 + vm_dump.c | 2 -- vm_method.c | 1 - 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 814610a042..427f32e495 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue May 11 09:57:05 2010 Nobuyoshi Nakada + + * eval_intern.h (rb_vm_get_sourceline): add prototype. + Tue May 11 09:53:07 2010 Nobuyoshi Nakada * ext/psych/parser.c (PSYCH_TRANSCODE): get rid of bare use of gcc diff --git a/eval_intern.h b/eval_intern.h index 549953acfc..72ce25f2a7 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 7667cb616b..f245cccca0 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 = ""; } 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 69d50d969b..fffde6a333 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;