summaryrefslogtreecommitdiffstats
path: root/ext/dl
Commit message (Collapse)AuthorAgeFilesLines
* * ext/dl/test/test_import.rb: fix a prototype decl.ko12008-12-301-1/+1
| | | | | | | | pointed out by Takehiro Kubo [ruby-core:20971]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_base.rb: add libc search logic.ko12008-12-295-33/+84
| | | | | | | | | | | | | | | | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@21182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_base.rb: add x86_64-linux's case again. #932yugui2008-12-291-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ext/dl/test_base.rb : add BSD's case.naruse2008-12-281-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/import.rb (DL::Importer#sizeof): followsyugui2008-12-281-1/+1
| | | | | | a feature change in 1.9. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/import.rb (DL::Importer#extern): adds filename andyugui2008-12-282-3/+15
| | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@21137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Sun Dec 28 17:10:13 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>takano322008-12-282-6/+3
| | | | | | | | | | * 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: http://svn.ruby-lang.org/repos/ruby/trunk@21110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_base.rb: use libc.dylib when the platform is darwin.takano322008-12-281-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_base.rb: use lib64 when the architecture is x86_64.takano322008-12-271-0/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/extconf.rb ($distcleanfiles): added callback-?.c intoyugui2008-10-031-7/+6
| | | | | | the distclean list. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/mkcallback.rb (rb_dl_init_callbacks): fix indent.akr2008-08-311-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/mkcallback.rb: split callback.h to callback-[0-9].c to reduceakr2008-08-303-28/+62
| | | | | | | | | memory consumption on compilation. [ruby-dev:31898] * ext/dl/depend: add dependency for callback-[0-9].[co]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/mkcallback.rb (foreach_proc_entry): extracted.akr2008-08-301-37/+45
| | | | | | | | | (gencallback): ditto. (gen_push_proc_ary): ditto. (gen_push_addr_ary): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_import.rb: fix character code.akr2008-08-302-9/+9
| | | | | | | | * ext/dl/test/test_func.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/mkcallback.rb: fix continuation line detection.akr2008-08-301-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18941 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/mkcallback.rb (rb_dl_init_callbacks): avoid GC problem whichakr2008-08-301-8/+13
| | | | | | | is caused by 'GC.stress=true; require "dl"'. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_to_ptr): fixed shadowing variable.nobu2008-08-121-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (rb_dlcfunc_call): add taint check.matz2008-08-113-8/+18
| | | | | | | | | | | | * ext/dl/dl.c (rb_dl_malloc): add rb_secure(2). * ext/dl/dl.c (rb_dl_realloc): ditto. * ext/dl/dl.c (rb_dl_free): ditto. * ext/dl/dl.c (rb_dl_ptr2value): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::Config.default_config_hash): requiresnobu2008-03-312-6/+11
| | | | | | | win32/resolv to use Win32::Resolv. [ruby-dev:34138] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/resolv.rb (Resolv::Hosts): should not use win32/resolv on cygwin.nobu2008-03-212-2/+2
| | | | | | | | | | | | [ruby-dev:29945], [ruby-dev:34095] * lib/win32/registry.rb (Win32::Registry.expand_environ): try upcased name too for cygwin. [ruby-dev:29945] * lib/win32/resolv.rb (Win32::Resolv.get_hosts_path): use expand_path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/depend: add dependencies. [ruby-dev:32760]usa2007-12-251-4/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dl/win32/lib/win32/sspi.rb: use pack/unpack("m") instead of base64usa2007-12-181-4/+3
| | | | | | | | library which was already removed. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/Win32API/*: removed or moved to ext/dl/win32.usa2007-12-035-0/+1559
| | | | | | | | * ext/dl/win32/*: new. [ruby-dev:32387] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h: introduce 2 macros:ko12007-11-131-2/+2
| | | | | | | | | | | | | | | RFLOAT_VALUE(v), DOUBLE2NUM(dbl). Rename RFloat#value -> RFloat#double_value. Do not touch RFloat#double_value directly. * bignum.c, insns.def, marshal.c, math.c, numeric.c, object.c, pack.c, parse.y, process.c, random.c, sprintf.c, string.c, time.c: apply above changes. * ext/dl/mkcallback.rb, ext/json/ext/generator/generator.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_to_ptr): no longer checkmatz2007-08-082-6/+1
| | | | | | HAVE_RB_IO_STDIO_FILE. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_to_ptr): fptr->f was renamed to fd. amatz2007-08-081-1/+1
| | | | | | report from Yusuf Celik <ycelik AT oytek.com.tr>. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (rb_dlcfunc_call): adjust format. [ruby-dev:31222]nobu2007-07-151-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ext/digest/digest.c (rb_digest_instance_update, rb_digest_instance_finish, rb_digest_instance_reset, rb_digest_instance_block_length): %s in rb_raise() expects char*. [ruby-dev:31222] * ext/openssl/ossl.h: include ossl_pkcs5.h. [ruby-dev:31231] * ext/openssl/ossl_pkcs5.h: new file for PKCS5. [ruby-dev:31231] * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise() instead of rb_raise(). [ruby-dev:31222] * ext/sdbm/_sdbm.c: DOSISH platforms need io.h. [ruby-dev:31232] * ext/syck/syck.h: include stdlib.h for malloc() and free(). [ruby-dev:31232] * ext/syck/syck.h (syck_parser_set_input_type): prototype added. [ruby-dev:31231] * win32/win32.c: include mbstring.h for _mbspbrk(). [ruby-dev:31232] * include/ruby/win32.h (rb_w32_getcwd): prototype added. [ruby-dev:31232] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby: moved public headers.nobu2007-06-103-8/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c, gc.c, io.c, ruby.h, rubyio.h, win32/win32.h (rb_io_t):nobu2007-02-241-1/+1
| | | | | | | | | | | renamed from OpenFile. * ext/dl/cptr.c, ext/io/wait/wait.c, ext/openssl/ossl.h, ext/openssl/ossl_bio.c, ext/openssl/ossl_ssl.c, ext/pty/pty.c, ext/readline/readline.c, ext/socket/socket.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Merge YARVko12006-12-311-12/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_warning, parser_warn): some error message maymatz2006-10-141-2/+2
| | | | | | | | | | | | | | | | contain format specifiers. a patch from Akinori MUSHA <knu at iDaemons.org>. [ruby-dev:29657] * regparse.c (onig_rb_warning, onig_rb_warn): ditto. * ext/bigdecimal/bigdecimal.c (VpException): ditto. * ext/dl/handle.c (rb_dlhandle_initialize): ditto. * ext/gdbm/gdbm.c (rb_gdbm_fatal): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.h (struct RArray): embed small arrays.matz2006-09-021-3/+3
| | | | | | | | | | (RARRAY_LEN): defined for accessing array members. (RARRAY_PTR): ditto. * array.c: use RARRAY_LEN and RARRAY_PTR. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (search_required): use RSTRING_PTR and RSTRING_STR.usa2006-08-311-1/+1
| | | | | | | | | | | * object.c (nil_plus): ditto. * ext/dl/cptr.c (rb_dlptr_s_to_ptr): ditto. * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* should define FUNC_CDECL/STDCALL if the macros are not defined.ttate2006-07-071-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* conformed to the usage of FUNC_CDECL/STDCALL described in [ruby-dev:28970].ttate2006-07-064-45/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c: ruby 1.9 HEAD 64 bit warnings clean up frommatz2006-07-032-0/+11
| | | | | | | | | | <ville.mattila at stonesoft.com>. [ruby-core:08120] * ChangeLog: remove some direct reference to mail addresses to prevent spams. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed the alignment problems discussed in [ruby-dev:28667].ttate2006-06-304-34/+50
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add extconf.h to .cvsignore.akr2006-06-241-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/.cvsignore: ignore callback.h.aamine2006-03-031-0/+1
| | | | | | | | * ext/ripper/.cvsignore: ignore eventids2table.c. * ext/socket/.cvsignore: ignore constants.h. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * mkconfig.rb: generate RbConfig instead of Config.akr2006-02-201-1/+1
| | | | | | | | | | | | | | | * instruby.rb, rubytest.rb, runruby.rb, bcc32/Makefile.sub, ext/extmk.rb, ext/dl/extconf.rb, ext/iconv/charset_alias.rb, lib/mkmf.rb, lib/rdoc/ri/ri_paths.rb, lib/webrick/httpservlet/cgihandler.rb, test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/ruby/envutil.rb, test/soap/calc/test_calc_cgi.rb, test/soap/header/test_authheader_cgi.rb, test/soap/ssl/test_ssl.rb, win32/mkexports.rb, win32/resource.rb: Use RbConfig instead of Config. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* should compare SIZEOF_VOIDP with SIZEOF_LONG_LONG.ttate2005-11-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sorry, commit miss.usa2005-10-181-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/depend, ext/dl/extconf.rb, ext/socket/depend,usa2005-10-182-2/+2
| | | | | | | | | | ext/socket/extconf.rb: shouldn't define DESTCLEANFILES in depend, use $distcleanfiles in extconf.rb. * win32/Makefile.sub (distclean-local): should remove .config.h.time. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cptr.c (rb_dlptr_s_to_ptr): abolish sizeof(FILE).akr2005-09-291-1/+1
| | | | | | | [ruby-dev:27317] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* banish some warnings.akr2005-09-241-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9292 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* if dlload fail to load a library, it should raise an error.ttate2005-06-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added DL::BUILD_RUBY_PLATFORM,BUILD_RUBY_VERSION.ttate2005-05-142-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added a test.ttate2005-05-091-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* replaced the local variable 'entity' with an instance variable.ttate2005-05-091-7/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use DL::CStructBuilder instead of CStructBuilder.ttate2005-05-081-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e