summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * thread_pthread.c (native_sleep): sleep_cond is initialized atnobu2008-04-103-4/+8
| | | | | | | creation. [ruby-Patches-19361]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (lock_func): optimized and checks for interrupt_flag.nobu2008-04-092-25/+17
| | | | | | | | based on a patch from Sylvain Joyeux in [ruby-Patches-19361] and [ruby-Patches-19362]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb: new tests from Sylvain Joyeux innobu2008-04-094-3/+133
| | | | | | | [ruby-Patches-19361]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15930 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (lock_func): optimized. based on a patch from Sylvainnobu2008-04-081-1/+4
| | | | | | | Joyeux in [ruby-Patches-19362]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15929 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_mutex_sleep): ensures to re-acquire at waking up.nobu2008-04-082-4/+23
| | | | | | | [ruby-Patches-19361] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15928 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/complex.rb: remove Math first before overwriting by CMath.matz2008-04-082-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15926 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_quote): should always copy the quoting string.matz2008-04-082-3/+6
| | | | | | [ruby-core:16235] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (rb_require_safe): should check fname path after $SAFE ismatz2008-04-082-2/+7
| | | | | | properly set. [ruby-dev:34268] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15923 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (prelude.c): depends on enc/prelude.rb.nobu2008-04-083-4/+12
| | | | | | | * enc/prelude.rb: fixed initial library names. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_autoload.rb: tests for [ruby-dev:34268].nobu2008-04-071-4/+31
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (rb_provided): check expanded path for relative pathnobu2008-04-075-6/+45
| | | | | | | | | | features, loading or loaded features are already expanded in 1.9. * variable.c (rb_autoload_load): no needs to check if provided before rb_require_safe. [ruby-dev:34266] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* trivial change.tadf2008-04-071-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15919 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c: cancelled recent changes (except to remove rdiv).tadf2008-04-074-38/+63
| | | | | | | | | | * bignum.c: ditto. * bignum.c: added rb_big_idiv. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ignores all libruby stuffs.nobu2008-04-070-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (enc_init_db): moved to enc/encdb.c.nobu2008-04-0710-58/+76
| | | | | | | | | | | | * transcode.c (init_transcoder_table): moved to enc/trans/transdb.c. * enc/depend (enc/encdb.o enc/trans/transdb.o): depend on corresponding headers. * common.mk (COMMONOBJS): moved transcode.o from OBJS git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_knownbug.rb: add a known-bug.ko12008-04-072-0/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_each_func): should not leave a variablenobu2008-04-072-13/+9
| | | | | | | | | uninitialized, which could cause SEGV. * range.c (range_step): removed duplicated and unreachable code. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_intern): need not to check if tainted.matz2008-04-062-3/+5
| | | | | | [ruby-dev:34219] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cmpint): moved from compar.c, to check bignummatz2008-04-066-34/+54
| | | | | | | | | zero. * range.c (range_step): add step for each iteration if begin and end are numeric. [ruby-core:15990] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/compile_prelude.rb: allows extra suffix after .c.nobu2008-04-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cmath.rb: set properties.nobu2008-04-060-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * dir.c (dir_tell): check if closed. [ruby-core:16223]nobu2008-04-063-4/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/complex.rb depends lib/cmath.rb.tadf2008-04-051-224/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cmath.rb: new.tadf2008-04-057-133/+270
| | | | | | | | | | | | * lib/complex.rb: depends lib/cmath.rb. * lib/rational.rb: added rdiv. * complex.c: removed some math functions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parsers/parse_rb.rb: Fix uninitialized variable warnings.drbrain2008-04-045-5/+17
| | | | | | | | | | | * lib/rdoc/generator/html.rb: ditto. * lib/rdoc/options.rb: Fix shadowed variable warning. * lib/webrick/httprequest.rb: Fix redefined method warning. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_memsearch_qs): wrong boundary condition.naruse2008-04-042-4/+10
| | | | | | * re.c (rb_memsearch_qs_utf8): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_memsearch_qs): wrong boundary condition. a patch frommatz2008-04-043-4/+9
| | | | | | wanabe <s.wanabe AT gmail.com> in [ruby-dev:34248]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails andmatz2008-04-032-0/+7
| | | | | | @n_bytes as well. [ruby-core:16144] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_quo): RDoc updated.matz2008-04-032-4/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (Init_Bignum): rdiv method removed. [ruby-dev:34242]matz2008-04-037-89/+27
| | | | | | | | | | | | * complex.c (nucomp_quo): ditto. * numeric.c (num_rdiv): ditto. * rational.c (nurat_div): ditto. * complex.c (nucomp_fdiv): fdiv implementation restored. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (nucomp_int_check): function for DRY real check.tadf2008-04-033-64/+33
| | | | | | | | * complex.c (nucomp_{add,sub,mul,div,expt}): use rb_num_coerce_bin(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (range_include): add RDoc to describe that comparisonmatz2008-04-032-1/+8
| | | | | | | for numeric is done according magnitude of values. [ruby-core:15907] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insns.def (defineclass): check if cbase is a class or a module.nobu2008-04-033-8/+23
| | | | | | | [ruby-core:16118] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (INSNS): add insns_info.inc.usa2008-04-032-2/+8
| | | | | | | | * common.mk (INSNS): make incs separately for nmake. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (golf_prelude.c): needs .new.nobu2008-04-031-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (endb.h, transdb.h, prelude.c): depend on $(PREP) andnobu2008-04-032-16/+16
| | | | | | | check if really changed. [ruby-core:16102] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * Makefile.in, common.mk, configure.in, {win32,bcc32}/Makefile.subnobu2008-04-036-6/+14
| | | | | | | (MINIOBJS, ARCHMINIOBJS): separated. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_set_sequence, iseq_insns_unification,nobu2008-04-038-25/+36
| | | | | | | | | | | | | insn_data_to_s_detail): constified. * iseq.c (insn_operand_intern, ruby_iseq_disasm_insn): ditto. * template/{insns_info,opt_sc,optunifs}.inc.tmpl: ditto. * tool/instruction.rb (OptUnifsIncGenerator): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (cflags): expand at compile time.nobu2008-04-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * numeric.c (num_rdiv): should always return rational number.matz2008-04-027-76/+85
| | | | | | | | | | | * rational.c (nurat_add, nurat_sub, nurat_mul, nurat_fdiv, nurat_cmp): use rb_num_coerce_bin(). * rational.c (nurat_division): does / and rdiv. * .gdbinit (rp): no longer use rb_p(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c (nurat_int_check): function for DRY integer check.matz2008-04-023-57/+26
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * .gdbinit (rp): supports rational and complex numbers. it'smatz2008-04-012-0/+15
| | | | | | cheating since it uses rb_p(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/node.h: add new constants for rb_call()'s scope.matz2008-04-014-11/+22
| | | | | | | | | | * eval.c (iterate_method): use CALL_* scope constant to specify proper scope value. * eval.c (rb_each, rb_apply, rb_funcall, rb_funcall2, rb_funcall3): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * rational.c: need to include <float.h> just once.matz2008-04-012-4/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (big2dbl): more precise conversion at edge cases.nobu2008-04-012-4/+58
| | | | | | | [ruby-dev:34195] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: get rid of empty expansion.nobu2008-04-012-2/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: quoted.nobu2008-04-011-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in: _setjmp is available but _longjmp is not on mingw.nobu2008-04-012-2/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {lib,test}/rubygems: set eol-style.nobu2008-04-010-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {bcc,win}32/Makefile (config.h): need to define RUBY_SETJMP, etc.usa2008-04-013-1/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e