aboutsummaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * ext/socket/socket.c (bsock_do_not_reverse_lookup): control reversenobu2004-02-061-8/+44
| | | | | | | lookup for every instance. [ruby-core:02346] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Bug in BigDecimal("1e#{n}").add BigDecimal('.5'),n) reported and fixed by ↵shigek2004-02-011-3/+2
| | | | | | Javier Goizueta. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c: usec round-tripping skew. [ruby-core:2305]why2004-01-281-16/+21
| | | | | | | | | * lib/yaml/rubytypes.rb: character Range now round-trips. [ruby-core:2306] * test/yaml/test_yaml.rb: add Time and Range tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/extconf.rb: include iconv.h for libiconv. [ruby-dev:22715]nobu2004-01-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: better support for general delimitedmatz2004-01-272-2/+6
| | | | | | | | | | | | | | | | strings. [ruby-dev:22695] * lib/weakref.rb (WeakRef::initialize): set up @__id before calling "super". * lib/delegate.rb (Delegator::initialize): preserve singleton_method_added method [ruby-dev:22685] * lib/delegate.rb (Delegator::initialize): use Kernel::raise instead of mere raise. [ruby-dev:22681] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (s_recvfrom): sending length should be annobu2004-01-271-3/+4
| | | | | | | invariant while retrying on EAGAIN. [ruby-talk:89962] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c (set_argv): fix condition.usa2004-01-271-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tcltklib/tcltklib.c: define CONST84 when TCL_MAJOR_VERSION == 7nagai2004-01-261-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: Makefiles should depend on also rbconfig.rb.nobu2004-01-263-15/+21
| | | | | | | | | | (ruby-bugs:PR#1256) * ext/win32ole/win32ole.c (set_argv): set real arguments to WIN32OLE::ARGV. [ruby-list:39073] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_x509name.c (ossl_x509name_add_entry): thirdgotoyuzo2004-01-251-14/+20
| | | | | | | | | | | | argument become optional. * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto. * ext/openssl/ossl_x509name.c (Init_x509name): emailAddress and domainComponent should be IA5String. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_x509hame.c (ossl_x509name_initialize): changegotoyuzo2004-01-242-44/+85
| | | | | | | | | | | | | | | | second argument. it expected to be a Hash not an Integer. * ext/openssl/ossl_x509name.c (ossl_x509name_add_entry): add new function for OpenSSL::X509::Name#add_entry. * ext/openssl/ossl_x509name.c (Init_ossl_x509name): add constants OpenSSL::X509::Name::DEFAULT_OBJECT_TYPE and OBJECT_TYPE_TEMPLATE. * ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name#initialize): second argument takes OBJECT_TYPE_TEMPLATE by default. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (newline_node): do not use NODE_NEWLINE node anymore,matz2004-01-211-18/+25
| | | | | | | | | | | | | | | | use NEWLINE flag instead. * ext/socket/socket.c (sock_gethostbyname): returns host if ai_canonname is NULL. (ruby-bugs PR#1243) * parse.y (block_append): update nd_end for "real" head node. [ruby-list:39058] * marshal.c (w_class): should not dump singleton class. [ruby-dev:22631] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/md5/extconf.rb: have_library appends found library.nobu2004-01-211-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/rmd160/extconf.rb: have_library appends found library.nobu2004-01-211-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: should check <openssl/conf_api.h> insteadgotoyuzo2004-01-201-9/+1
| | | | | | | of OPENSSL_VERSION_NUMBER. [ruby-list:39056] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/extconf.rb: add check for OpenSSL version.gotoyuzo2004-01-191-0/+11
| | | | | | | [ruby-list:39054] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/digest/defs.h, win32/win3.c, win32/win32.h, file.c: removenobu2004-01-191-6/+2
| | | | | | | useless casts for Borland C. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb, win32/Makefile.sub, win32/configure.bat,usa2004-01-191-2/+4
| | | | | | | win32/setup.mak: --with-static-linked-ext support on mswin32. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/charset_alias.rb: prefer us_EN locale encodings ornobu2004-01-182-8/+41
| | | | | | | | | | former. [ruby-dev:22609] * ext/iconv/iconv.c (iconv_create): raise InvalidEncoding exception when EINVAL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/extconf.rb: wrapper iconv.rb is dependent on platform.nobu2004-01-141-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c: omission of Date library code causedwhy2004-01-131-0/+8
| | | | | | | test suite failure. [ruby-core:2251] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: use $0 as the default application class name.nagai2004-01-131-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/bytecode.c: turn off default implicit typing.why2004-01-123-617/+698
| | | | | | | | | | | | * ext/syck/implicit.c: detect base60 integers. * ext/syck/rubyext.c: handle base60, as well as hex and octal with commas. implicit typing of ruby symbols. * test/yaml/test_yaml.rb: add test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (make_hostent): a bug in brace position.matz2004-01-101-1/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: install rdoc by default. if you do not want tomatz2004-01-101-12/+17
| | | | | | | | | | | | | | | | | | | | install rdoc, specify --disable-install-doc. * eval.c (eval): need to add message delimiter. [ruby-dev:22561] * defines.h (__NeXT__): Ensure that all standard S_IRUSR, S_IWGRP, S_IRWXO, etc. macros are defined since future code might require them (even though present code only requires a subset). * defines.h (__NeXT__): Bug fix: WORDS_BIGENDIAN was not being set correctly on Rhapsody when -arch compiler flag was used (via configure's --enable-fat-binary option). * ext/socket/socket.c (make_hostent): getaddrinfo(3) on BSD do not fill ai_canonname if serv is not supplied. (ruby-bugs PR#1243) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb (extmake): should not reduce necessary libraries.nobu2004-01-091-1/+1
| | | | | | | | | | [ruby-dev:22440] * lib/mkmf.rb (merge_libs): merge libraries according to dependency. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_pkey.c (ossl_pkey_to_der): removed; it returnsgotoyuzo2004-01-084-22/+75
| | | | | | | | | | | | | | | | public key only. * ext/openssl/ossl_pkey_dh.c (ossl_dh_to_der): new function for OpenSSL::PKey::DH#to_der. * ext/openssl/ossl_pkey_dsa.c (ossl_dsa_to_der): new function for OpenSSL::PKey::DSA#to_der. * ext/openssl/ossl_pkey_rsa.c (ossl_rsa_to_der): new function for OpenSSL::PKey::RSA#to_der. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/rubyext.c (yaml_org_handler): lazy-load Date fornobu2004-01-071-176/+179
| | | | | | | static-ext. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/extmk.rb: preserve order in Setup. [ruby-dev:22503]nobu2004-01-075-7/+23
| | | | | | | | | | * ext/extmk.rb: move dependent libraries just after depended libraries. * ext/digest/*/extconf.rb: depend on digest. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: use epath for embedded windows of TkPanedWindow.nagai2004-01-073-14/+78
| | | | | | | | * ext/tk/lib/tktext.rb: use epath for embedded windows. * ext/tk/lib/tkcanvas.rb: use epath for window items. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.matz2004-01-023-14/+15
| | | | | | | | | | | | [ruby-dev:22476] * io.c (argf_eof): ARGF.eof? should not have any side effect. [ruby-dev:22469] * io.c (argf_each_byte): should return self. [ruby-dev:22465] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb: fix install directory if destdir and compile_dir areusa2003-12-281-1/+1
| | | | | | | | | | | | | not in the same drive. * ext/extmk.rb: ditto. * win32/Makefile.sub, win32/README.win32, win32/configure.bat, win32/setup.mak: new configure scheme. use ``configure --prefix=dir'' instead of ``nmake DESTDIR=dir install''. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_sysread): StringIO.new.sysread didn'takr2003-12-282-2/+2
| | | | | | | raise EOFError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_update): call rb_str_modify().matz2003-12-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * stable version 1.8.1 released.matz2003-12-241-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/sample/tkmulticolumnlist.rb: new samplenagai2003-12-243-8/+755
| | | | | | | * ext/tk/sample/tkmultilistframe.rb: bug fix git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_ssl_read): should check for errorgotoyuzo2003-12-241-12/+31
| | | | | | | | | status by SSL_get_error(). * ext/openssl/ossl_ssl.c (ossl_ssl_write): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_read): clear the buffer argumentnobu2003-12-241-0/+2
| | | | | | | | | | when returning nil. [ruby-dev:22363] * test/ruby/ut_eof.rb (TestEOF::test_eof_0, TestEOF::test_eof_1): add buffer argument tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/stringio/stringio.c (strio_read): never return nil atnobu2003-12-241-4/+22
| | | | | | | | | | unlimited read. [ruby-dev:22334] * ext/stringio/stringio.c (strio_read): support second argument. [ruby-dev:22350] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (map_charset): always ensure code is a String.nobu2003-12-221-5/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/emitter.c (syck_emitter_write): str bigger thanmatz2003-12-212-3/+12
| | | | | | | e->bufsize causes buffer overflow. [ruby-dev:22307] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_with_disable_interrupt): prohibit thread contextmatz2003-12-201-4/+4
| | | | | | | switch during proc execution. [ruby-dev:21899] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/lib/tk.rb: add new methods (TkScrollbar#assign, assign_list)nagai2003-12-202-0/+78
| | | | | | | * ext/tk/sample/tkmultilistframe.rb: use TkScrollbar#assign method git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/sample/tkmultilistbox.rb: bug fixnagai2003-12-193-1/+917
| | | | | | | * ext/tk/sample/tkmultilistframe.rb: new sample script git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bug fixnagai2003-12-171-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::QueryExtension::Value::[]): should work likematz2003-12-171-1/+1
| | | | | | | | | | | | | | | | | | | | String#[] if more than one arguments are specified. * lib/delegate.rb: avoid using common instance name as "@obj". * lib/cgi.rb (CGI::QueryExtension::Value): Value is no longer subclass of String, but DelegateClass(String). * ext/curses/extconf.rb: restore function check for init_color. [ruby-list:38905] * Makefile.in: need to specify $(MAINLIBS) for the miniruby generation rule. * configure.in: better FreeBSD -lc_r support. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* introduce some new methodsaamine2003-12-161-34/+72
| | | | | | | | | | | * ext/strscan/strscan.c: new method StringScanner#beginning_of_line? (alias #bol?) * ext/strscan/strscan.c: new method StringScanner#concat and #<<. * ext/strscan/strscan.c: StringScanner#new(str) does not duplicate nor freeze STR (allow destructive modification). * test/strscan/test_stringscanner.rb: test new methods above. * test/strscan/test_stringscanner.rb: test destructive string modification. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * condition bug of if statement on {pack,grid}_propagate methodsnagai2003-12-161-6/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_pkcs12.c (ossl_pkcs12_initialize): first argumentusa2003-12-151-3/+5
| | | | | | | of rb_protect should take an argument of VALUE. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/socket.c (Init_socket): IPv6 is not supported althougheban2003-12-141-2/+2
| | | | | | | | | | AF_INET6 is defined on MinGW. * lib/ipaddr.rb (AF_INET6): workaround in the environment which does not support IPv6. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e