naruse
5397015d2e
* enc/gb18030.c (gb18030_code_to_mbc): add 0x80000000
...
for 4bytes character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-01 19:36:28 +00:00
nobu
8f05f7fe05
* ruby.c (set_arg0): reverted used variable definition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-01 18:52:15 +00:00
naruse
9c13fc7d89
* enc/gb18030.c (gb18030_mbc_to_code): mask by 0x7FFFFFFF
...
because OnigCodePoint will be used as 32bit signed int.
Masking by 0x7FFFFFFF is ok on GB18030;
Minumum 4bytes character is 0x81308130.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-01 18:29:08 +00:00
naruse
ccb61351ea
* rational.c (string_to_r_internal): use rb_isdigit.
...
* marshal.c (long_toobig): use %zd.
* ruby.c (set_arg0): move unused variable definition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-01 18:23:10 +00:00
naruse
9256f94d9a
* insns.def (DEFINE_INSN): subtract of pointers is ptrdiff_t.
...
this is not int on 64bit system.
* vm_dump.c (control_frame_dump): ditto.
* vm_dump.c (stack_dump_each): ditto.
* vm_dump.c (debug_print_register): ditto.
* vm_dump.c (debug_print_pre): ditto.
* transcode.c (str_transcode): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-01 03:23:50 +00:00
akr
cf0109cff7
* test/ruby/envutil.rb (assert_normal_exit): show coredump status.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-01 01:32:54 +00:00
akr
afbf678a91
debug print removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-01 01:24:35 +00:00
knu
2b9f74d578
* README, README.ja: Add a note about default C flags.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 14:34:23 +00:00
akr
fa58f951cf
* gc.c (count_objects): clear given hash.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 14:03:23 +00:00
mame
c6bac86887
* test/ruby/test_regexp.rb: add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 11:28:49 +00:00
naruse
0682fab6a2
* enc/utf_16{be,le}.c (utf16{be,le}_code_to_mbc):
...
fix codepoint to bytes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 10:14:38 +00:00
nobu
075530a685
* suppress warnings with -Wwrite-string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 09:28:20 +00:00
matz
1b039e2a92
* array.c (rb_ary_delete_if): should return enumerator if no block
...
is given. [ruby-dev:34901]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 09:27:42 +00:00
nobu
ccaed588cc
* Makefile.in, configure.in (warnflags): defaulted to -Wall
...
-Wno-parentheses with gcc. [ruby-dev:34810]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 06:58:11 +00:00
nobu
1a192e2b29
* include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t and
...
rb_thread_t from vm_core.h.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16713 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 06:17:45 +00:00
nobu
7981720812
* include/ruby/ruby.h: renamed include guard.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 05:55:34 +00:00
akr
17fe6a652f
* test/ruby/envutil.rb (assert_normal_exit): show pid when fail.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16711 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-31 03:03:24 +00:00
kazu
f76ee72013
* test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 14:56:56 +00:00
mame
c6c0d7671f
* test/ruby/test_regexp.rb: add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 13:47:54 +00:00
mame
76f2fc8b46
* test/ruby/test_signal.rb: add tests to achieve over 80% test
...
coverage of signal.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 13:42:23 +00:00
mame
bd9030438e
* signal.c (esignal_signo): fix SignalException#signo which returned
...
nil absolutely.
* signal.c (esignal_init): always prepend "SIG" to a string that is
returned by SignalException#signm.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 13:32:39 +00:00
mame
5e6fc71d96
* test/ruby/test_argf.rb: rename a conflicting method name.
...
* test/ruby/test_string.rb: ditto.
* test/ruby/test_io.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 13:18:17 +00:00
mame
e0a264a9ef
* compile.c (defined_expr): fix SEGV by defined?([1]).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 13:15:03 +00:00
nobu
6a734c810c
* common.mk (prelude.c): simply depends on PREP. [ruby-dev:34877]
...
* enc/make_encdb.rb, enc/trans/make_transdb.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 03:18:45 +00:00
nobu
df456060b9
* vm_core.h (struct rb_unblock_callback), thread.c
...
(set_unblock_function), thread_{pthread,win32}.c (native_sleep):
extracted from struct rb_thread_struct.
* thread.c (reset_unblock_function): not check interrupts at leaving
blocking region. [ruby-dev:34874]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 01:55:45 +00:00
nobu
1b63d7bc92
* vm_core.h (struct rb_unblock_callback), thread.c
...
(set_unblock_function), thread_{pthread,win32}.c (native_sleep):
extracted from struct rb_thread_struct.
* thread.c (reset_unblock_function): not check interrupts at leaving
blocking region. [ruby-dev:34874]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 01:52:38 +00:00
nobu
b9ff5a2fd6
* ChangeLog: missing log for r16677.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16698 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-30 00:54:20 +00:00
naruse
d6025a3be4
* enc/utf_8.c: add UTF8-MAC (UTF-8-MAC).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16697 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 22:12:57 +00:00
knu
3a3e250975
* enum.c (enum_count, count_all_i, Init_Enumerable),
...
array.c (rb_ary_count): If no argument or block is given, count
the number of all elements.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 19:18:54 +00:00
knu
cd5eb03b58
* ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand):
...
Int should be enough here.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 18:15:50 +00:00
knu
2745d527b3
* ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand),
...
ext/openssl/ossl_pkey_dh.c (ossl_dh_s_generate)
(ossl_dh_initialize),
ext/openssl/ossl_pkey_dsa.c (ossl_dsa_s_generate),
ext/openssl/ossl_rand.c (ossl_rand_bytes)
(ossl_rand_pseudo_bytes, ossl_rand_egd_bytes),
ext/openssl/ossl_x509store.c (ossl_x509stctx_set_error): Do not
use FIX2INT() without checking the value type. Use NUM2INT()
instead; found by akr in [ruby-dev:34890].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 17:41:56 +00:00
mame
9df121034a
* signal.c (esignal_init): handle a non-integer argument correctly,
...
allowing SignalException.new(:INT).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16688 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 17:08:48 +00:00
mame
1f97d48800
* test/ruby/test_regexp.rb: add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 16:00:49 +00:00
mame
595ad416f3
* test/ruby/test_require.rb: add a test for load with wrap flag, to
...
achieve 100% test coverage of eval_jump.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16686 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 13:51:52 +00:00
knu
1e90c8ceb3
Fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 13:50:59 +00:00
knu
256edc39b0
Fix: nitem == count {|i| !i.nil?}
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 13:49:15 +00:00
mame
88c1862edb
* test/ruby/test_argf.rb: new tests for ARGF, to achieve over 85% test
...
coverage of file.c.
* test/ruby/test_io.rb: add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 13:48:54 +00:00
mame
47cc870a5a
remove a compile error.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 13:44:29 +00:00
mame
8fefe64adc
* io.c (argf_readchar): raise EOFError, synchronizing IO#readchar.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 13:42:20 +00:00
mame
17248a467e
* io.c (argf_external_encoding, argf_internal_encoding): fix SEGV by
...
ARGF.external_encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16680 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 13:30:09 +00:00
nobu
441be3ca06
* ext/zlib/extconf.rb: search zlib1, and regard mswin32 later than VC6
...
as WIN32. [ruby-core:16984]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29 08:52:31 +00:00
knu
8f706b2d44
* array.c (rb_ary_nitems, Init_Array): Axe Array#nitems().
...
cf. [ruby-dev:34676]-[ruby-dev:34713]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16675 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 09:12:28 +00:00
nobu
e2db8af8a3
* ext/purelib.rb: get rid of recent feature. [ruby-dev:34864]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 09:10:50 +00:00
nobu
a9396fd580
* win32/mkexports.rb (Exports#objdump, Exports#each_line): extracted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16669 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 08:50:41 +00:00
nobu
23c2cf545c
* Makefile.in (MKPREP): appended $(RBCONFIG).
...
* common.mk (enc.mk, prelude.c): not depend on $(RBCONFIG) on mswin32
to get of compiling twice each time.
* win32/Makefile.sub (prelude.c): not depend on $(PREP).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 08:41:52 +00:00
usa
72eb7e2a41
* win32/mkexports.rb (Exports::Mswin#each_export): speed up.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 08:37:37 +00:00
knu
fbf3e22a3d
* array.c (rb_ary_slice_bang): Call rb_ary_modify_check() at the
...
beginning. [rubyspec]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 07:52:34 +00:00
knu
d27c31e041
* lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler#do_GET):
...
Set the HTTP status code to 302 if a Location header field is
present and the status code is not valid as a client
redirection. cf. RFC 3875 6.2.3, 6.2.4.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 07:13:04 +00:00
usa
22088e3423
* enc/trans/japanese.c (to_SHIFT_JIS_EF_infos): typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 06:54:18 +00:00
nobu
1dc20d9d15
* io.c (rb_getc): same as rb_read_check.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16660 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 06:32:10 +00:00