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

ruby-changes:3092

From: ko1@a...
Date: 24 Dec 2007 16:52:51 +0900
Subject: [ruby-changes:3092] akr - Ruby:r14584 (trunk): enable several rdoc.

akr	2007-12-24 16:52:39 +0900 (Mon, 24 Dec 2007)

  New Revision: 14584

  Modified files:
    trunk/eval.c
    trunk/load.c
    trunk/numeric.c
    trunk/object.c
    trunk/thread.c

  Log:
    enable several rdoc.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/numeric.c?r1=14584&r2=14583
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/load.c?r1=14584&r2=14583
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/thread.c?r1=14584&r2=14583
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/eval.c?r1=14584&r2=14583
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/object.c?r1=14584&r2=14583

Index: object.c
===================================================================
--- object.c	(revision 14583)
+++ object.c	(revision 14584)
@@ -1312,11 +1312,11 @@
  *     a.meth2          #=> "bye"
  */
 
-extern VALUE rb_mod_module_exec(int argc, VALUE *argv, VALUE mod);
-
 static VALUE
 rb_mod_initialize(VALUE module)
 {
+    extern VALUE rb_mod_module_exec(int argc, VALUE *argv, VALUE mod);
+
     if (rb_block_given_p()) {
 	rb_mod_module_exec(1, &module, module);
     }
Index: load.c
===================================================================
--- load.c	(revision 14583)
+++ load.c	(revision 14584)
@@ -310,11 +310,8 @@
  *  file be propagated to the loading environment.
  */
 
-
 static VALUE
-rb_f_load(argc, argv)
-    int argc;
-    VALUE *argv;
+rb_f_load(int argc, VALUE *argv)
 {
     VALUE fname, wrap;
 
Index: thread.c
===================================================================
--- thread.c	(revision 14583)
+++ thread.c	(revision 14584)
@@ -393,16 +393,6 @@
     return thval;
 }
 
-/*
- *  call-seq:
- *     Thread.start([args]*) {|args| block }   => thread
- *     Thread.fork([args]*) {|args| block }    => thread
- *
- *  Basically the same as <code>Thread::new</code>. However, if class
- *  <code>Thread</code> is subclassed, then calling <code>start</code> in that
- *  subclass will not invoke the subclass's <code>initialize</code> method.
- */
-
 static VALUE
 thread_s_new(int argc, VALUE *argv, VALUE klass)
 {
@@ -417,6 +407,16 @@
     return thread;
 }
 
+/*
+ *  call-seq:
+ *     Thread.start([args]*) {|args| block }   => thread
+ *     Thread.fork([args]*) {|args| block }    => thread
+ *
+ *  Basically the same as <code>Thread::new</code>. However, if class
+ *  <code>Thread</code> is subclassed, then calling <code>start</code> in that
+ *  subclass will not invoke the subclass's <code>initialize</code> method.
+ */
+
 static VALUE
 thread_start(VALUE klass, VALUE args)
 {
@@ -2799,6 +2799,8 @@
     rb_remove_event_hook(0);
 }
 
+static void call_trace_func(rb_event_flag_t, VALUE data, VALUE self, ID id, VALUE klass);
+
 /*
  *  call-seq:
  *     set_trace_func(proc)    => proc
@@ -2842,8 +2844,6 @@
  *      return prog.rb:4        test     Test
  */
 
-static void call_trace_func(rb_event_flag_t, VALUE data, VALUE self, ID id, VALUE klass);
-
 static VALUE
 set_trace_func(VALUE obj, VALUE trace)
 {
Index: eval.c
===================================================================
--- eval.c	(revision 14583)
+++ eval.c	(revision 14584)
@@ -521,8 +521,7 @@
  */
 
 static VALUE
-rb_mod_method_defined(mod, mid)
-    VALUE mod, mid;
+rb_mod_method_defined(VALUE mod, VALUE mid)
 {
     return rb_method_boundp(mod, rb_to_id(mid), 1);
 }
Index: numeric.c
===================================================================
--- numeric.c	(revision 14583)
+++ numeric.c	(revision 14584)
@@ -2081,6 +2081,10 @@
     }
 }
 
+#define SQRT_LONG_MAX ((SIGNED_VALUE)1<<((SIZEOF_LONG*CHAR_BIT-1)/2))
+/*tests if N*N would overflow*/
+#define FIT_SQRT_LONG(n) (((n)<SQRT_LONG_MAX)&&((n)>=-SQRT_LONG_MAX))
+
 /*
  * call-seq:
  *   fix * numeric   =>  numeric_result
@@ -2090,10 +2094,6 @@
  * result.
  */
 
-#define SQRT_LONG_MAX ((SIGNED_VALUE)1<<((SIZEOF_LONG*CHAR_BIT-1)/2))
-/*tests if N*N would overflow*/
-#define FIT_SQRT_LONG(n) (((n)<SQRT_LONG_MAX)&&((n)>=-SQRT_LONG_MAX))
-
 static VALUE
 fix_mul(VALUE x, VALUE y)
 {

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

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