summaryrefslogtreecommitdiff
path: root/coverage/tracer.c
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-10-07 05:31:03 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-10-07 05:31:03 -0400
commit894bc33e4fd8aa9bc798ee1a968a6a06da5d5d48 (patch)
tree63e00ca93cfd03aa2c523635f5f1c486b23ecf69 /coverage/tracer.c
parent28711a2a525a2f46b8e1733d2d1a1ffaf9a4df15 (diff)
downloadpython-coveragepy-894bc33e4fd8aa9bc798ee1a968a6a06da5d5d48.tar.gz
Basic plumbing for a --branch option.
Diffstat (limited to 'coverage/tracer.c')
-rw-r--r--coverage/tracer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/tracer.c b/coverage/tracer.c
index b238922..c318e9e 100644
--- a/coverage/tracer.c
+++ b/coverage/tracer.c
@@ -41,6 +41,7 @@ typedef struct {
PyObject * should_trace;
PyObject * data;
PyObject * should_trace_cache;
+ PyObject * branch;
int started;
/* The index of the last-used entry in tracenames. */
int depth;
@@ -301,6 +302,9 @@ Tracer_members[] = {
{ "should_trace_cache", T_OBJECT, offsetof(Tracer, should_trace_cache), 0,
PyDoc_STR("Dictionary caching should_trace results.") },
+ { "branch", T_OBJECT, offsetof(Tracer, branch), 0,
+ PyDoc_STR("Should we trace branches?") },
+
{ NULL }
};