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

ruby-changes:54438

From: mame <ko1@a...>
Date: Sun, 30 Dec 2018 22:21:36 +0900 (JST)
Subject: [ruby-changes:54438] mame:r66653 (trunk): vm.c: Move the rdoc of RubyVM.resolve_feature_path [Bug #15482]

mame	2018-12-30 22:21:30 +0900 (Sun, 30 Dec 2018)

  New Revision: 66653

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

  Log:
    vm.c: Move the rdoc of RubyVM.resolve_feature_path [Bug #15482]

  Modified files:
    trunk/load.c
    trunk/vm.c
Index: load.c
===================================================================
--- load.c	(revision 66652)
+++ load.c	(revision 66653)
@@ -943,16 +943,7 @@ load_ext(VALUE path) https://github.com/ruby/ruby/blob/trunk/load.c#L943
     return (VALUE)dln_load(RSTRING_PTR(path));
 }
 
-/*
- *  call-seq:
- *     RubyVM.resolve_feature_path(feature) -> [:rb or :so, path]
- *
- *  Identifies the file that will be loaded by "require(feature)".
- *  This API is experimental and just for internal.
- *
- *     RubyVM.resolve_feature_path("set")
- *       #=> [:rb, "/path/to/feature.rb"]
- */
+/* Method is documented in vm.c */
 
 VALUE
 rb_resolve_feature_path(VALUE klass, VALUE fname)
Index: vm.c
===================================================================
--- vm.c	(revision 66652)
+++ vm.c	(revision 66653)
@@ -2889,6 +2889,18 @@ static VALUE usage_analysis_operand_stop https://github.com/ruby/ruby/blob/trunk/vm.c#L2889
 static VALUE usage_analysis_register_stop(VALUE self);
 #endif
 
+/*
+ * Document-method: RubyVM::resolve_feature_path
+ * call-seq:
+ *   RubyVM.resolve_feature_path(feature) -> [:rb or :so, path]
+ *
+ * Identifies the file that will be loaded by "require(feature)".
+ * This API is experimental and just for internal.
+ *
+ *    RubyVM.resolve_feature_path("set")
+ *      #=> [:rb, "/path/to/feature.rb"]
+ */
+
 VALUE rb_resolve_feature_path(VALUE klass, VALUE fname);
 
 void

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

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