[前][次][番号順一覧][スレッド一覧]

ruby-changes:26921

From: nobu <ko1@a...>
Date: Tue, 29 Jan 2013 18:30:51 +0900 (JST)
Subject: [ruby-changes:26921] nobu:r38973 (trunk): debug: trivial fixes

nobu	2013-01-29 18:30:37 +0900 (Tue, 29 Jan 2013)

  New Revision: 38973

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38973

  Log:
    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.

  Modified files:
    trunk/ChangeLog
    trunk/ext/-test-/debug/init.c
    trunk/ext/-test-/debug/inspector.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38972)
+++ ChangeLog	(revision 38973)
@@ -16,7 +16,7 @@ Tue Jan 29 17:03:28 2013  Koichi Sasada https://github.com/ruby/ruby/blob/trunk/ChangeLog#L16
 	* 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@r...>
Index: ext/-test-/debug/init.c
===================================================================
--- ext/-test-/debug/init.c	(revision 38972)
+++ ext/-test-/debug/init.c	(revision 38973)
@@ -6,6 +6,6 @@ void https://github.com/ruby/ruby/blob/trunk/ext/-test-/debug/init.c#L6
 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);
 }
Index: ext/-test-/debug/inspector.c
===================================================================
--- ext/-test-/debug/inspector.c	(revision 38972)
+++ ext/-test-/debug/inspector.c	(revision 38973)
@@ -5,7 +5,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/ext/-test-/debug/inspector.c#L5
 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();

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]