summaryrefslogtreecommitdiffstats
path: root/ext/dl/lib
Commit message (Collapse)AuthorAgeFilesLines
* * ext/dl/lib/dl/cparser.rb (DL::CParser#parse_struct_signature):nobu2009-05-231-1/+1
| | | | | | | | splitting with regexp source string is obsolete. a patch from Minwoo Lee at [ruby-core:23494]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/callback.rb (DL#remove_callback_internal): ignorenobu2009-05-161-1/+1
| | | | | | | unbound function. [ruby-dev:38474] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/func.rb (DL::Function#bound?): returns if alreadynobu2009-05-102-0/+6
| | | | | | | | | | 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: http://svn.ruby-lang.org/repos/ruby/trunk@23386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/cparser.rb (DL::CParser#parse_signature): stripsnobu2009-05-101-1/+1
| | | | | | | spaces. based on a patch from Takashi Tamura in [ruby-dev:38398]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-062-5/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/win32/lib/win32/resolv.rb: get rid of warning.usa2009-03-031-0/+2
| | | | | | | | * ext/dl/lib/dl/func.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/func.rb (DL::Function.name): delegate to @cfunc.usa2009-03-031-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/cparser.rb (DL::CParser::parse_signature): fixednobu2009-03-031-1/+1
| | | | | | | variable name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/pack.rb (DL::PackInfo): reduced redundantnobu2009-03-032-88/+13
| | | | | | | | | initialization. * ext/dl/lib/dl/stack.rb (DL::Stack): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.nobu2009-03-031-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/test/test_base.rb: add libc search logic.ko12008-12-291-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | 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/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
* * Merge YARVko12006-12-311-12/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed the alignment problems discussed in [ruby-dev:28667].ttate2006-06-301-6/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10440 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
* 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
* 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
* CUnionEntity should inherit CStructEntity.ttate2005-04-101-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* minor bugfix.ttate2005-03-081-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use define_method instead of module_eval.ttate2005-02-071-12/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Improved DL::Handle#sym.ttate2005-02-074-5/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added DL::Importer.sizeof().ttate2005-02-061-0/+32
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added missing files.ttate2005-02-046-0/+733
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added new files.ttate2005-02-043-0/+425
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove all files to replace ruby-dl with ruby-dl2.ttate2005-02-044-643/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bugfix.ttate2005-02-031-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* devided DL::Types#encode_type into three methods.ttate2004-12-143-48/+56
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bugfix for [ruby-talk:121309].ttate2004-11-253-13/+21
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use 'P' instead of 'p' in types.rb.ttate2004-11-251-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* improved encode_type() in types.rb for [ruby-talk:121175].ttate2004-11-243-67/+128
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* should use 'c' for 'unsigned char ref'.ttate2004-09-211-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* added 'const char *' to use the type specifier 'S' instead of 'char *'.ttate2004-09-161-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bugfix for Importable.callback().ttate2004-07-201-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merged Nakada-san's patch [ruby-core:02916].ttate2004-05-231-6/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Bugfix for DL::Types::encode_type.ttate2003-11-081-7/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* consistent parentheses in assignment RHS.matz2003-10-161-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * typo fix.eban2003-01-201-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/win32.rb: elimitate unnecessary "A" adding.eban2003-01-121-6/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/lib/dl/win32.rb: compatibility improvement.eban2003-01-111-14/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix the conversion method.ttate2002-12-092-11/+26
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Bugfix for Importable::callback.ttate2002-10-311-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add Importable::symbol.ttate2002-06-271-39/+55
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bugfix.ttate2002-06-101-0/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add DL::Importable::Internal::callback().ttate2002-06-101-9/+47
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rename PtrData::alloc and Struct#alloc to malloc respectively.ttate2002-05-201-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add DL::Importable::Internal::Struct#alloc.ttate2002-04-111-4/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* remove README and README.htmlttate2002-04-111-0/+12
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Support "unsigned short".ttate2002-04-111-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e