nobu
f623979f65
* io.c (IO_[CRW]BUF_CAPA_MIN): replaced magic numbers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 00:43:07 +00:00
svn
9a83683190
* 2010-03-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 00:24:54 +00:00
akr
82488cf2b9
* object.c (rb_obj_hash): use LONG2FIX to avoid Bignum allocation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-21 00:24:44 +00:00
akr
d0fa628d06
* string.c (rb_str_sum): use UCHAR_MAX.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 13:52:34 +00:00
akr
750c9916e2
* tool/transcode-tblgen.rb (ActionMap.unambiguous_action): use
...
Array#delete.
(ActionMap.merge2): defined.
(ActionMap::PostMemo): removed.
(transcode_compile_tree): use ActionMap.merge2.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 10:18:55 +00:00
wanabe
b7ed43e941
* test/dl/test_handle.rb: skip some tests on mswin/mingw.
...
because RTLD_DEFAULT and RTLD_NEXT don't work well on windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 09:47:07 +00:00
akr
4b6a7a46e8
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 05:17:19 +00:00
akr
9ce419a45c
* array.c (rb_ary_uniq_bang): the array is already unique if the
...
length is zero or one.
(rb_ary_uniq): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 04:27:32 +00:00
nobu
c9dd4823d9
* lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 03:30:59 +00:00
akr
772cc7a4f2
* tool/transcode-tblgen.rb (each_firstbyte_range): tuned for less
...
method calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-20 02:32:40 +00:00
wanabe
7fde261963
* test/dl/test_cfunc.rb (test_to_s): a result of sprintf("%x", ptr)
...
may contain 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 16:39:16 +00:00
wanabe
7e2fa5adf4
* ext/dl/lib/dl/pack.rb (DL#pack): allow LLP64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 16:20:56 +00:00
wanabe
e40c43a1bf
* test/dl/test_dl2.rb (DL::TestDL#ptr2num): add for LLP64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 16:18:05 +00:00
svn
faee1b6f78
* 2010-03-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 16:16:26 +00:00
wanabe
c28b2b9be2
* test/dl/test_dl2.rb: require 'dl/func' to refer DL::Function.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 16:16:22 +00:00
akr
b5388e8538
update rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-19 12:54:01 +00:00
akr
4f74adc503
add test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 23:11:12 +00:00
svn
642305dae6
* 2010-03-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 20:35:27 +00:00
akr
053d89ca2b
* string.c (rb_str_sum): don't call method for each byte.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 20:35:18 +00:00
nobu
bd5e925cc4
* Makefile.in (miniruby): link $(NORMALMAINOBJ).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 12:24:28 +00:00
akr
f9d64323c8
* tool/transcode-tblgen.rb: scan singleton mappings sequentially.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 10:53:38 +00:00
naruse
e0250f59e0
Add NEWS and fix ChangeLog.
...
* new methods:
* URI.encode_www_form
* URI.decode_www_form
* URI.encode_www_form_component
* URI.decode_www_form_component
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-18 00:05:10 +00:00
nobu
43ab72099b
* configure.in (RUBY_EXEC_PREFIX): added to config.h.
...
* ruby.c (ruby_init_loadpath_safe): TMP_RUBY_PREFIX should be
exec_prefix, not rubylibprefix. [ruby-core:28718]
* version.c (RUBY_LIB_PREFIX): fallback to RUBY_EXEC_PREFIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 21:28:36 +00:00
nobu
ad41699b47
* ext/bigdecimal/bigdecimal.c (BigDecimal_{to_i,mod,divmod,div2}):
...
removed unused variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 20:58:34 +00:00
nobu
83b8f94f4e
* parse.y (rb_intern3): get rid of type-punning cast.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 19:41:00 +00:00
mame
d47e0b989f
* compile.c (iseq_build_body): add mark to jump table hash of case.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 17:33:01 +00:00
naruse
9eb68d7c44
* util.c (ruby_strtod): Add support for Hexadecimal
...
floating-point expression [ruby-dev:40650] #2969
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 16:21:45 +00:00
akr
5f0be51c21
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 16:00:00 +00:00
svn
c18d939fab
* 2010-03-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 15:35:49 +00:00
naruse
f626a17d8c
* lib/uri/common.rb (URI#{en,de}code_www_form_component):
...
renamed from URI#{en,de}code_www_component. [ruby-dev:40672]
* lib/uri/common.rb (URI#encode_www_form_component): %-encoded
element should have always two hex.
* lib/uri/common.rb (URI#encode_www_form_component):
better treatment for ASCII incompatible encodings and
encodings whose lead byte may use 7bit.
* lib/uri/common.rb (URI#decode_www_form_component): add %20.
* lib/uri/common.rb (URI#decode_www_form_component): add
result's encoding as 2nd argument.
* lib/uri/common.rb (URI#decode_www_form): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 15:35:38 +00:00
nobu
4067fd028d
* hash.c (rb_hash_aset): allow recursive key. [ruby-core:24648]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-17 07:25:58 +00:00
nobu
c9e0df64b5
* ruby.h (rb_warning, rb_sys_warning): fixed typo in rdoc.
...
[ruby-core:28696]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 21:40:05 +00:00
mame
6ff75042db
* compile.c, iseq.c, ruby.c, vm.c, vm_core.h, vm_eval.c: add absolute
...
path field into rb_iseq_t. The field contains a string representing
a path to corresponding source file. or nil when the iseq is created
from -e, stdin, eval, etc. This field is used for require_relative.
[ruby-dev:40004]
* load.c (rb_f_require_relative): add C implementation of
require_relative.
* prelude.rb (require_relative): get rid of Ruby implementation of
require_relative.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 17:40:00 +00:00
svn
c4fdd64fe0
* 2010-03-17
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 16:26:11 +00:00
mame
4f78e7fff4
* parse.y (rb_intern3): prohibit Symbol with an invalid encoding.
...
[ruby-core:24621]
* test/ruby/test_m17n_comb.rb: modify a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 16:26:04 +00:00
akr
0b6a0045aa
* tool/transcode-tblgen.rb: specialize for singletom mappings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 13:52:16 +00:00
muraken
04d90693dc
* enc/trans/emoji.trans: added codepoints leading 0xf4 into nomap_table.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 11:18:03 +00:00
naruse
d4120b1f1d
* ext/bigdecimal/bigdecimal.c (VpCtoV): keep e's sign.
...
When e doesn't over flow e * BASE_FIG but overflow e * 10,
e will overflow.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 08:38:14 +00:00
nobu
43025927c6
* include/ruby/encoding.h (rb_str_conv_enc_opts): missing prototype.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 08:18:47 +00:00
nobu
3694f1dda7
* ext/tmpdir: split from lib/tmpdir.rb.
...
* win32/win32.c (rb_w32_system_tmpdir): extracted from init_env.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 06:20:23 +00:00
nobu
724f1f4a6e
* win32/win32.c (rb_w32_getcwd): remvoed duplicated code.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 05:48:07 +00:00
nobu
bf45c36d5f
* include/ruby/encoding.h (ENC_TO_ENCINDEX): suppress warnings.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 05:06:19 +00:00
nobu
acd2d29f2e
* configure.in (RSHIFT): parenthesize the argument of cast instead
...
of the result.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 05:03:30 +00:00
nobu
b215b9742e
* file.c (file_expand_path): ignore dname if it has different
...
drive letter or UNC.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-16 02:23:51 +00:00
akr
dcff8e84d3
fix typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-15 22:23:33 +00:00
akr
34533445c8
* tool/transcode-tblgen.rb: redundant loop removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26946 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-15 22:21:24 +00:00
akr
32ea96f682
* tool/transcode-tblgen.rb: refactored to use tree as memo key.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-15 22:02:42 +00:00
svn
a9e9169752
* 2010-03-16
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-15 19:10:37 +00:00
akr
e3a231d3d0
* tool/transcode-tblgen.rb: more info in generating macro names.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-15 19:10:29 +00:00
akr
2ce0d5db96
* tool/transcode-tblgen.rb: ActionMap#each_firstbyte inlined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-03-15 12:59:54 +00:00