aboutsummaryrefslogtreecommitdiffstats
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
* * ext/psych/lib/psych/emitter.rb: removing unused file.tenderlove2010-05-166-127/+118
| | | | | | | | | | | | * ext/psych/lib/psych/json/tree_builder.rb: moving tree builder to an event based external class. * ext/psych/lib/psych/tree_builder.rb: adding an end_stream event. * ext/psych/lib/psych/visitors/json_tree.rb: using event based AST builder. * ext/psych/lib/psych/visitors/yaml_tree.rb: using event based AST builder. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/json_tree.rb: using factory methods fortenderlove2010-05-162-10/+20
| | | | | | | node creation * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (rb_iconv_sys_fail): fix number of arguments.nobu2010-05-161-1/+1
| | | | | | | a patch by Masaya TARUI <tarui AT prx.jp>. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (rb_iconv_sys_fail): raise BrokenLibrary ifnobu2010-05-151-0/+12
| | | | | | | errno is not set. [ruby-dev:41317] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/console/console.c (get_write_fd): return primary fd if nonobu2010-05-131-1/+1
| | | | | | io is tied for writing. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/console/console.c (console_set_echo, console_echo_p): usenobu2010-05-131-2/+2
| | | | | | primary fd. [ruby-dev:41309] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/_sdbm.c: include unistd.h before sdbm.h for off_t.akr2010-05-121-4/+5
| | | | | | | fix compilation problem on FreeBSD 6.4. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/lib/bigdecimal/math.rb (BigMath#log): improvednobu2010-05-121-2/+4
| | | | | | | precision and performance. [ruby-dev:41295] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: test all IPPROTO_* constants for recent Win32usa2010-05-121-7/+6
| | | | | | | SDK. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: test IPPROTO_IP and IPPROTO_IPV6 constants.akr2010-05-112-4/+15
| | | | | | | | | | * ext/socket/mkconstants.rb: define macros for enum. [ruby-dev:38849] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/lib/bigdecimal/math.rb (atan), ↵mrkn2010-05-111-1/+1
| | | | | | test/bigdecimal/test_bigmath.rb (test_atan): explicitly specify the precision for calculating a reciprocal number of an argument. [Bug #3267] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/sdbm/sdbm.h (DBM): large file support on win32.nobu2010-05-113-5/+7
| | | | | | | | | [ruby-core:23039] * ext/sdbm/depend: objects depend on sdbm.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c (PSYCH_TRANSCODE): get rid of bare use of gccnobu2010-05-111-14/+12
| | | | | | extension. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c: fixed broken indent.nobu2010-05-111-153/+154
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/parser.c (parse): Return strings encoded astenderlove2010-05-101-10/+20
| | | | | | | Encoding.default_internal if set. * test/psych/test_encoding.rb: Tests for encoding change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update doc.akr2010-05-091-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/console/console.c (console_set_raw): new method.nobu2010-05-091-0/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/console/console.c (ttymode): reverted previous commit.nobu2010-05-091-30/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/generator/generator.c (fbuffer_inc_capa):naruse2010-05-091-1/+1
| | | | | | fix tha use of REALLOC_N. [ruby-dev:41227] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* revert previous doc. change.akr2010-05-091-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/{generator/generator.c,parser/parser.rl}: fixed indent.nobu2010-05-095-114/+116
| | | | | | | * ext/json/{generator,parser}/depend: added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fiddle/lib/fiddle.rb: only require DL if it hasn't been requiredtenderlove2010-05-081-1/+1
| | | | | | yet. [ruby-core:30095] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/console/console.c (ttymode): save dupped file descriptorsnobu2010-05-082-3/+31
| | | | | | | and restore tty modes using them, so that original modes can be restored even if orignal fds are closed. [ruby-dev:41225] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* update doc.akr2010-05-081-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/io/console: imported. [ruby-dev:40897]nobu2010-05-082-0/+551
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/etc/etc.c (etc_systmpdir): moved from ext/tmpdir.nobu2010-05-084-39/+50
| | | | | | | | | * ext/etc/etc.c (etc_sysconfdir): added. * lib/rubygems/config_file.rb, lib/tmpdir.rb: use etc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/etc/etc.c: suppressed warnings.nobu2010-05-081-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpAlloc): ensure buf does not getnobu2010-05-081-2/+3
| | | | | | | collected. based on a patch masaya tarui at [ruby-dev:41213]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/lib/socket.rb (BasicSocket#connect_address): MacOS X 10.6akr2010-05-081-0/+2
| | | | | | | | returns "::ffff:a.b.c.d" for IPv4-mapped IPv6 address. [ruby-dev:41215] patch by Tomoyuki Chikanaga. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/extconf.rb (get_tclConfig_dirs): glob with EXEEXT.nobu2010-05-071-5/+8
| | | | | | | * ext/tk/extconf.rb (search_tclConfig): fixed typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/extconf.rb: search directories on PATH, only if containingnagai2010-05-061-78/+86
| | | | | | | tclsh or wish command (probably right fix for [ruby-core:30010]). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (VpCtoV): fix to check overflow.naruse2010-05-061-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_ec.rb: added test_dsa_sign_asn1_FIPS186_3. dgst isnobu2010-05-061-1/+1
| | | | | | | | | | | | | | | | truncated with ec_key.group.order.size after openssl 0.9.8m for FIPS 186-3 compliance. WARNING: ruby-openssl aims to wrap an OpenSSL so when you're using openssl 0.9.8l or earlier version, EC.dsa_sign_asn1 raises OpenSSL::PKey::ECError as before and EC.dsa_verify_asn1 just returns false when you pass dgst longer than expected (no truncation performed). * ext/openssl/ossl_pkey_ec.c: rdoc typo fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fiddle/function.c (function_call): removed unused variable.nobu2010-05-061-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27644 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/fiddle/*: Adding fiddle library to wrap libffitenderlove2010-05-0617-71/+871
| | | | | | | | | * test/fiddle/*: testing fiddle extension * ext/dl/lib/dl.rb: Requiring fiddle if it is available * ext/dl/lib/dl/callback.rb: using Fiddle if it is available * ext/dl/lib/dl/func.rb: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/extconf.rb: revert. enbugged by last commit.nagai2010-05-052-300/+60
| | | | | | | | ([ruby-dev:41133], [ruby-dev:41134], [ruby-core:30010]) * ext/tk/README.tcltklib: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (sockopt_inspect): use rb_str_cat2 andakr2010-05-042-4/+3
| | | | | | | | | | rb_str_append. * ext/socket/ancdata.c (ancillary_inspect): refined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_inspect): use rb_str_cat2 andakr2010-05-041-1/+2
| | | | | | | rb_str_append. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c: Update nkf 2010-04-28.naruse2010-05-031-6/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/yaml_tree.rb: using more factory methodstenderlove2010-05-031-22/+22
| | | | | | for generating the YAML ast. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/syck/emitter.c (syck_scan_scalar): set SCAN_WHITEEDGE flagnobu2010-05-021-1/+1
| | | | | | | | | when scalar begins with newline. patches from Dave B <daz AT d10.karoo.co.uk> at [ruby-core:23019] and caleb clausen at [ruby-core:25851]. [ruby-core:23006][ruby-core:29925] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (rb_dlcfunc_call): ignore signedness.nobu2010-05-021-2/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_IsInfinite): don't usenobu2010-05-011-1/+1
| | | | | | | non-ascii character. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/extconf.rb: better support for MinGW environment.nagai2010-04-302-60/+300
| | | | | | | * ext/tk/README.tcltklib: add info of --with-tcltk-drive for Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json: Update to JSON 1.4.2.naruse2010-04-282-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/extconf.rb: CMSG_ macros are broken on 64bit darwin,nobu2010-04-281-1/+2
| | | | | | because of use of __DARWIN_ALIGN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket: fixed types.nobu2010-04-2811-84/+86
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/unixsocket.c (sendmsg_blocking, recvmsg_blocking):nobu2010-04-281-2/+2
| | | | | | | define only when used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/rubysocket.h: non-implemented method definitions neednobu2010-04-282-8/+6
| | | | | | to be shared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal: fixed types.nobu2010-04-282-54/+53
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e