naruse
bd5a15f76d
* ruby.c (load_file): the encoding of DATA follows the source
...
file encoding. [ruby-dev:33693]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-11 01:47:26 +00:00
mame
65753a5838
* test/ruby/test_pack.rb: fix tests for 64bit CPU.
...
* test/ruby/test_bignum.rb: ditto.
* test/ruby/test_file_exhaustive.rb: ditto.
* test/ruby/test_integer.rb: ditto.
* test/ruby/test_time.rb: ditto.
* test/ruby/test_numeric.rb: ditto.
* test/ruby/test_fixnum.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-10 21:52:25 +00:00
naruse
a336e6ebd1
* lib/benchmark.rb (Job::Benchmark#item): fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-10 15:29:00 +00:00
naruse
e833cd9b3c
* common.mk (encdb, transdb): depend on $(PREP).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-10 13:13:30 +00:00
drbrain
5d613c83cc
Import RubyGems r1601. [ruby-core:15381].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-10 08:00:19 +00:00
nobu
c12b289362
* {bcc32,win32,wince}/Makefile.sub (MISSING): added cbrt.obj.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-10 06:07:31 +00:00
drbrain
455b051a00
* lib/rdoc/code_objects.rb: Make some attributes accessible for reuse.
...
* lib/rdoc/generator/html.rb: Pull out ContextUser classes and related
methods for reuse.
* lib/rdoc/generator.rb: Move ContextUser classes to
RDoc::Generator::Context for reuse.
* lib/rdoc/rdoc.rb: Make RDoc::RDoc initialization a little easier.
* lib/rdoc/options.rb: Make RDoc::Options easier to use without
parsing an ARGV.
* lib/rdoc/markup/to_*.rb: Subclass RDoc::Markup::Formatter.
* lib/rdoc/markup/formatter.rb: Add RDoc::Markup::Formatter to make
RDoc markup conversion easier.
* lib/rdoc/markup/fragments.rb: Make RDoc::Markup::ListItem easier to
test.
* lib/rdoc/markup/to_html_hyperlink.rb: Pulled out of the HTML
generator for easier reusability.
* lib/rdoc/markup.rb: Fix bug with labeled lists containing bullet
lists.
* lib/rdoc/generators/html/html.rb: Fix Constant display.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-10 03:59:08 +00:00
akr
d44f24c47c
* missing/tgamma.c (tgamma): use lgamma_r if available.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 14:45:43 +00:00
nobu
4d5f46dc08
* ext/bigdecimal/extconf.rb: simplified the condition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 14:22:54 +00:00
mame
7ced5439b4
* test/ruby/test_math.rb: add tests for Math#gamma, Math#lgamma and
...
Math#cbrt, and use assert_in_delta instead of assert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 12:21:30 +00:00
akr
87ea50380d
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 09:49:31 +00:00
akr
b160d23c68
* math.c (math_cbrt): new method Math.cbrt.
...
* configure.in (cbrt): check for replacement functions.
* missing/cbrt.c: new file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 09:36:03 +00:00
nobu
a424741c8e
* ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): use strtod() for more
...
precision. [ruby-talk:290296]
* ext/bigdecimal/bigdecimal.c (BASE_FIG): made constant.
* ext/bigdecimal/extconf.rb: ditto. [ruby-dev:33658]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 08:51:26 +00:00
akr
0e66903fca
* missing/tgamma.c (tgamma): add error check.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 03:07:34 +00:00
akr
c8aa30a958
* math.c (math_gamma): add error check.
...
(math_lgamma): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 02:47:50 +00:00
akr
1c6e4ff1a0
fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 02:12:21 +00:00
akr
4c351aea17
* missing/xlgamma_r.c (lgamma_r): return HUGE_VAL for non-positive
...
integers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 02:10:57 +00:00
akr
8f9fb1a820
* string.c (rb_str_new4): copy encoding from orig, instead of shared
...
one.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09 01:04:29 +00:00
naruse
998113d62f
* file.c (lchmod_internal): fix warning cast from pointer to integer of
...
different size.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 16:10:27 +00:00
nobu
8bc75b5bb0
* lib/irb.rb (IRB::Irb::eval_input): rescues Interrupt and other than
...
SystemExit and SignalException. [ruby-core:15359]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 15:44:54 +00:00
akr
185849a664
* missing/lgamma_r.c (lgamma_r): use smaller argument for sin function.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 14:53:09 +00:00
akr
54b455190b
* lib/open-uri.rb (OpenURI.open_http): rescue URI::InvalidURIError by
...
URI.parse for location URI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 13:11:46 +00:00
nobu
ef816db96f
* ext/iconv/iconv.c (rb_str_derive): uses rb_str_subseq() for byte
...
length. [ruby-dev:33653]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 10:22:15 +00:00
nobu
0123f3a922
* ext/iconv/iconv.c (iconv_convert): added toidx argument to set
...
encoding of successfully converted string. [ruby-dev:33221]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 10:19:57 +00:00
akr
d55c77f565
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 10:18:56 +00:00
nobu
f3d18d8c4c
* lib/mkmf.rb (xsystem): expand macros like as make.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 06:09:23 +00:00
akr
52a757686d
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 04:27:37 +00:00
naruse
baa1468895
* lib/rdoc/ri/driver.rb (read_yaml): remove SM* for compatibility.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-08 00:54:21 +00:00
mame
2bef7dece1
* test/ruby/test_hash.rb: follow the change of Hash#flatten.
...
* test/ruby/test_time.rb: add tests to achieve over 70% test coverage
of time.c.
* test/ruby/test_prec.rb: ditto over 90% for prec.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 15:09:12 +00:00
nobu
1809782c3e
* string.c (rb_str_replace): makes frozen shared string before
...
sharing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 10:11:40 +00:00
nobu
fb506c3000
* string.c (rb_str_dup): reverted unneeded change. [ruby-dev:33634]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 09:57:06 +00:00
akr
82b088aa0c
* io.c (io_reopen): don't change access mode for stdin, stdout and
...
stderr. [ruby-core:15360]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 07:40:25 +00:00
nobu
89941dffb5
* string.c (str_replace_shared): replaces string with sharing.
...
* string.c (rb_str_new4, rb_str_associate, rb_str_associated): allows
associated strings shared.
* string.c (rb_str_dup, rb_str_substr, rb_str_replace): shares memory.
[ruby-core:15400]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 07:33:50 +00:00
nobu
6c6ae98663
* string.c (rb_str_end_with): compares with the suffix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 06:42:44 +00:00
naruse
e22ff0c9b6
* enc/trans/korean.c: add support for CP949 by Park Ji-In. [ruby-dev:33626]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 06:05:32 +00:00
nobu
9a000dda77
* missing/tgamma.c, missing/lgamma_r.c: set properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 02:48:21 +00:00
akr
f6d8188c54
fix lgamma doc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 02:40:57 +00:00
usa
4cd86dbe9f
* missing/lgamma_r.c (lgamma_r): some compilers don't permit dividing
...
by literal 0.0. use const variable instead.
* {bcc32,win32,wince}/Makefile.sub (MISSING): add lgamma_r.obj and
tgamma.obj.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 02:14:54 +00:00
akr
58f7adb50e
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 01:52:53 +00:00
akr
14373fc4db
* math.c (math_gamma): new method Math.gamma.
...
(math_lgamma): new method Math.lgamma.
* include/ruby/missing.h (tgamma): declared unless HAVE_TGAMMA.
(lgamma_r): declared unless HAVE_LGAMMA_R.
* configure.in (tgamma): check for replacement funtions.
(lgamma_r): ditto.
* missing/tgamma.c: new file. based on gamma.c from
"C-gengo niyoru saishin algorithm jiten" (New Algorithm handbook
in C language) (Gijyutsu hyouron sha, Tokyo, 1991)
by Haruhiko Okumura.
* missing/lgamma_r.c: ditto.
* LEGAL (missing/tgamma.c): describe as public domain.
(missing/lgamma_r.c): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 01:43:43 +00:00
usa
b88ecbcffc
* ChangeLog: date format. suppress the day of month by space instead of `0'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 00:22:16 +00:00
matz
5a8d5c873b
* ext/nkf/nkf-utf8/nkf.c (nkf_enc_from_index): BINARY does not
...
have in-bound encoding index.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-07 00:06:55 +00:00
naruse
4f0083e45f
* enc/trans/korean.c: add EUC-KR conversion support by Park Ji-In.
...
[ruby-dev:33621]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-06 19:40:11 +00:00
matz
8c1887e3a4
typo fixed
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-05 16:53:23 +00:00
matz
acc1a53744
* hash.c (rb_hash_flatten): do not flatten recursively by default.
...
[ruby-dev:33603]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-05 16:51:30 +00:00
usa
fe923029df
* insns.def: sorry, remove debug code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-05 15:57:32 +00:00
usa
ba6e0752b0
* insns.def (adjuststack): never use INC_SP with minus value because
...
some compilers cannot deal it collectly. use DEC_SP instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-05 15:54:33 +00:00
mame
39f0a1196b
* test/ruby/test_hash.rb: add tests to achieve over 90% test coverage
...
of hash.c.
* test/ruby/test_env.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-05 15:50:25 +00:00
mame
a73ec67e8d
* hash.c (env_rassoc): remove access to free'd environment on mswin32.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-05 15:25:35 +00:00
mame
03a4a0f1d2
* vm.c (rb_call_super): pass a passed block when super is called via
...
rb_call_super. [ruby-dev:33598]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-05 12:58:50 +00:00