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

ruby-changes:22110

From: marcandre <ko1@a...>
Date: Fri, 30 Dec 2011 14:57:06 +0900 (JST)
Subject: [ruby-changes:22110] marcandRe: r34158 (ruby_1_9_3): * vm_core.h: Fix comment about arg_opts of iseq and some typos

marcandre	2011-12-30 14:56:53 +0900 (Fri, 30 Dec 2011)

  New Revision: 34158

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

  Log:
    * vm_core.h: Fix comment about arg_opts of iseq and some typos
    
    * doc/re.rdoc: Rdoc small fixes
    
    * iseq.c: Fix comment

  Modified files:
    branches/ruby_1_9_3/doc/re.rdoc
    branches/ruby_1_9_3/iseq.c
    branches/ruby_1_9_3/vm_core.h

Index: ruby_1_9_3/doc/re.rdoc
===================================================================
--- ruby_1_9_3/doc/re.rdoc	(revision 34157)
+++ ruby_1_9_3/doc/re.rdoc	(revision 34158)
@@ -120,7 +120,7 @@
 
 * <tt>/[[:word:]]/</tt> - A character in one of the following Unicode
   general categories _Letter_, _Mark_, _Number_,
-  <i>Connector_Punctuation<i/i>
+  <i>Connector_Punctuation</i>
 * <tt>/[[:ascii:]]/</tt> - A character in the ASCII character set
 
     # U+06F2 is "EXTENDED ARABIC-INDIC DIGIT TWO"
@@ -419,8 +419,8 @@
   it matches just before newline
 * <tt>\z</tt> - Matches end of string
 * <tt>\G</tt> - Matches point where last match finished
-* <tt>\b</tt> - Matches word boundaries when outside brackets; backspace
-   (0x08) inside brackets
+* <tt>\b</tt> - Matches word boundaries when outside brackets;
+  backspace (0x08) when inside brackets
 * <tt>\B</tt> - Matches non-word boundaries
 * <tt>(?=</tt><i>pat</i><tt>)</tt> - <i>Positive lookahead</i> assertion:
   ensures that the following characters match <i>pat</i>, but doesn't
Index: ruby_1_9_3/vm_core.h
===================================================================
--- ruby_1_9_3/vm_core.h	(revision 34157)
+++ ruby_1_9_3/vm_core.h	(revision 34158)
@@ -200,14 +200,14 @@
      *
      *  argc           = M
      *  arg_rest       = M+N+1 // or -1 if no rest arg
-     *  arg_opts       = N
-     *  arg_opts_tbl   = [ (N entries) ]
+     *  arg_opts       = N+1   // or 0  if no optional arg
+     *  arg_opt_table  = [ (arg_opts entries) ]
      *  arg_post_len   = O // 0 if no post arguments
      *  arg_post_start = M+N+2
      *  arg_block      = M+N + 1 + O + 1 // -1 if no block arg
      *  arg_simple     = 0 if not simple arguments.
      *                 = 1 if no opt, rest, post, block.
-     *                 = 2 if ambiguos block parameter ({|a|}).
+     *                 = 2 if ambiguous block parameter ({|a|}).
      *  arg_size       = argument size.
      */
 
Index: ruby_1_9_3/iseq.c
===================================================================
--- ruby_1_9_3/iseq.c	(revision 34157)
+++ ruby_1_9_3/iseq.c	(revision 34158)
@@ -1496,7 +1496,7 @@
 void
 Init_ISeq(void)
 {
-    /* declare ::VM::InstructionSequence */
+    /* declare ::RubyVM::InstructionSequence */
     rb_cISeq = rb_define_class_under(rb_cRubyVM, "InstructionSequence", rb_cObject);
     rb_define_alloc_func(rb_cISeq, iseq_alloc);
     rb_define_method(rb_cISeq, "inspect", iseq_inspect, 0);

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

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