mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
c20a118c50
commit
fbe5ce6ca7
4 changed files with 5 additions and 3 deletions
|
@ -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>
|
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
|
* 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);
|
void rb_thread_terminate_all(void);
|
||||||
VALUE rb_vm_top_self();
|
VALUE rb_vm_top_self();
|
||||||
VALUE rb_vm_cbase(void);
|
VALUE rb_vm_cbase(void);
|
||||||
|
int rb_vm_get_sourceline(const rb_control_frame_t *);
|
||||||
void rb_trap_restore_mask(void);
|
void rb_trap_restore_mask(void);
|
||||||
|
|
||||||
#ifndef CharNext /* defined as CharNext[AW] on Windows. */
|
#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>";
|
iseq_name = "<ifunc>";
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int rb_vm_get_sourceline(rb_control_frame_t *);
|
|
||||||
|
|
||||||
pc = cfp->pc - cfp->iseq->iseq_encoded;
|
pc = cfp->pc - cfp->iseq->iseq_encoded;
|
||||||
iseq_name = RSTRING_PTR(cfp->iseq->name);
|
iseq_name = RSTRING_PTR(cfp->iseq->name);
|
||||||
line = rb_vm_get_sourceline(cfp);
|
line = rb_vm_get_sourceline(cfp);
|
||||||
|
|
|
@ -304,7 +304,6 @@ method_added(VALUE klass, ID mid)
|
||||||
rb_method_entry_t *
|
rb_method_entry_t *
|
||||||
rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *opts, rb_method_flag_t noex)
|
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_thread_t *th;
|
||||||
rb_control_frame_t *cfp;
|
rb_control_frame_t *cfp;
|
||||||
int line;
|
int line;
|
||||||
|
|
Loading…
Reference in a new issue