From 6c38e611e4d40bc6a7d3a1673e7630932af1e9c2 Mon Sep 17 00:00:00 2001 From: marcandre Date: Fri, 30 Dec 2011 05:55:37 +0000 Subject: [PATCH] * vm_core.h: Fix comment about arg_opts of iseq and some typos * doc/re.rdoc: Rdoc small fixes * iseq.c: Fix comment git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- doc/re.rdoc | 6 +++--- iseq.c | 2 +- vm_core.h | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/re.rdoc b/doc/re.rdoc index 6c2ae90d7b..602775d95d 100644 --- a/doc/re.rdoc +++ b/doc/re.rdoc @@ -146,7 +146,7 @@ Ruby also supports the following non-POSIX character classes: * /[[:word:]]/ - A character in one of the following Unicode general categories _Letter_, _Mark_, _Number_, - Connector_Punctuation + Connector_Punctuation * /[[:ascii:]]/ - A character in the ASCII character set # U+06F2 is "EXTENDED ARABIC-INDIC DIGIT TWO" @@ -445,8 +445,8 @@ characters, anchoring the match to a specific position. it matches just before newline * \z - Matches end of string * \G - Matches point where last match finished -* \b - Matches word boundaries when outside brackets; backspace - (0x08) inside brackets +* \b - Matches word boundaries when outside brackets; + backspace (0x08) when inside brackets * \B - Matches non-word boundaries * (?=pat) - Positive lookahead assertion: ensures that the following characters match pat, but doesn't diff --git a/iseq.c b/iseq.c index 62f26d5ee7..3030899d83 100644 --- a/iseq.c +++ b/iseq.c @@ -1521,7 +1521,7 @@ rb_iseq_build_for_ruby2cext( 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); diff --git a/vm_core.h b/vm_core.h index c22621864e..9b72839bd1 100644 --- a/vm_core.h +++ b/vm_core.h @@ -200,14 +200,14 @@ struct rb_iseq_struct { * * 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. */