diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-08 15:13:22 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-08 15:13:22 +0000 |
commit | 91c07a5ac67bc7dad114a84697f3abc32ed78318 (patch) | |
tree | 3a4428340bf02ec6500a8c79866b744ad0a31f9c /parse.y | |
parent | 485754369101514e6230f4cd0a68922016f29b0e (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 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -4672,8 +4672,8 @@ debug_lines(const char *f) static VALUE coverage(const char *f, int n) { - 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) && RBASIC(coverages)->klass == 0) { VALUE fname = rb_str_new2(f); VALUE lines = rb_ary_new2(n); |