Skip to content

Commit 89f823a

Browse files
committed
pullup r17967.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/win32-unicode-test@17968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 947ca1a commit 89f823a

File tree

18 files changed

+503
-226
lines changed

18 files changed

+503
-226
lines changed

ChangeLog

Lines changed: 110 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,112 @@
1+
Wed Jul 9 11:13:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
2+
3+
* lib/profiler.rb (Profiler__#print_profile): sort in the descending
4+
order of cumulative time.
5+
6+
Wed Jul 9 11:11:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
7+
8+
* dir.c (struct glob_args, rb_glob_caller, rb_glob2, push_pattern),
9+
(glob_brace): make consistent prototypes.
10+
11+
* dir.c (push_glob): set enc in the caller of rb_glob_caller as well
12+
as rb_glob2.
13+
14+
Wed Jul 9 09:12:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
15+
16+
* ext/nkf/nkf-utf8/nkf.c (options): use input_endian.
17+
18+
Wed Jul 9 01:38:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
19+
20+
* string.c (rb_str_succ): alphabets or numerics mutually enclosing
21+
non-alphanumeric characters can carry up. e.g., "1.999".succ should
22+
be "2.000".
23+
24+
Wed Jul 9 00:12:31 2008 Yusuke Endoh <mame@tsg.ne.jp>
25+
26+
* thread.c (rb_set_coverages, rb_reset_coverages): enable and disable
27+
coverage measurement.
28+
29+
* thread.c (rb_get_coverages): rename and move from vm.c.
30+
31+
* vm.c (rb_vm_get_coverages): ditto.
32+
33+
* iseq.c (prepare_iseq_build): ditto.
34+
35+
* thread.c (clear_coverage): ditto.
36+
37+
* parse.y (coverage): ditto.
38+
39+
* ext/coverage/coverage.c: use above functions, add new method
40+
Coverage.start and fix rdoc .
41+
42+
Tue Jul 8 23:02:35 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
43+
44+
* ext/win32ole/win32ole.c (find_default_source): bug fix when
45+
OLE object does not have default source interface.
46+
47+
* test/win32ole/test_win32ole_event.rb: ditto.
48+
49+
Tue Jul 8 22:56:23 2008 Yusuke Endoh <mame@tsg.ne.jp>
50+
51+
* thread.c (rb_enable_coverages): hide coverage array by setting 0 to
52+
klass during measurement.
53+
54+
* parse.y (coverage, yycompile0): ditto.
55+
56+
* iseq.c (prepare_iseq_build): use rb_hash_lookup instead of
57+
rb_hash_aref.
58+
59+
* thread.c (rb_coverage_result): restore klass of coverage array
60+
and return it.
61+
62+
* theaad.c (update_coverage): chcek whether its klass is 0.
63+
64+
Tue Jul 8 22:28:25 2008 Koichi Sasada <ko1@atdot.net>
65+
66+
* lib/debug.rb, lib/profile.rb: fix to use RubyVM.
67+
68+
* lib/rdoc/parsers/parse_c.rb: ditto.
69+
70+
Tue Jul 8 21:45:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
71+
72+
* vm.c (rb_vm_mark): mark the last element of special_exceptions.
73+
74+
Tue Jul 8 19:55:40 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
75+
76+
* ext/win32ole/win32ole.c (find_default_source): try to
77+
find COCLASS when WIN32OLE object is not COCLASS.
78+
79+
* test/win32ole/test_win32ole_event.rb: ditto
80+
81+
Tue Jul 8 13:38:22 2008 Koichi Sasada <ko1@atdot.net>
82+
83+
* compile.h: fix to skip inserting a trace insn.
84+
85+
Tue Jul 8 11:41:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
86+
87+
* dir.c: shoudn't use ruby object in globbing, because glob service
88+
routines are called before initializing ruby on some platforms (ex.
89+
windows).
90+
91+
Tue Jul 8 10:08:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
92+
93+
* dir.c (Next): use rb_enc_mbclen. [ruby-dev:35390]
94+
95+
Tue Jul 8 07:59:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
96+
97+
* dir.c (Next): use rb_enc_precise_mbclen.
98+
99+
Tue Jul 8 02:27:23 2008 NARUSE, Yui <naruse@ruby-lang.org>
100+
101+
* dir.c: preserve encoding of strings in glob and fnmatch.
102+
103+
* include/ruby/ruby.h: related changes.
104+
105+
Tue Jul 8 00:22:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
106+
107+
* string.c (rb_str_succ): limit carrying in an alphanumeric region if
108+
exists. [ruby-dev:35094]
109+
1110
Tue Jul 8 01:04:55 2008 NAKAMURA Usaku <usa@ruby-lang.org>
2111

3112
* ruby.c (proc_options, process_options): now opt->e_script is an array
@@ -64,7 +173,7 @@ Sun Jul 6 18:34:35 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
64173
Sun Jul 6 10:12:21 2008 Kouhei Sutou <kou@cozmixng.org>
65174

66175
* lib/test/unit/collector/objectspace.rb
67-
(Test::Unit::Collector::ObjectSpace::NAME): fix a typo.
176+
(Test::Unit::Collector::ObjectSpace::NAME): fix a typo.
68177

69178
Sun Jul 6 00:56:51 2008 Tanaka Akira <akr@fsij.org>
70179

compile.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,11 +164,14 @@ PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
164164

165165
#define ADD_TRACE(seq, line, event) \
166166
do { \
167-
if ((event) == RUBY_EVENT_LINE && iseq->coverage && RARRAY_PTR(iseq->coverage)[(line) - 1] == Qnil) { \
167+
if ((event) == RUBY_EVENT_LINE && iseq->coverage && \
168+
RARRAY_PTR(iseq->coverage)[(line) - 1] == Qnil) { \
168169
RARRAY_PTR(iseq->coverage)[(line) - 1] = INT2FIX(0); \
169170
ADD_INSN1(seq, line, trace, INT2FIX(RUBY_EVENT_COVERAGE)); \
170171
} \
171-
ADD_INSN1(seq, line, trace, INT2FIX(event)); \
172+
if (iseq->compile_data->option->trace_instruction) { \
173+
ADD_INSN1(seq, line, trace, INT2FIX(event)); \
174+
} \
172175
}while(0);
173176

174177
/* add label */

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy