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

ruby-changes:34791

From: ktsj <ko1@a...>
Date: Sat, 19 Jul 2014 13:22:43 +0900 (JST)
Subject: [ruby-changes:34791] ktsj:r46874 (trunk): * string.c: [DOC] teach rdoc symbol.c.

ktsj	2014-07-19 13:22:36 +0900 (Sat, 19 Jul 2014)

  New Revision: 46874

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

  Log:
    * string.c: [DOC] teach rdoc symbol.c.

  Modified files:
    trunk/string.c
Index: string.c
===================================================================
--- string.c	(revision 46873)
+++ string.c	(revision 46874)
@@ -8811,8 +8811,8 @@ Init_String(void) https://github.com/ruby/ruby/blob/trunk/string.c#L8811
     rb_define_method(rb_cString, "<<", rb_str_concat, 1);
     rb_define_method(rb_cString, "prepend", rb_str_prepend, 1);
     rb_define_method(rb_cString, "crypt", rb_str_crypt, 1);
-    rb_define_method(rb_cString, "intern", rb_str_dynamic_intern, 0); /* in parse.y */
-    rb_define_method(rb_cString, "to_sym", rb_str_dynamic_intern, 0); /* in parse.y */
+    rb_define_method(rb_cString, "intern", rb_str_dynamic_intern, 0); /* in symbol.c */
+    rb_define_method(rb_cString, "to_sym", rb_str_dynamic_intern, 0); /* in symbol.c */
     rb_define_method(rb_cString, "ord", rb_str_ord, 0);
 
     rb_define_method(rb_cString, "include?", rb_str_include, 1);
@@ -8881,7 +8881,7 @@ Init_String(void) https://github.com/ruby/ruby/blob/trunk/string.c#L8881
     rb_include_module(rb_cSymbol, rb_mComparable);
     rb_undef_alloc_func(rb_cSymbol);
     rb_undef_method(CLASS_OF(rb_cSymbol), "new");
-    rb_define_singleton_method(rb_cSymbol, "all_symbols", rb_sym_all_symbols, 0); /* in parse.y */
+    rb_define_singleton_method(rb_cSymbol, "all_symbols", rb_sym_all_symbols, 0); /* in symbol.c */
     rb_define_singleton_method(rb_cSymbol, "find", sym_find, 1);
 
     rb_define_method(rb_cSymbol, "==", sym_equal, 1);

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

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