tadf
4e046758f5
* numeric.c: cancelled recent changes (except to remove rdiv).
...
* bignum.c: ditto.
* bignum.c: added rb_big_idiv.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15918 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-07 13:52:26 +00:00
nobu
ba9c34e2ad
* ignores all libruby stuffs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15916 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-07 07:06:32 +00:00
nobu
1369cfd16e
* encoding.c (enc_init_db): moved to enc/encdb.c.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15915 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-07 06:51:33 +00:00
ko1
3f3fdb4869
* bootstraptest/test_knownbug.rb: add a known-bug.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-07 03:28:23 +00:00
nobu
4653fedd0c
* range.c (range_each_func): should not leave a variable
...
uninitialized, which could cause SEGV.
* range.c (range_step): removed duplicated and unreachable code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15913 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-07 03:15:26 +00:00
matz
5572494524
* string.c (rb_str_intern): need not to check if tainted.
...
[ruby-dev:34219]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-06 17:19:11 +00:00
matz
bdc00ba604
* bignum.c (rb_cmpint): moved from compar.c, to check bignum
...
zero.
* range.c (range_step): add step for each iteration if begin and
end are numeric. [ruby-core:15990]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15911 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-06 17:11:50 +00:00
nobu
a06fc80da6
* tool/compile_prelude.rb: allows extra suffix after .c.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15910 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-06 01:22:21 +00:00
nobu
657e13262b
* lib/cmath.rb: set properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15909 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-06 00:46:43 +00:00
nobu
0b3a667f53
* dir.c (dir_tell): check if closed. [ruby-core:16223]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-06 00:45:02 +00:00
tadf
968e827e15
lib/complex.rb depends lib/cmath.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-05 14:26:43 +00:00
tadf
c08b5dfb81
* lib/cmath.rb: new.
...
* lib/complex.rb: depends lib/cmath.rb.
* lib/rational.rb: added rdiv.
* complex.c: removed some math functions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15906 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-05 14:25:40 +00:00
drbrain
be710a0391
* lib/rdoc/parsers/parse_rb.rb: Fix uninitialized variable warnings.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-04 21:16:19 +00:00
naruse
3467a1754c
* re.c (rb_memsearch_qs): wrong boundary condition.
...
* re.c (rb_memsearch_qs_utf8): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-04 14:26:19 +00:00
matz
2b8af7d624
* re.c (rb_memsearch_qs): wrong boundary condition. a patch from
...
wanabe <s.wanabe AT gmail.com> in [ruby-dev:34248].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15902 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-04 05:13:06 +00:00
matz
3d09c87ab5
* lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails and
...
@n_bytes as well. [ruby-core:16144]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15901 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 20:59:51 +00:00
matz
c69d2005c3
* numeric.c (num_quo): RDoc updated.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 16:04:31 +00:00
matz
228f30be3a
* bignum.c (Init_Bignum): rdiv method removed. [ruby-dev:34242]
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 16:01:16 +00:00
tadf
5d6602c44e
* complex.c (nucomp_int_check): function for DRY real check.
...
* complex.c (nucomp_{add,sub,mul,div,expt}): use rb_num_coerce_bin().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 12:55:27 +00:00
matz
b916c39db4
* range.c (range_include): add RDoc to describe that comparison
...
for numeric is done according magnitude of values.
[ruby-core:15907]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 11:57:23 +00:00
nobu
ccf20a6d3f
* insns.def (defineclass): check if cbase is a class or a module.
...
[ruby-core:16118]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15894 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 10:59:44 +00:00
usa
9729ba32d0
* common.mk (INSNS): add insns_info.inc.
...
* common.mk (INSNS): make incs separately for nmake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15893 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 05:44:29 +00:00
nobu
11b6935049
* common.mk (golf_prelude.c): needs .new.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 04:49:20 +00:00
nobu
2c485c409d
* common.mk (endb.h, transdb.h, prelude.c): depend on $(PREP) and
...
check if really changed. [ruby-core:16102]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15891 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 04:20:40 +00:00
nobu
b0c77fe85b
* Makefile.in, common.mk, configure.in, {win32,bcc32}/Makefile.sub
...
(MINIOBJS, ARCHMINIOBJS): separated.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 03:56:07 +00:00
nobu
5c1926ac82
* compile.c (iseq_set_sequence, iseq_insns_unification,
...
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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15889 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-03 00:00:48 +00:00
nobu
4820648521
* configure.in (cflags): expand at compile time.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-02 21:18:59 +00:00
matz
c3d2e4d381
* numeric.c (num_rdiv): should always return rational number.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-02 14:13:53 +00:00
matz
f67f196b1d
* rational.c (nurat_int_check): function for DRY integer check.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15886 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-02 13:31:42 +00:00
matz
339dca41fc
* .gdbinit (rp): supports rational and complex numbers. it's
...
cheating since it uses rb_p().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 21:54:16 +00:00
matz
a4d6f2265a
* include/ruby/node.h: add new constants for rb_call()'s scope.
...
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@15884 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 21:30:36 +00:00
matz
ddf9b405ad
* rational.c: need to include <float.h> just once.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 12:21:33 +00:00
nobu
e31a69562e
* bignum.c (big2dbl): more precise conversion at edge cases.
...
[ruby-dev:34195]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15881 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 07:40:23 +00:00
nobu
05da1ec22d
* configure.in: get rid of empty expansion.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15880 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 05:43:40 +00:00
nobu
6b808e66af
* configure.in: quoted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 04:07:25 +00:00
nobu
54e792ee6f
* configure.in: _setjmp is available but _longjmp is not on mingw.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 02:36:21 +00:00
nobu
432fc5bd1f
* {lib,test}/rubygems: set eol-style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15876 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 02:01:27 +00:00
usa
5bf63ffcaa
* {bcc,win}32/Makefile (config.h): need to define RUBY_SETJMP, etc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-01 00:42:06 +00:00
drbrain
283be20b27
Remove test file that was removed in RubyGems 1.1.0
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 22:55:00 +00:00
drbrain
8cc45aae94
Import RubyGems 1.1.0
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 22:40:06 +00:00
nobu
dc8359969e
* configure.in: __builtin_setjmp cannot handle a variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 18:20:42 +00:00
nobu
b39676f6a9
* configure.in (RUBY_SETJMP, RUBY_LONGJMP, RUBY_JMP_BUF): prefers
...
__builtin_setjmp, _setjmp over setjmp and sigsetjmp.
[ruby-core:16023], [ruby-core:16086]
* configure.in (--with-setjmp-type): new option to override the
default rule in the above.
* eval_intern.h (ruby_setjmp, ruby_longjmp), gc.c (rb_setjmp),
vm_core.h (rb_jmpbuf_t): use RUBY_SETJMP, RUBY_LONGJMP and
RUBY_JMP_BUF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15871 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 17:58:41 +00:00
nobu
29b538fa71
* lib/resolv.rb (Resolv::Config.default_config_hash): requires
...
win32/resolv to use Win32::Resolv. [ruby-dev:34138]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 16:55:54 +00:00
tadf
597179bb95
adopted the ruby's style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 16:42:24 +00:00
tadf
459aa9f1c5
revert.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 15:19:39 +00:00
matz
88a4961cb2
* numeric.c (num_quo): should convert its operand to Rational.
...
* rational.c (string_to_r_strict): should raise TypeError.
* bignum.c (Init_Bignum): should not redefine Bignum#div.
Numeric#div will do. [ruby-dev:34066]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15866 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 10:14:42 +00:00
usa
b2acbb2c67
* {bcc,win}32/Makefile.sub (config.h): define ssize_t.
...
* io.c (copy_stream_body): some platform don't have O_NOCTTY.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 09:58:41 +00:00
nobu
9a421e5b7e
* configure.in: check for ssize_t. [ruby-dev:34184]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-31 09:42:44 +00:00
naruse
839dc7f9ab
* io.c (io_getc): set coderange while getting characters.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-30 19:16:29 +00:00
yugui
70153a6a73
* io.c (rb_io_lines, rb_io_bytes, rb_io_chars) Fixed their rdocs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-30 15:39:00 +00:00