svn
a1c3a776e8
2008-06-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-23 15:12:38 +00:00
svn
6b20b1e464
2008-06-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-23 03:36:29 +00:00
svn
c6f664fbf2
2008-06-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 16:09:31 +00:00
eban
eedf67a8af
reverted
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 16:06:39 +00:00
svn
2712b68272
2008-06-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 16:06:03 +00:00
eban
00e6cbb0a8
reverted
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 16:01:41 +00:00
svn
15bb75646a
2008-06-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 16:00:41 +00:00
eban
b12d241ab0
reverted
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 16:00:02 +00:00
svn
88a0e3c0d4
2008-06-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 15:55:37 +00:00
eban
19861f925a
reverted
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 15:49:38 +00:00
svn
f977e38f3c
2008-06-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 15:45:20 +00:00
svn
8fc91349e9
2008-06-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-21 15:41:03 +00:00
matz
09f4a8643c
* ext/bigdecimal/lib/bigdecimal/jacobian.rb (Jacobian::dfdxi):
...
typo fixed (raize -> raise). [ruby-list:45101]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20 19:39:36 +00:00
ko1
af94c81302
* thread_win32.c (native_sleep): fix to decrement sleeper count.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19 15:19:38 +00:00
mame
33e5cfee7b
* test/etc/test_etc.rb: avoid infinite loop. [ruby-dev:35158]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18 15:34:46 +00:00
usa
fcf931c0e5
* dir.c (Init_Dir): dir_foreach() takes variable argument.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17 15:05:50 +00:00
naruse
aaf1b72873
* ext/syck/rubyext.c: add encoding header.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16 21:25:17 +00:00
ko1
9ead0d771b
* vm_core.h, thread.c: rename global_interpreter_lock to
...
global_vm_lock.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 16:48:02 +00:00
nobu
9b45b336ee
* vm_core.h (rb_vm_t), vm.c (rb_vm_mark): moved preallocated special
...
exceptions.
* eval.c (Init_eval), gc.c (Init_GC), proc.c (Init_Proc): freeze
preallocated special exceptions.
* eval.c (rb_longjmp): duplicate the thrown exception to set backtrace
if it was frozen.
* gc.c (rb_memerror): raise nomem_error without backtrace if failed to
make backtrace.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15 09:17:06 +00:00
nobu
4641b80166
* gc.c (ruby_gc_stress): moved to rb_objspace_t.
...
* gc.c (gc_stress_get, gc_stress_set): VM local attribute.
* signal.c (sigsegv): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17153 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 15:09:22 +00:00
matz
97c8c1fa0e
* enum.c (sort_by_i): use NODE_DOT2 instead of NODE_MEMO to avoid
...
extra calls to is_pointer_to_heap() in GC.
* enum.c (enum_zip): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-13 04:02:36 +00:00
nobu
1d09b69f62
* io.c (rb_io_reopen): clear read buffer.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-11 17:25:57 +00:00
ko1
ed4139e39b
* include/ruby/intern.h, proc.c: revert rb_proc_call() and
...
create rb_proc_call_with_block() instaed.
* include/ruby/ruby.h, eval_jump.c, thread.c, vm_insnhelper.c:
rb_blockptr should not be exposed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-10 16:33:51 +00:00
nobu
53ea4c0cbd
* include/ruby/encoding.h: not to use varargs.h since requiring C89.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-10 02:24:45 +00:00
knu
ecc1dedabb
* ext/zlib/zlib.c (rb_deflate_init_copy): Copy buffers as well.
...
[ruby-list:45018]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 17:35:41 +00:00
ko1
72ba13aa8e
* array.c, bignum.c, cont.c, dir.c, dln.c, encoding.c, enumerator.c,
...
enumerator.c (enumerator_allocate), eval_jump.c, file.c, hash.c,
io.c, load.c, pack.c, proc.c, random.c, re.c, ruby.c, st.c,
string.c, thread.c, thread_pthread.c, time.c, util.c, variable.c,
vm.c, gc.c:
allocated memory objects by xmalloc (ruby_xmalloc) should be
freed by xfree (ruby_xfree).
* ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c,
ext/gdbm/gdbm.c, ext/json/ext/parser/parser.c,
ext/json/ext/parser/unicode.c, ext/openssl/ossl_cipher.c,
ext/openssl/ossl_hmac.c, ext/openssl/ossl_pkey_ec.c,
ext/sdbm/init.c, ext/strscan/strscan.c, ext/zlib/zlib.c:
ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08 10:01:40 +00:00
usa
c7144179bb
* io.c (rb_open_file, rb_io_s_sysopen): fmode should be unsigned int.
...
fixed [ruby-dev:34979]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 16:26:05 +00:00
nobu
8471463a4a
* ext/iconv/iconv.c (iconv_iconv): no needs to initialize with Qnil
...
before rb_scan_args call.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 03:21:43 +00:00
mame
4a14d3c04b
* test/ruby/test_process.rb: add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 16:30:03 +00:00
nobu
a76288cfc7
* configure.in (CFLAGS, CXXFLAGS): include additional flags to
...
CFLAGS and CXXFLAGS while configuration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16800 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04 04:07:01 +00:00
mame
41a1a4ed76
* marshal.c (w_object): add a check for modification of array during
...
its dump.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-02 15:29:11 +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
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
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
naruse
3ab17047f5
* enc/trans/japanese.c: add workarround for Unicode to CP932.
...
U+2015->0x815C, U+2225->0x8161, U+FF0D->0x817C, U+FF3C->0x815F,
U+FF5E->0x8160, U+FFE0->0x8191, U+FFE1->0x8192, U+FFE2->0x81CA
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28 04:35:59 +00:00
usa
ea16f7dfc9
* file.c (BUFCHECK): wrong condition. [ruby-core:16921]
...
* file.c (file_expand_buf): shouldn't use buflen for length of string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27 03:07:55 +00:00
knu
49cd417578
* hash.c (env_each_value): Do not call env_values() twice.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-25 15:42:14 +00:00
ko1
59c061235f
* eval_method.c: renamed from vm_method.c. "vm_method.c" is included
...
by "vm.c".
* vm_eval.c: added. Some codes are moved from "eval.c"
* common.mk: fix for above changes.
* compile.c: make a vm_eval(0)
* eval.c, eval_error.c, eval_intern.h, eval_jump.c, proc.c, vm.c,
id.c, id.h, vm_core.h, vm_dump.c, vm_evalbody.c, vm_insnhelper.c,
blockinlining.c: fix for above changes. and do some refactoring.
this changes improve rb_yield() performance.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-24 17:50:17 +00:00
naruse
327515a95b
* transcode.c (rb_str_transcode): argc is 1, and argv is &to.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-23 23:15:14 +00:00
ko1
a45cd8a01c
* eval.c, eval_intern.h, include/ruby/intern.h, include/ruby/ruby.h,
...
vm.c, vm_core.h, vm_insnhelper.c: remove pointless "const".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-22 16:19:14 +00:00
ko1
4c094940aa
* insns.def, vm_insnhelper.c: specify "const".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-21 15:18:15 +00:00
naruse
95698ff2a4
* transcode.c, include/ruby/encodng.h (rb_str_transcode):
...
C API of encoding conversion for Ruby object.
VALUE rb_str_transcode(VALUE str, VALUE to).
* transcode.c (str_encode, str_encode_bang):
rename from rb_tr_transcode or rb_str_transcode_bang.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-20 16:37:13 +00:00
mame
2d9135f7a8
* parse.y (assignable_gen): when "self = 1" was evalueted, unnecessary
...
error message was output, which might cause null pointer access.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-19 16:14:30 +00:00
ko1
950ee3e0a6
* version.h: fix strange change by version.h update tool.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-19 05:33:45 +00:00
ko1
385f0e8af6
* vm.c, insns.def, eval.c, vm_insnhelper.c: fix CREF handling.
...
VM value stack frame of block contains cref information.
(dfp[-1] points CREF)
* compile.c, eval_intern.h, eval_method.c, load.c, proc.c,
vm_dump.h, vm_core.h: ditto.
* include/ruby/ruby.h, gc.c: remove T_VALUES because of above
changes.
* bootstraptest/test_eval.rb, test_knownbug.rb: move solved test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-19 03:08:50 +00:00
mame
a0e236f606
* pack.c (pack_pack): check errno to detect error of ruby_strtoul.
...
* pack.c (pack_unpack): ditto.
* test/ruby/test_pack.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-17 17:56:41 +00:00
matz
c39e8c6e85
* array.c (rb_ary_sort_bang): stop memory leak. [ruby-dev:34726]
...
* re.c (rb_reg_search): need to free allocated buffer in re_register.
* regexec.c (onig_region_new): more pedantic malloc check.
* regexec.c (onig_region_resize): ditto.
* regexec.c (STATE_CHECK_BUFF_INIT): ditto.
* regexec.c (onig_region_copy): use onig_region_resize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-16 18:27:01 +00:00
matz
f970ffedae
* math.c (to_flo): rb_Float() accepts even strings for input.
...
* complex.c (nucomp_to_f): fix wrong message.
* complex.c (nucomp_to_r): ditto.
* object.c (rb_Float): do not check NaN for error. NaN is a part
of valid float values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-16 04:17:45 +00:00
nobu
22361a3d1c
* file.c (file_expand_path): support for alternative data stream
...
and ignored trailing garbages of NTFS.
* file.c (rb_file_s_basename): ditto.
* file.c (rb_file_s_extname): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-15 06:34:02 +00:00