suke
7a05bfaaab
* ext/win32ole/win32ole.c (d2time): fix the bug of VT_DATE
...
to String conversion when negative value.
* test/win32ole/test_win32ole_variant.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17878 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 14:19:01 +00:00
akr
7d166d26a5
* lib/test/unit/testcase.rb: collect decendants of
...
Test::Unit::TestCase using inherited.
* lib/test/unit/autorunner.rb: don't use ObjectSpace.each_object.
* lib/test/unit/collector/dir.rb: ditto.
* lib/test/unit/collector/objectspace.rb: ditto.
[ruby-core:17126]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 13:19:24 +00:00
nobu
28b216ac45
* include/ruby/oniguruma.h (OnigEncoding): removed auxiliary_data.
...
* include/ruby/encoding.h (ENC_DUMMY_P): moved dummy encoding flag to
rb_encoding from Encoding instance.
* encoding.c (rb_encoding_list): list of Encoding instances.
* encoding.c (struct rb_encoding_entry): moved base encoding from
instance variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 11:44:05 +00:00
usa
75d3a3d0df
* numeric.c (check_uint, rb_num2uint, rb_fix2uint): proper check.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17870 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 08:52:51 +00:00
nobu
3c6df5c037
svn:eol-style LF
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17869 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 05:21:45 +00:00
nobu
62dc500faf
* lib/net/ftp.rb (Net::FTP#sendport): use divmod. [ruby-core:17557]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17868 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 05:17:25 +00:00
nari
5b72919469
* gc.c (garbage_collect_force): sweep is completely ended.
...
* gc.c (os_obj_of): invoke garbage_collect_force() when freelist none.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-04 02:18:17 +00:00
usa
f8ed3b245a
* numeric.c (rb_num2uint, rb_fix2uint): typo.
...
* ChangeLog: format.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17865 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 20:04:35 +00:00
svn
17df532792
2008-07-04
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17862 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 17:22:34 +00:00
usa
fc64f8c5fe
* numeric.c (check_uint, rb_num2uint): also needs checking negative
...
value. see [ruby-dev:33683]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 17:22:29 +00:00
mame
3643afcc45
* ext/coverage: add svn:ignore
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 14:40:11 +00:00
mame
ae3a03eb07
* include/ruby/intern.h: remove prototypes about coverage.
...
* iseq.c (prepare_iseq_build): add prototype.
* parse.y (coverage): ditto.
* thread.c (clear_coverage): ditto.
* thread.c (update_coverage): use rb_sourceline.
* thread.c (rb_get_coverages): rename and move to vm.c.
* vm.c (rb_vm_get_coverages): ditto.
* ext/coverage/coverage.c: add rdoc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 14:27:43 +00:00
akr
da1263d2ac
describe glibc version bit more accurate.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17858 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 13:16:43 +00:00
mame
f08581c7b6
* ext/coverage/coverage.c, ext/coverage/extconf.rb: eliminate
...
COVERAGE__ and introduce coverage.so instead. How to measure
coverage: (1) require "coverage.so", (2) require or load Ruby source
file, and (3) Coverage.result will return the same hash as COVERAGE__.
[ruby-dev:35324]
* thread.c (rb_enable_coverages): start coverage measurement by using
rb_add_event_hook.
* thread.c (rb_get_coverages): returns current results of coverage
measurement.
* include/ruby/intern.h: add prototype for above two functions.
* vm_core.h, vm.c: add field of coverages to rb_vm_t.
* insns.def (trace): remove special handling for COVERAGE__.
* iseq.c (prepare_iseq_build): switch COVERAGE__ to
rb_get_coverages().
* parse.y (coverage): ditto.
* thread.c (clear_coverage): ditto.
* lib/coverage.rb: use coverage.so instead of COVERAGE__.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 12:55:12 +00:00
mame
16519f1ff9
* thread.c (thread_initialize): NUM2INT returns long.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 12:21:11 +00:00
akr
55b95b0169
new file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 12:10:30 +00:00
nobu
1aa2d2976f
* eval.c (Init_eval): typo fixed in r17833.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17854 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 12:06:22 +00:00
suke
854d955393
* ext/win32ole/win32ole.c (Init_win32ole): remove duplicate line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 10:48:02 +00:00
akr
53329fb622
refine configure message of broken erfc of glibc-2.3 on IA64.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 08:50:23 +00:00
akr
f8348e1124
* configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch
...
on IA64 is broken. erfc(10000.0) aborts.
use missing/erf.c instead.
http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 07:22:06 +00:00
matz
3819f8d156
* lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of
...
'localhost.localdomain'. [ruby-dev:35333]
* lib/net/smtp.rb (Net::SMTP::SMTP.start): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-03 03:54:25 +00:00
nobu
f0816c0dff
* Makefile.in (SET_LC_MESSAGES): LC_MESSAGES must be C.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 22:06:05 +00:00
nobu
bb350b04e5
* eval.c (Init_eval), gc.c (Init_GC), proc.c (Init_Proc): freeze
...
messages of preallocated special exceptions also.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 22:02:58 +00:00
nobu
7f637ab96f
* gc.c (rb_during_gc): VALUE cache is irrelevant.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 19:39:33 +00:00
mame
f5e45d00eb
* regint.h (GET_ALIGNMENT_PAD_SIZE, ALIGNMENT_RIGHT): cast pointer to
...
uintptr_t instead of unsigned int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 16:45:05 +00:00
mame
104e841390
* sprintf.c: include ieeefp.h to refer isinf.
...
* ext/bigdecimal/bigdecimal.c: ditto.
* ext/json/ext/generator/generator.c: ditto.
* rational.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 16:24:11 +00:00
mame
ac6fd9384d
* missing/tgamma.c (tgamma): remove unused variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 16:02:52 +00:00
suke
b892e3dd1b
* ext/win32ole/win32ole.c: avoid creating Ruby object during
...
GC. thanks to arton <artonx AT yahoo.co.jp>. [ruby-dev:35313]
* test/win32ole/test_win32ole_event.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 15:35:04 +00:00
svn
d2926df775
2008-07-03
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 15:18:48 +00:00
suke
8519afcb41
* gc.c: add rb_during_gc(). based on a patch from arton <artonx AT
...
yahoo.co.jp> at [ruby-dev:35313].
* include/ruby/intern.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 15:18:44 +00:00
nari
5c72ffe769
format changelog.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 01:19:25 +00:00
nari
9f2208b40c
write changelog
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 01:07:12 +00:00
nari
8bccb5f266
*gc.c (gc_lazy_sweep) : use lazy sweep algorithm for response performance gain.
...
(garbage_collect_force) : mark and lazysweep invoke, after erasing all mark.
(GC_NOT_LAZY_SWEEP) : not lazy sweep flag. for debug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17788 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-02 00:49:10 +00:00
mame
9e2a51ccb6
* test/ruby/test_settracefunc.rb: fix expected traces for
...
RubyVM::FrozenCore's event and r17744.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 18:43:25 +00:00
ko1
9a61579c16
* compile.h, insns.def: reduce insn operand of "trace".
...
* include/ruby/ruby.h: add RUBY_EVENT_COVERAGE event.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 18:13:22 +00:00
ko1
ab109c36f1
* proc.c, vm.c: fix to refer next ruby level cfp to make binding.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 17:11:35 +00:00
usa
6d625e4b6e
* insns.def (trace): C99ism.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 16:59:20 +00:00
svn
47db28bc7b
2008-07-02
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 16:55:35 +00:00
mame
5874de95e8
* Add coverage measurement constant COVERAGE__. This constant is not
...
for casual use. Usage: (1) assign {} to COVERAGE__, (2) require or
load Ruby source file, and (3) COVERAGE__["sourcefilepath"] will
return an array whose elements represent number of executions per
line of source code.
* vm_core.h: add field of coverage array to iseq.
* iseq.c (prepare_iseq_build): ditto.
* insns.def (trace): update coverage array.
* parse.y (coverage): create and initialize coverage array.
* compile.h (ADD_TRACE): add trace instruction to update covearge
array.
* thread.c (clear_coverage): delete coverage array when forking.
Otherwise, double count of coverage may occur.
* lib/coverage.rb: sample coverage measurement tool.
* error.c: distinguish explicitly between parse_in_eval and
mild_compile_error.
* load.c: ditto.
* vm_eval.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 16:55:30 +00:00
mame
498324c5d3
* lib/test/unit/ui/console/testrunner.rb: prevent destructive modification to $0.
...
* test/rubygems/gemutilities.rb (build_rake_in): move from test_gem_ext_rake_builder.rb.
* test/rubygems/test_gem_ext_rake_builder.rb: ditto.
* test/rubygems/test_gem_installer.rb: override Gem.ruby and ENV["rake"].
* test/rubygems/test_gem_uninstaller.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 12:33:11 +00:00
ko1
807fbd6940
* compile.c, vm.c, insns.def: call FrozenCore.set_postexe method
...
instead to use "postexe" insn.
* id.c, id.h: add a prepared id for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 12:19:00 +00:00
shyouhei
1b62e5ec37
* lib/mkmf.rb (create_tmpsrc): we need to include COMMON_HEADERS,
...
namely inclusion of ruby.h, because _GNU_SOURCE is now defined
there (if any) and socket.so requires it on Linux systems.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 12:13:13 +00:00
shyouhei
982450e24f
* eval.c (rb_interrupt): trick to suppress GCC warning.
...
* sprintf.c (rb_str_format): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 11:59:50 +00:00
ko1
a056546f0d
* tool/instruction.rb: RubyVM is not module.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 11:46:48 +00:00
shyouhei
bf903214d5
* ext/digest/digest.c (rb_digest_instance_inspect): constified.
...
* variable.c (rb_path2class): field precision should have type int.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 10:36:22 +00:00
naruse
5b7dfb7c13
* enc/shift_jis.c (code_is_ctype): HALF WIDTH KATAKANA is
...
a character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 10:05:48 +00:00
shyouhei
0ef21e44e7
forgot to commit
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 09:50:30 +00:00
nobu
1316830179
* missing/vsnprintf.c (BSD__uqtoa): constified.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 08:56:37 +00:00
usa
40612c5bb5
* enc/make_encdb.h: always add ';' at the end of line.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 08:51:33 +00:00
nobu
5669377a57
* iseq.c (COMPILE_OPTION_FALSE), time.c (timegm_noleapsecond),
...
thread.c (eKillSignal, eTerminateSignal),
missing/vsnprintf.c (BSD_vfprintf): constified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-07-01 08:44:32 +00:00