aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-30 13:21:30 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-30 13:21:30 +0000
commitc6915042aba8525ab40a27342a04a2accf865955 (patch)
tree9b2108a92a2c78d0dcb00311fd8b706124fad7d2
parent695cc19be963e35dabd85ea824a02f698bc260c0 (diff)
downloadruby-c6915042aba8525ab40a27342a04a2accf865955.tar.gz
vm.c: Move the rdoc of RubyVM.resolve_feature_path [Bug #15482]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--load.c11
-rw-r--r--vm.c12
2 files changed, 13 insertions, 10 deletions
diff --git a/load.c b/load.c
index 544357daba..d3ea6d7512 100644
--- a/load.c
+++ b/load.c
@@ -943,16 +943,7 @@ load_ext(VALUE path)
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)
diff --git a/vm.c b/vm.c
index b54d67bf5a..3e73e64d08 100644
--- a/vm.c
+++ b/vm.c
@@ -2889,6 +2889,18 @@ static VALUE usage_analysis_operand_stop(VALUE self);
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