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;