summaryrefslogtreecommitdiffstats
path: root/ext/dl
Commit message (Collapse)AuthorAgeFilesLines
* * ext/dl/sym.c (rb_dlsym_call): needs FREE_ARGS before return.ocean2005-06-151-0/+1
| | | | | | | fixed memory leak. [ruby-Bugs-2034] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Data object is automatically converted to a PtrData object using to_ptr().ttate2005-06-081-1/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* accept space characters at the end of a prototype.ttate2005-04-081-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bugfix for typealias() in import.rb.ttate2005-03-071-2/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * exception error messages updated. [ruby-core:04497]matz2005-02-281-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@8035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* bugfix.ttate2005-02-031-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/sym.c (rb_dlsym_initialize): extract internal pointers afternobu2004-12-211-1/+2
| | | | | | | all argument conversion. fixed: [ruby-dev:25271] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* devided the method DL::Types#encode_type into three methods.ttate2004-12-143-48/+56
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7554 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/branches/ruby_1_8@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/branches/ruby_1_8@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/branches/ruby_1_8@7364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * MANIFEST, ext/**/MANIFEST: removed.eban2004-11-011-31/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use NUM2INT to convert short values.ttate2004-10-231-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merged from HEAD.ttate2004-09-272-11/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (ieeefp.h), numeric.c: needed for finite() onnobu2003-12-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Solaris. [ruby-core:01921] * file.c (rb_stat_inspect): adjust format specifier. * parse.c (arg_prepend): nodetype() is for debug use. * ruby.h (ISASCII, etc): cast to int to get rid of warning. * ruby.h (alloca.h): include even in GCC. [ruby-core:01925] * ext/bigdecimal/bigdecimal.c (GetVpValue): adjust format specifier. * ext/bigdecimal/bigdecimal.c (BigDecimal_prec, BigDecimal_coerce, BigDecimal_divmod): use rb_assoc_new() to suppress memory usage. * ext/bigdecimal/bigdecimal.c (BigDecimal_split): ditto. * ext/dl/sym.c (rb_dlsym_guardcall): guard itself should be volatile. * ext/iconv/iconv.c (iconv_convert): ensure actual parameter with format specifier. * ext/pty/pty.c (MasterDevice, SlaveDevice, deviceNo): do not define unless used. * ext/pty/pty.c (getDevice): get rid of warning. * ext/socket/socket.c (port_str, sock_s_getaddrinfo, sock_s_getnameinfo): FIX2INT() now returns long. * ext/socket/socket.c (init_inetsock_internal): uninitialized variable. * ext/syck/rubyext.c (syck_parser_assign_io): add prototype. * ext/syck/rubyext.c (rb_syck_mktime, yaml_org_handler): use ISDIGIT() instead of isdigit() to avoid warnings and for platforms which don't support non-ascii charater. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/sym.c (rb_dlsym_guardcall): __declspec(noinline) is VC7usa2003-12-041-4/+4
| | | | | | | feature. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merged Tietew's patch of [ruby-dev:21991].ttate2003-12-012-0/+92
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merge the patch of [ruby-ext:02242]. (Thanks, Masahiro Sakai)ttate2003-11-131-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4953 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
* * ext/dl/sym.c: typo fix(lasterror -> last_error).eban2003-11-081-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add DL.win32_last_error and DL.last_error.ttate2003-11-082-2/+69
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_cleanup): initialize stack bottom for embedding.nobu2003-10-232-3/+3
| | | | | | | | | | [ruby-dev:21686] * ext/dl/extconf.rb: move list of files to clean from DEPEND file, to get rid of macro redefinitions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* --enable-dlstack is true in default.ttate2003-10-221-6/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Bugfix for PR#1196ttate2003-10-221-8/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* consistent parentheses in assignment RHS.matz2003-10-162-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/dl.c (rb_dl_callback): use rb_block_proc() instead ofusa2003-06-161-1/+1
| | | | | | | | | rb_block_new(). * ext/win32ole/win32ole.c (ev_on_event): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (define_final): eliminate rb_f_lambda() call.matz2003-06-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * class.c (rb_scan_args): ditto. * signal.c (sig_trap): ditto. * hash.c (rb_hash_initialize): ditto. * variable.c (rb_f_trace_var): ditto. * ext/dl/dl.c (rb_dl_callback): ditto. * ext/win32ole/win32ole.c (ev_on_event): ditto. * eval.c (ruby_cleanup): $SAFE is turned off in the finalization. Each END proc should preserve its own $SAFE level. [ruby-core:01119] * marshal.c (marshal_load): remove unused variable "hash". [ruby-core:01120] * hash.c (env_str_new): freeze strings from ENV. [ruby-talk:72860] * array.c (rb_ary_first): optional argument to retrieve first n elements. * array.c (rb_ary_last): optional argument to retrieve last n elements. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (avalue_to_svalue): use rb_check_array_type() again.matz2003-03-292-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | Clarify how "to_ary" and "to_a" work. [ruby-talk:68155] * eval.c (svalue_to_avalue): ditto. * eval.c (svalue_to_mrhs): ditto. * eval.c (rb_eval): unary splat to use to_a, but we need a hack to exclude Object#to_a until it's removed. * object.c (rb_Array): check obj.respond_to?("to_a"). Currently all object respond_to "to_a", but Object#to_a will be removed. * range.c (Init_Range): undefine to_ary. * re.c (Init_Regexp): ditto. * regex.c (re_compile_pattern): do not warn if "-" is at the top or last of character class. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* security enhancement of dl library (need test).matz2003-03-244-148/+150
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Added rb_secure(4). (Thanks to Minero Aoki)ttate2003-03-243-1/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/MANIFEST: Exclude .cvsignore. [found by: eban]knu2003-03-031-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3549 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
* -Wall cleanups (removed unused vars, no 'code has no effect' warnings)michal2003-01-164-15/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3346 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
* Check the return value of dlopen().ttate2003-01-121-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Correct the description about type specifiers.ttate2003-01-111-18/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3331 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
* * intern.h (rb_check_array_type): Declare rb_check_array_type().knu2003-01-061-0/+1
| | | | | | | | | | * ext/digest/md5/md5ossl.c: Include stdio.h for sprintf() and string.h for memcmp(). * ext/dl/ptr.c: Include ctype.h for isdigit(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/curses/curses.c, ext/digest/digest.c, ext/dl/handle.c,nobu2002-12-203-3/+3
| | | | | | | | | | ext/dl/ptr.c, ext/dl/sym.c, ext/gdbm/gdbm.c, ext/iconv/iconv.c, ext/stringio/stringio.c, ext/strscan/strscan.c, ext/tcltklib/tcltklib.c, ext/win32ole/win32ole.c: use rb_define_alloc_func(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fix the conversion method.ttate2002-12-093-11/+34
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* dlsizeof() should handle 'S' and 's'.ttate2002-11-261-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Get rid of ineffective symbols, lines, constants and so on.ttate2002-11-077-157/+143
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fixed rb_ary2cary() to convert nil.ttate2002-11-051-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3026 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
* * configure.in (XCFLAGS): CFLAGS to comile ruby itself.nobu2002-10-211-24/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * configure.in (LIBEXT): suffix for static libraries. * configure.in (LIBPATHFLAG): switch template to specify library path. * configure.in (LINK_SO): command to link shared objects. * configure.in (DEFFILE, ARCHFILE): miscellaneous system dependent files. * configure.in (EXPORT_PREFIX): prefix to exported symbols on Windows. * configure.in (COMMON_LIBS, COMMON_MACROS, COMMON_HEADERS): libraries, macros and headers used in common. * configure.in (RUBYW_INSTALL_NAME, rubyw_install_name): GUI mode excutable name. * Makefile.in (CFLAGS): append XCFLAGS. * Makefile.in (PREP): miscellaneous system dependent files. * Makefile.in (ruby.imp, ext/extinit.o): moved from ext/extmk.rb. * Makefile.in (fake.rb): CROSS_COMPILING keeps building platform. * Makefile.in (MAKEFILES): depend on *.in and config.status. * Makefile.in (parse.c): replace "y.tab.c" with actual name for byacc. * ext/extmk.rb, lib/mkmf.rb: integrated. * ext/extmk.rb: propagate MFLAGS. * ext/extmk.rb (extmake): make dummy Makefile to clean even if no Makefile is made. * lib/mkmf.rb (older): accept multiple file names and Time objects. * lib/mkmf.rb (xsystem): split and qoute. * lib/mkmf.rb (cpp_include): make include directives. * lib/mkmf.rb (try_func): try wheather specified function is available. * lib/mkmf.rb (install_files): default to site-install. * lib/mkmf.rb (checking_for): added. * lib/mkmf.rb (find_executable0): just find executable file with no message. * lib/mkmf.rb (create_header): output header file is variable. * lib/mkmf.rb (create_makefile): separate sections. * lib/mkmf.rb (init_mkmf): initialize global variables. * win32/Makefile.sub, bcc32/Makefile.sub (CPP, AR): added. * bcc32/Makefile.sub (ARCH): fixed to i386. * win32/Makefile.sub, bcc32/Makefile.sub (miniruby): should not link EXTOBJS. * ext/dl/extconf.rb: use try_cpp to cross compile. * ext/dl/extconf.rb: not modify files in source directory. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Fixed error messages and descriptions.ttate2002-10-072-5/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2940 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Improve the description.ttate2002-10-021-6/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: modify program_prefix only if specifiedeban2002-09-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | --program-prefix. * configure.in: don't generate ext/extmk.rb. * Makefile.in: execute directly $(srcdir)/ext/extmk.rb. remove -Cext option, "Dir::chdir 'ext'" in ext/extmk.rb. * {win32,bccwin32}/Makefile.sub: ditto. * instruby.rb: ditto. * ext/extmk.rb: renamed from ext/extmk.rb.in. * lib/mkmf.rb (module Logging): create log files (mkmf.log) in each extension module directories. * ext/extmk.rb: ditto. * lib/mkmf.rb (macro_defined?): new method. * ext/.cvsignore: remove extmk.rb. * ext/*/.cvsignore: add "*.def". git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Merged Nakada's patch [ruby-dev:18097].ttate2002-08-291-5/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Multiple call of the initialize.ttate2002-08-053-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@2687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e