summaryrefslogtreecommitdiff
path: root/ext/fiddle/handle.c
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-26 04:11:27 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-26 04:11:27 +0000
commit5cbfd7509c1d7a67a2ec972c37d5d641eb021f8f (patch)
treeb52edc34f627c2bcaab35f2cce4e248e166f5724 /ext/fiddle/handle.c
parent8948280c67072f652eebc31bc3a2f3fb86bcca5f (diff)
* ext/fiddle/lib/fiddle.rb: [DOC] Document Fiddle.dlopen(nil)
* ext/fiddle/handle.c: [DOC] Document Fiddle::Handle.new(nil) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle/handle.c')
-rw-r--r--ext/fiddle/handle.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/ext/fiddle/handle.c b/ext/fiddle/handle.c
index 832ff33..357ff05 100644
--- a/ext/fiddle/handle.c
+++ b/ext/fiddle/handle.c
@@ -113,10 +113,15 @@ predefined_fiddle_handle(void *handle)
/*
* call-seq:
- * new(lib = nil, flags = Fiddle::RTLD_LAZY | Fiddle::RTLD_GLOBAL)
+ * new(library = nil, flags = Fiddle::RTLD_LAZY | Fiddle::RTLD_GLOBAL)
+ *
+ * Create a new handler that opens +library+ with +flags+.
+ *
+ * If no +library+ is specified or +nil+ is given, RTLD_DEFAULT is used, which
+ * usually means +libc+.
+ *
+ * libc = Fiddle::Handle.new
*
- * Create a new handler that opens library named +lib+ with +flags+. If no
- * library is specified, RTLD_DEFAULT is used.
*/
static VALUE
rb_fiddle_handle_initialize(int argc, VALUE argv[], VALUE self)