summaryrefslogtreecommitdiff
path: root/iseq.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-08 15:13:22 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-07-08 15:13:22 +0000
commit91c07a5ac67bc7dad114a84697f3abc32ed78318 (patch)
tree3a4428340bf02ec6500a8c79866b744ad0a31f9c /iseq.c
parent485754369101514e6230f4cd0a68922016f29b0e (diff)
* thread.c (rb_set_coverages, rb_reset_coverages): enable and disable
coverage measurement. * thread.c (rb_get_coverages): rename and move from vm.c. * vm.c (rb_vm_get_coverages): ditto. * iseq.c (prepare_iseq_build): ditto. * thread.c (clear_coverage): ditto. * parse.y (coverage): ditto. * ext/coverage/coverage.c: use above functions, add new method Coverage.start and fix rdoc . git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'iseq.c')
-rw-r--r--iseq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iseq.c b/iseq.c
index a239830..76783b9 100644
--- a/iseq.c
+++ b/iseq.c
@@ -194,8 +194,8 @@ prepare_iseq_build(rb_iseq_t *iseq,
iseq->coverage = Qfalse;
if (!GET_THREAD()->parse_in_eval) {
- extern VALUE rb_vm_get_coverages(void);
- VALUE coverages = rb_vm_get_coverages();
+ extern VALUE rb_get_coverages(void);
+ VALUE coverages = rb_get_coverages();
if (RTEST(coverages)) {
iseq->coverage = rb_hash_lookup(coverages, filename);
if (NIL_P(iseq->coverage)) iseq->coverage = Qfalse;