matz
cb699fc930
* encoding.c (rb_enc_name_list): update RDoc. [ruby-core:23926]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-19 11:54:37 +00:00
tadf
03f49cbb32
* complex.c: constant COMPLEX_NAME has been removed.
...
* rational.c: constant RATIONAL_NAME has been removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23744 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-19 11:47:53 +00:00
tadf
a6e1a03e07
* rational.c: added rdoc. a patch from Run Paint Run Run.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-19 11:42:07 +00:00
matz
cdba56b38a
* numeric.c (flo_cmp): should always return nil for NaN.
...
* numeric.c (flo_cmp): handle infinite value specially using
infinite? method internally. [ruby-dev:38681]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-19 08:19:14 +00:00
tadf
5134783cde
* numeric.c (*_numerator,*_denominator): moved to rational.c.
...
* rational.c (*_numerator,*_denominator): moved from numeric.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-19 00:31:08 +00:00
nobu
44a1d99635
* bignum.c (big_lshift, big_rshift): return Bignum always without
...
normalization. [ruby-dev:38679]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 23:14:08 +00:00
svn
f0a75dbba8
* 2009-06-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 16:02:24 +00:00
matz
fe737a1e1d
* ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): went infinity too
...
early. add BASE_FIG margin. [ruby-dev:38673]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 16:02:21 +00:00
akr
32004e3c46
don't use /tmp as example socket path.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 14:04:54 +00:00
tadf
67f93ddc21
* rational.c (nurat_s_convert): calls to_r when the given argument
...
is non-integer.
* rational.c (nurat_s_convert): raises TypeError when the given
argument is nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 13:41:44 +00:00
tadf
430eb945ce
removed an extra space.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 11:39:40 +00:00
tadf
1fda5e1a3f
* numeric.c ( num_numerator, num_denominator): use
...
to_r [ruby-core:23910].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 11:33:52 +00:00
ryan
dd2c22ae4d
oops. bump
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 07:32:17 +00:00
ryan
58cfb41d2a
Imported minitest 1.4.0 r5083.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-18 07:31:39 +00:00
matz
7fc9c4a4a0
* numeric.c (flo_cmp): Infinity is greater than any bignum
...
number. [ruby-dev:38672]
* bignum.c (rb_big_cmp): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 17:05:31 +00:00
nobu
7785612a38
* file.c (file_expand_path): drive letter is ascii only.
...
[ruby-dev:38612]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 16:29:22 +00:00
nobu
4d3c75e2b0
* configure.in (ridir, RI_BASE_NAME): fixed for path expansion.
...
[ruby-core:23876]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23728 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 16:09:30 +00:00
tadf
cefaa1680c
* rational.c (nurat_coerce): accepts Complex when the imag is
...
exact zero.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 14:49:10 +00:00
tadf
b6849b2502
* bignum.c (rb_big_fdiv): checks whether the given second argument
...
can be converted to float properly.
* numeric.c (fix_fdiv): calls rb_big_fdiv when the given second
argument is a bignum.
* rational.c (nurat_fdiv): should calculate Float(x/y), not
Float(x)/Float(y).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 12:55:16 +00:00
matz
bbd2b5e9bd
* load.c (rb_mod_autoload): ditto. [ruby-core:23835]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 08:00:29 +00:00
matz
bb7a1e8d5e
* load.c (rb_f_require): RDoc updated. a patch from Run Paint Run
...
Run in [ruby-core:23833].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 07:59:26 +00:00
nobu
a6db50e02b
* sample/test.rb (valid_syntax?): should not capture BOM.
...
* test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 06:22:58 +00:00
nobu
53ecede90b
* sample/test.rb (valid_syntax?): skips BOM. [ruby-dev:38666]
...
* test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23722 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 05:37:23 +00:00
matz
d121a3fb79
* ext/strscan/strscan.c (Init_strscan): remove obsolete
...
matchedsize method, use matched_size instead. [ruby-dev:38591]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 04:57:11 +00:00
matz
945ea61cd7
* thread.c (ruby_thread_stack_overflow): call rb_exc_raise() on
...
stack overflows in the signal handler, if sigaltstack is
available. On stack overflow (and with sigaltstack), the signal
handler is more likely to have room to create an exception
object. [ruby-core:23813]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-17 03:56:29 +00:00
ko1
39a770b720
* ext/objspace: added. objspace library extends some methods to
...
ObjectSpace module.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 23:56:48 +00:00
tadf
ad52268581
* complex.c (nucomp_coerce): accepts Complex instances.
...
* rational.c (nurat_coerce): accepts Rational
instances. [ruby-core:23859]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 23:17:17 +00:00
naruse
cde491005e
* lib/webrick/httputils.rb (parse_form_data): escape boundary of
...
multipart/form-data when embed in regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 22:42:13 +00:00
ko1
3caa4ee5e5
* array.c (rb_ary_memsize): added.
...
* io.c (rb_io_memsize): added.
* regcomp.c (onig_memsize): added.
* string.c (rb_str_memsize): added.
* transcode.c (rb_transcoding_memsize, rb_econv_memsize): added.
* variable.c (rb_geneic_ivar_memsize): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 22:36:27 +00:00
ko1
51d174a177
* iseq.c (iseq_memsize): added. Use RTypedData instead of RData
...
for ISeq.
* vm.c (env_memsize, vm_memsize, thread_memsize): added. Use
RTypedData instead of RData for Env, VM, Thread.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 22:23:53 +00:00
ko1
af0429b54e
* st.c, include/ruby/st.h (st_memsize): added. This function returns
...
the memory usage of st_talbe.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 22:03:12 +00:00
ko1
dfb0fa0ca6
fix indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 21:40:42 +00:00
ko1
a74d12dc28
* include/ruby/ruby.h: New structure RTypedData, added.
...
This structure incldues more explicit type information for
T_DATA objects. If RData(obj)->dfree is immediate value `1' on
T_DATA object obj, obj is needed to be accessed with RTYPEDDATA(obj)
instead of RDATA(obj). A RTypedData structure points the structure
rb_typed_data_t. rb_typed_data_t includes information such as the
type name of this data, mark and free function what RData includes,
and memsize function show how data consuming the memory size.
Note that you do not need any change existing T_DATA objects.
If you use RDataType instead of RData on T_DATA object,
you can specify explicit type information.
* gc.c (rb_data_typed_object_alloc, rb_objspace_data_type_memsize,
rb_objspace_data_type_name): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 21:36:50 +00:00
ko1
a0e0fafa0c
* gc.c: fix indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 21:15:15 +00:00
ko1
06f833e6d5
* gc.c (rb_objspace_each_objects): New C API, added.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 21:07:26 +00:00
svn
6883f97a0e
* 2009-06-17
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 15:49:48 +00:00
matz
be3c53d59d
* test/ruby/test_argf.rb (TestArgf#test_skip): updated test
...
according to clarified behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 15:49:41 +00:00
matz
d3b852345a
* io.c (fptr_finalize): revert last change. [ruby-dev:38648]
...
* io.c (fptr_finalize): skip close(2) for fd 0,1,2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 14:46:53 +00:00
naruse
e54f880643
* transcode.c (transcode_restartable0): refix can't build with VC9.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 11:10:10 +00:00
takano32
bc4c51ecce
Tue Jun 16 16:09:59 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
...
* parse.y (parser_read_escape, parser_tokadd_escape):
replace scan_oct as ruby_scan_oct.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 07:14:48 +00:00
matz
6f1edacc01
* io.c (fptr_finalize): should close stdin/stdout/stderr when
...
closed explicitly. [ruby-core:23853]
* io.c (argf_skip): should close only when current_file is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-16 01:14:28 +00:00
tadf
7a71dff0bf
avoid signbit() and adjust indentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-15 22:58:46 +00:00
svn
d25a5d9aec
* 2009-06-16
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-15 16:52:06 +00:00
akr
5aac65484e
* vm_eval.c (rb_call0): refine exception message for hidden objects.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-15 16:52:00 +00:00
tadf
04388f9f9d
* bignum.c (rb_big2db): (-Float::MAX.to_i*2).to_f should return
...
-HUGE_VAL (-Infinity).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-15 13:39:18 +00:00
matz
c6cb57262d
* io.c (argf_each_line): should return self. [ruby-core:23852]
...
* io.c (argf_each_byte, argf_each_char): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-15 09:54:36 +00:00
matz
50e7cb3b38
* gc.c (os_obj_of): invoke garbage collection before iteration, to
...
avoid accessing half recycled object references. [ruby-dev:38613]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-15 09:06:16 +00:00
nobu
b1f3890b57
* .gdbinit (rp, iseq): load dummy_gdb_enums on demand.
...
[ruby-dev:38606]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-15 02:04:36 +00:00
ko1
63bd8a74e8
* thread.c, vm_eval.c: add Thread.backtrace.
...
* test/ruby/test_thread.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-14 05:59:23 +00:00
ko1
d3027870ee
* transcode.c (transcode_restartable0): revert last commit because
...
this change cause SEGV at test-all.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23690 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-06-14 05:50:46 +00:00