зеркало из https://github.com/github/ruby.git
* 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
This commit is contained in:
Родитель
8948280c67
Коммит
5cbfd7509c
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Jul 26 13:08:53 2013 Zachary Scott <e@zzak.io>
|
||||||
|
|
||||||
|
* ext/fiddle/lib/fiddle.rb: [DOC] Document Fiddle.dlopen(nil)
|
||||||
|
* ext/fiddle/handle.c: [DOC] Document Fiddle::Handle.new(nil)
|
||||||
|
|
||||||
Fri Jul 26 13:04:15 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Jul 26 13:04:15 2013 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* load.c (rb_load_internal): use rb_load_file_str() to keep path
|
* load.c (rb_load_internal): use rb_load_file_str() to keep path
|
||||||
|
|
|
@ -113,10 +113,15 @@ predefined_fiddle_handle(void *handle)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* call-seq:
|
* 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
|
static VALUE
|
||||||
rb_fiddle_handle_initialize(int argc, VALUE argv[], VALUE self)
|
rb_fiddle_handle_initialize(int argc, VALUE argv[], VALUE self)
|
||||||
|
|
|
@ -32,6 +32,11 @@ module Fiddle
|
||||||
# Creates a new handler that opens +library+, and returns an instance of
|
# Creates a new handler that opens +library+, and returns an instance of
|
||||||
# Fiddle::Handle.
|
# Fiddle::Handle.
|
||||||
#
|
#
|
||||||
|
# If +nil+ is given for the +library+, Fiddle::Handle::DEFAULT is used, which
|
||||||
|
# usually means +libc+.
|
||||||
|
#
|
||||||
|
# libc = Fiddle.dlopen(nil)
|
||||||
|
#
|
||||||
# See Fiddle::Handle.new for more.
|
# See Fiddle::Handle.new for more.
|
||||||
def dlopen library
|
def dlopen library
|
||||||
Fiddle::Handle.new library
|
Fiddle::Handle.new library
|
||||||
|
|
Загрузка…
Ссылка в новой задаче