зеркало из https://github.com/github/ruby.git
debug: trivial fixes
* ext/-test-/debug/init.c (Init_debug): use normal module. * ext/-test-/debug/inspector.c (callback): debug_inspector interfaces now use long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
e3f88ac44d
Коммит
18a8812e36
|
@ -16,7 +16,7 @@ Tue Jan 29 17:03:28 2013 Koichi Sasada <ko1@atdot.net>
|
|||
* vm_backtrace.c, include/ruby/debug.h: add new C api (experimental)
|
||||
rb_debug_inspector_frame_self_get().
|
||||
|
||||
* vm.c, vm_core.h, vm_trace.c: move decl. of
|
||||
* vm.c, vm_core.h, vm_trace.c: move decl. of
|
||||
rb_vm_control_frame_id_and_class() and constify first parameter.
|
||||
|
||||
Tue Jan 29 16:50:58 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
|
|
@ -6,6 +6,6 @@ void
|
|||
Init_debug(void)
|
||||
{
|
||||
VALUE mBug = rb_define_module("Bug");
|
||||
VALUE klass = rb_define_class_under(mBug, "Debug", rb_cModule);
|
||||
VALUE klass = rb_define_module_under(mBug, "Debug");
|
||||
TEST_INIT_FUNCS(init);
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@ static VALUE
|
|||
callback(const rb_debug_inspector_t *dbg_context, void *data)
|
||||
{
|
||||
VALUE locs = rb_debug_inspector_backtrace_locations(dbg_context);
|
||||
int i, len = RARRAY_LENINT(locs);
|
||||
long i, len = RARRAY_LEN(locs);
|
||||
VALUE binds = rb_ary_new();
|
||||
for (i = 0; i < len; ++i) {
|
||||
VALUE entry = rb_ary_new();
|
||||
|
|
Загрузка…
Ссылка в новой задаче