aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * ext/pathname/pathname.c (path_readlines): Pathname#readlinesakr2010-08-263-3/+26
| | | | | | | translated from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rb_random_int32): suppress warning on LP64 platforms.nobu2010-08-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regint.h (OnigStackIndex): the type should be intptr_t.naruse2010-08-262-1/+8
| | | | | | | | Original Oniguruma assumes the size of long and that of void * are equal, but it's not true on LLP64 platform: mswin64. originally patched by shintaro kuwamoto [ruby-dev:42133] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Creating dummy library for dl/fiddle tests on AIX.kanemoto2010-08-263-0/+62
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_shuffle_bang): check number of argument.nobu2010-08-263-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (Init_bigdecimal, ↵mrkn2010-08-264-37/+180
| | | | | | | | | | | | rmpd_set_thread_local_exception_mode, VpGetException, VpSetException): thread-local exception mode. * ext/bigdecimal/bigdecimal.c (Init_bigdecimal, rmpd_set_thread_local_precision_limit, VpGetPrecLimit, VpSetPrecLimit): thread-local precision limit. * ext/bigdecimal/bigdecimal.c (Init_bigdecimal, rmpd_set_thread_local_rounding_mode, VpGetRoundMode, VpSetRoundMode, VpException, VpInternalRound): thread-local rounding mode. * ext/bigdecimal/bigdecimal.c (BigDecimal_mode, BigDecimal_round, VpIsRoundMode, VpGetRoundMode, VpSetRoundMode, VpActiveRound, VpMidRound, VpLeftRound), ext/bigdecimal/bigdecimal.h: use unsigned short for rounding mode. * test/bigdecimal/test_bigdecimal.rb (test_mode): add test for setting rounding mode. * test/bigdecimal/test_bigdecimal.rb (test_thread_local_mode): add test for setting mode thread-locally. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_{shuffle_bang,sample}): use Random class object.nobu2010-08-255-10/+50
| | | | | | | | | * random.c (try_get_rnd): use default_rand for Random as same as singleton methods. * random.c (rb_random_real): check the range of result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pathname/pathname.c (path_binread): Pathname#binread translatedakr2010-08-253-4/+25
| | | | | | | from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reverted to r29091; r29092 breaks test-allshyouhei2010-08-254-52/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rb_random_int32): fixed typo.nobu2010-08-251-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * random.c (rb_random_real): check the range of result.nobu2010-08-253-3/+28
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_{shuffle_bang,sample}): use Random class object.nobu2010-08-253-7/+20
| | | | | | | * random.c (try_get_rnd): use default_rand for Random as same as singleton methods. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_sample): use frozen shared array to get rid ofnobu2010-08-252-1/+6
| | | | | | reallocation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29092 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/cfunc.c (rb_dlcfunc_call): workaround for VC9 for x64.usa2010-08-242-0/+11
| | | | | | | reported by kuwamoto shintaro in [ruby-dev:42125]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-08-25svn2010-08-241-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/tk/tcltklib.c: add codes for Ruby/Tk-Kit which depends on recentnagai2010-08-242-126/+366
| | | | | | | | | | | versions of kitgen for Tclkit (ready to use Mk4tcl or Vqtcl). And support working on a file tree extracted from a VFS dataset on Ruby/Tk-Kit. It's still experimental, because ext/tk/extconf.rb can't make a Makefile for Ruby/Tk-Kit. * ext/tk/lib/tk.rb: add comment about TclTkLib::WINDOWING_SYSTEM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gitignore: updated.mame2010-08-242-0/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pathname/pathname.c (path_read): Pathname#read translated fromakr2010-08-243-3/+26
| | | | | | | pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: read API version from include/ruby/version.h.nobu2010-08-245-9/+17
| | | | | | | | | | * {bcc,win}32/setup.mak (-version-): ditto. * version.h (RUBY_LIB_VERSION): use API version numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_shuffle_bang, rb_ary_sample): add optionalnobu2010-08-235-18/+88
| | | | | | | | | argument random. [ruby-dev:41923] [EXPERIMENTAL] * random.c (rb_random_{int32,real,bytes}): fallback to normal method invocation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/version.h (RUBY_API_VERSION_*): renamed and movednobu2010-08-235-5/+26
| | | | | | | | from version.h. [ruby-dev:42103] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * doc/ChangeLog-1.9.3: mistake.nobu2010-08-232-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: flushed. [ruby-dev:42050]nobu2010-08-232-80606/+80624
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-08-24svn2010-08-231-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): to_f must underflow when ↵mrkn2010-08-233-9/+41
| | | | | | | | the exponent is less than DBL_MIN_10_EXP - BASE_FIG. * test/bigdecimal/test_bigdecimal.rb (test_to_f): added test for the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pathname/pathname.c (path_each_line): Pathname#each_lineakr2010-08-234-10/+52
| | | | | | | translated from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (version.o): depends on both of version.h andnobu2010-08-232-1/+6
| | | | | | include/ruby/version.h. [ruby-dev:42063] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * backport r29071 from ruby_1_8;nahi2010-08-233-0/+34
| | | | | | | | | | | | | | | | | * ext/openssl/ossl_asn1.c (obj_to_asn1bool): fixed ASN1::Boolean encoding issue for OpenSSL 1.0.0 compatibility. ASN1::Boolean.new(false).to_der wrongly generated "\1\1\377" which means 'true'. ASN1_TYPE_set of OpenSSL <= 0.9.8 treats value 0x100 as 'false' but OpenSSL >= 1.0.0 treats it as 'true'. ruby-ossl was using 0x100 for 'false' for backward compatibility. Just use 0x0 for the case OpenSSL >= OpenSSL 0.9.7. * test/openssl/test_asn1.rb: test added. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_search): fix: 4th argument should be regexpnaruse2010-08-232-1/+6
| | | | | | object. patched by shintaro kuwamoto [ruby-dev:41667] #3459 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * util.c (ruby_strtod): make sure to have digit-sequence after 'p'naruse2010-08-233-2/+13
| | | | | | for hexadecimal-floating-constant. [ruby-dev:42105] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-08-23svn2010-08-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/date.rb, lib/date/format.rb: [ruby-core:31695]tadf2010-08-224-7/+5
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64.akr2010-08-222-1/+6
| | | | | | | reported by Daniel Gutmanas. [ruby-core:31778] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (RAND_UPTO): macro for random number.nobu2010-08-212-11/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: fix typo. a patch from Eric Wong atnobu2010-08-213-3/+8
| | | | | | | | [ruby-core:31810]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_super.rb: add test.wanabe2010-08-211-0/+45
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c: add missing prototype of rb_iseq_clone for r29063.naruse2010-08-212-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29064 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (vm_define_method): copy iseq to avoid overwriting iseq->klass.wanabe2010-08-212-0/+10
| | | | | | #2502, #3136. see #2420. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29063 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-08-21svn2010-08-211-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pathname/pathname.c (path_split): Pathname#split translated fromakr2010-08-213-8/+23
| | | | | | | pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add rdoc about Kernel#<=> [ruby-core:31770]naruse2010-08-201-1/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2010-08-20svn2010-08-201-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pathname/pathname.c (path_expand_path): Pathname#expand_pathakr2010-08-204-3/+29
| | | | | | | translated from pathname.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot (usage): mention versions.nobu2010-08-191-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29056 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot (usage): add usage.nobu2010-08-192-2/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot (package): accept revision as BRANCH@REV.nobu2010-08-192-2/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29054 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_timestamp): fix a constant type.akr2010-08-193-2/+8
| | | | | | | | * ext/socket/raddrinfo.c (get_afamily): suppress a warning. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread_pthread.c (native_sleep): suppress a warning for platformsakr2010-08-192-1/+6
| | | | | | | which time_t is int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29052 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * properties.nobu2010-08-190-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Forgot content of r29049.naruse2010-08-191-0/+207
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e