ruby-changes:15799
From: nobu <ko1@a...>
Date: Tue, 11 May 2010 09:57:24 +0900 (JST)
Subject: [ruby-changes:15799] Ruby:r27729 (trunk): * eval_intern.h (rb_vm_get_sourceline): add prototype.
nobu 2010-05-11 09:57:09 +0900 (Tue, 11 May 2010) New Revision: 27729 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27729 Log: * eval_intern.h (rb_vm_get_sourceline): add prototype. Modified files: trunk/ChangeLog trunk/eval_intern.h trunk/vm_dump.c trunk/vm_method.c Index: eval_intern.h =================================================================== --- eval_intern.h (revision 27728) +++ eval_intern.h (revision 27729) @@ -210,6 +210,7 @@ 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. */ Index: ChangeLog =================================================================== --- ChangeLog (revision 27728) +++ ChangeLog (revision 27729) @@ -1,3 +1,7 @@ +Tue May 11 09:57:05 2010 Nobuyoshi Nakada <nobu@r...> + + * eval_intern.h (rb_vm_get_sourceline): add prototype. + Tue May 11 09:53:07 2010 Nobuyoshi Nakada <nobu@r...> * ext/psych/parser.c (PSYCH_TRANSCODE): get rid of bare use of gcc Index: vm_method.c =================================================================== --- vm_method.c (revision 27728) +++ vm_method.c (revision 27729) @@ -304,7 +304,6 @@ 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; Index: vm_dump.c =================================================================== --- vm_dump.c (revision 27728) +++ vm_dump.c (revision 27729) @@ -103,8 +103,6 @@ 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); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/