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

ruby-changes:25980

From: zzak <ko1@a...>
Date: Fri, 30 Nov 2012 15:17:00 +0900 (JST)
Subject: [ruby-changes:25980] zzak:r38037 (trunk): * vm_trace.c (set_trace_func): Formatting of params and events

zzak	2012-11-30 15:15:59 +0900 (Fri, 30 Nov 2012)

  New Revision: 38037

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

  Log:
    * vm_trace.c (set_trace_func): Formatting of params and events

  Modified files:
    trunk/ChangeLog
    trunk/vm_trace.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 38036)
+++ ChangeLog	(revision 38037)
@@ -1,3 +1,7 @@
+Fri Nov 30 15:15:00 2012  Zachary Scott  <zachary@z...>
+
+	* vm_trace.c (set_trace_func): Formatting of params and events
+
 Fri Nov 30 14:45:00 2012  Zachary Scott  <zachary@z...>
 
 	* lib/net/http.rb: Net::HTTP::Patch to list of HTTP Request Classes
Index: vm_trace.c
===================================================================
--- vm_trace.c	(revision 38036)
+++ vm_trace.c	(revision 38037)
@@ -369,18 +369,32 @@
  *     set_trace_func(nil)     -> nil
  *
  *  Establishes _proc_ as the handler for tracing, or disables
- *  tracing if the parameter is +nil+. _proc_ takes up
- *  to six parameters: an event name, a filename, a line number, an
- *  object id, a binding, and the name of a class. _proc_ is
- *  invoked whenever an event occurs. Events are: <code>c-call</code>
- *  (call a C-language routine), <code>c-return</code> (return from a
- *  C-language routine), <code>call</code> (call a Ruby method),
- *  <code>class</code> (start a class or module definition),
- *  <code>end</code> (finish a class or module definition),
- *  <code>line</code> (execute code on a new line), <code>raise</code>
- *  (raise an exception), and <code>return</code> (return from a Ruby
- *  method). Tracing is disabled within the context of _proc_.
+ *  tracing if the parameter is +nil+.
  *
+ *  _proc_ takes up to six parameters:
+ *
+ *  *	an event name
+ *  *	a filename
+ *  *	a line number
+ *  *	an object id
+ *  *	a binding
+ *  *	the name of a class
+ *
+ *  _proc_ is invoked whenever an event occurs.
+ *
+ *  Events are:
+ *
+ *  +c-call+:: call a C-language routine
+ *  +c-return+:: return from a C-language routine
+ *  +call+:: call a Ruby method
+ *  +class+:: start a class or module definition),
+ *  +end+:: finish a class or module definition),
+ *  +line+:: execute code on a new line
+ *  +raise+:: raise an exception
+ *  +return+:: return from a Ruby method
+ *
+ *  Tracing is disabled within the context of _proc_.
+ *
  *      class Test
  *	def test
  *	  a = 1

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

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