* 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
This commit is contained in:
nobu 2010-05-11 00:57:09 +00:00
Родитель c20a118c50
Коммит fbe5ce6ca7
4 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -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

Просмотреть файл

@ -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. */

Просмотреть файл

@ -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);

Просмотреть файл

@ -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;