From 3f075b9ac9063a037456a2828a9478cc323fdb2e Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 20 Oct 2004 01:38:04 +0000 Subject: [PATCH] rdoc git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 1 + parse.y | 3 +++ re.c | 9 +++++++++ 3 files changed, 13 insertions(+) diff --git a/hash.c b/hash.c index 4fd2dd0a07..270553005f 100644 --- a/hash.c +++ b/hash.c @@ -613,6 +613,7 @@ rb_hash_key(hash, value) return args[1]; } +/* :nodoc: */ static VALUE rb_hash_index(hash, value) VALUE hash, value; diff --git a/parse.y b/parse.y index 22bbabf0db..e537858b09 100644 --- a/parse.y +++ b/parse.y @@ -8218,6 +8218,7 @@ parser_new() #ifdef RIPPER_DEBUG extern int rb_is_pointer_to_heap _((VALUE)); +/* :nodoc: */ static VALUE ripper_validate_object(self, x) VALUE self, x; @@ -8696,6 +8697,7 @@ ripper_lineno(self) } #ifdef RIPPER_DEBUG +/* :nodoc: */ static VALUE ripper_assert_Qundef(self, obj, msg) VALUE self, obj, msg; @@ -8707,6 +8709,7 @@ ripper_assert_Qundef(self, obj, msg) return Qnil; } +/* :nodoc: */ static VALUE ripper_value(self, obj) VALUE self, obj; diff --git a/re.c b/re.c index 8427535be4..daa179d819 100644 --- a/re.c +++ b/re.c @@ -1530,6 +1530,15 @@ rb_reg_match_pos(re, str, pos) return LONG2FIX(pos); } +/* + * call-seq: + * rxp =~ str => integer or nil + * + * Match---Matches rxp against str. + * + * /at/ =~ "input data" #=> 7 + */ + VALUE rb_reg_match(re, str) VALUE re, str;