summaryrefslogtreecommitdiff
path: root/ext/dl
AgeCommit message (Collapse)Author
2009-10-25* ext/dl/handle.c (**) adding documentationtenderlove
* test/dl/test_handle.rb (**) testing to_i and initialize git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25* ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2)tenderlove
* test/dl/test_handle.rb (**) testing sym behavior git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-25* ext/dl/handle.c (rb_dlhandle_sym) removing unnecessary code. Addingtenderlove
documentation and tests for current functionality. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-24* ext/dl/handle.c (rb_dlhandle_close) check return value of dlclose()tenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-10-23* ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2)tenderlove
[ruby-core:25762] * ext/dl/dl.c (rb_dl_dlopen) removed rb_secure(2) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-12* configure.in (GCC): subst for GCC depending extension libraries.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-09-09* ext/dl/cfunc.c (dlcfunc_data_type): typed.nobu
* ext/dl/cptr.c (dlptr_data_type): ditto. * ext/dl/handle.c (dlhandle_data_type): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-23* ext/dl/handle.c (rb_dlhandle_s_sym): added a method to accessnobu
using RTLD_NEXT. [ruby-dev:38152] * ext/dl/handle.c (Init_dlhandle): added constants DEFAULT and NEXT which correspond to RTLD_DEFAULT and RTLD_NEXT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-23* ext/dl/lib/dl/cparser.rb (DL::CParser#parse_struct_signature):nobu
splitting with regexp source string is obsolete. a patch from Minwoo Lee at [ruby-core:23494]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-23* ext/dl/cptr.c (rb_dlptr_cmp): return signed value, and restrictnobu
to Fixnum. [ruby-dev:38533] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-16* ext/dl/lib/dl/callback.rb (DL#remove_callback_internal): ignorenobu
unbound function. [ruby-dev:38474] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-10* ext/dl/lib/dl/func.rb (DL::Function#bound?): returns if alreadynobu
bound to a block. * ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): block must be given if arg is not bound. [ruby-dev:38404] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-10* ext/dl/cfunc.c (rb_dlcfunc_instance_p): new function to check ifnobu
the argument is an instance of DL::CFunc. * ext/dl/cptr.c (rb_dlptr_initialize, rb_dlptr_s_malloc): checks if DL::CFunc. [ruby-dev:38403]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-10* ext/dl/cptr.c: consistent indentation.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-05-10* ext/dl/lib/dl/cparser.rb (DL::CParser#parse_signature): stripsnobu
spaces. based on a patch from Takashi Tamura in [ruby-dev:38398]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-21* ext/dl: updated svn:ignore.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23028 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-17* win32/Makefile.sub (config.h): added RUBY_COREDLL.nobu
* ext/dl/handle.c (rb_dlhandle_initialize): returns msvcrt if libc or RUBY_COREDLL is given. [ruby-core:22828] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-17* ext/dl: made indent style insistent.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-14* common.mk (srcs-ext): creates ext/dl/callback/callback.c also.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11* ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbolnobu
name. [ruby-dev:38150] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11 * ext/dl/win32/lib/Win32API.rb: call by :stdcall as default.usa
[ruby-core:22826] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11* ext/dl/handle.c (rb_dlhandle_sym): moved conditinally used variable.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-11* ext/dl/handle.c (rb_dlhandle_sym): fixed heap corruption.nobu
[ruby-core:22822] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-10* ext/dl/callback/mkcallback.rb (DLTYPE[FLOAT]): cast to suppressnobu
warnings. [ruby-core:22792] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-09* ext/dl/callback/depend: fix for parallel build.nobu
* ext/dl/callback/extconf.rb: callback.h is no longer created. * ext/dl/callback/mkcallback.rb: creates main source first. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-09* ext/dl/callback/extconf.rb ($distcleanfiles): added callback.c.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-09* ext/dl/dl.c (Init_dl): protoized.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06* {ext,lib,test}/**/*.rb: removed trailing spaces.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 * ext/dl/win32/lib/win32/resolv.rb: get rid of warning.usa
* ext/dl/lib/dl/func.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 * ext/dl/win32/lib/win32/{registry,resolv}.rb: use dl/import insteadusa
of Win32API. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03 * ext/dl/lib/dl/func.rb (DL::Function.name): delegate to @cfunc.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03* ext/dl/dl.c (rb_dl_init_callbacks): autoloads callbacks.nobu
* ext/dl/callback: split from dl. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03* ext/dl/lib/dl/cparser.rb (DL::CParser::parse_signature): fixednobu
variable name. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03* ext/dl/lib/dl/pack.rb (DL::PackInfo): reduced redundantnobu
initialization. * ext/dl/lib/dl/stack.rb (DL::Stack): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03* ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-03* test/dl: moved from ext/dl/test.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02* ext/dl/dl.h (dlerror): fixed on Windows.nobu
* ext/dl/handle.c (rb_dlhandle_initialize): returns handle to libruby if nil is given on Windows as dlopen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-02* ext/dl/handle.c (rb_dlhandle_sym): get rid of buffer overrun,nobu
and try ASCII WINAPI versions too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01* ext/dl/win32/lib/Win32API.rb (initialize): passes restnobu
arguments to DL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-01* ext/dl/cfunc.c (rb_dlcfunc_call): fix for stdcall and missingnobu
argument numbers. [ruby-core:22601] * ext/dl/dl.h (DLSTACK_PROTO0_): added. * ext/dl/mkcallback.rb (gencallback, gen_callback_file), (rb_dl_init_callbacks): omit stdcall functions unless supported. * lib/rubygems/config_file.rb (SHGetFolderPath): stdcall. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-17* ext/dl/handle.c (rb_dlhandle_sym): moved conditionally used variable.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-02-13* ext/dl/win32/lib/Win32API.rb (Win32API#initialize): DL.dlopennobu
raises DLError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-30* ext/dl/test/test_import.rb: fix a prototype decl.ko1
pointed out by Takehiro Kubo [ruby-core:20971]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29* ext/dl/test/test_base.rb: add libc search logic.ko1
this patch is written by Takehiro Kubo. [ruby-core:20963] [Bug #932] * ext/dl/dl.h: Add ",..." as the last argument. this patch is written by Takehiro Kubo. Bug #633 [ruby-core:19289] * ext/dl/lib/dl/stack.rb: add add_padding() to calculate alignment. this patch is written by Takehiro Kubo. Bug #633 [ruby-core:19289] * ext/dl/test/test_func.rb: atof()'s return value is double. this patch is written by Takehiro Kubo. Bug #633 [ruby-core:19289] * ext/dl/test/test_import.rb: - atof()'s return value is double. - The types of qsort's second and third argument are size_t. - fprintf()'s return value is int. this patch is written by Takehiro Kubo. Bug #633 [ruby-core:19289] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-29* ext/dl/test/test_base.rb: add x86_64-linux's case again. #932yugui
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28* test/ext/dl/test_base.rb : add BSD's case.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28* ext/dl/lib/dl/import.rb (DL::Importer#sizeof): followsyugui
a feature change in 1.9. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28* ext/dl/lib/dl/import.rb (DL::Importer#extern): adds filename andyugui
line number to module_eval'ing for readability of backtrace. (DL::Importer#bind): ditto. * ext/dl/lib/dl/struct.rb (DL::CStructBuilder#create): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28Sun Dec 28 17:10:13 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>takano32
* ext/dl/test/test_dl2.rb: modify strncpy, strcpy, qsort, types. Bug #633 [ruby-core:19289] * ext/dl/test/test_base.rb: /lib/libc.so is x86_64 binary in x86_64 architecture. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-28 * ext/dl/test/test_base.rb: use libc.dylib when the platform is darwin.takano32
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e