OLD | NEW |
1 /* C-based Tracer for Coverage. */ | 1 /* C-based Tracer for Coverage. */ |
2 | 2 |
3 #include "Python.h" | 3 #include "Python.h" |
4 #include "compile.h" /* in 2.3, this wasn't part of Python.h */ | 4 #include "compile.h" /* in 2.3, this wasn't part of Python.h */ |
5 #include "eval.h" /* or this. */ | 5 #include "eval.h" /* or this. */ |
6 #include "structmember.h" | 6 #include "structmember.h" |
7 #include "frameobject.h" | 7 #include "frameobject.h" |
8 | 8 |
9 /* Compile-time debugging helpers */ | 9 /* Compile-time debugging helpers */ |
10 #undef WHAT_LOG /* Define to log the WHAT params in the trace function.
*/ | 10 #undef WHAT_LOG /* Define to log the WHAT params in the trace function.
*/ |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
721 CTracerType.tp_new = PyType_GenericNew; | 721 CTracerType.tp_new = PyType_GenericNew; |
722 if (PyType_Ready(&CTracerType) < 0) { | 722 if (PyType_Ready(&CTracerType) < 0) { |
723 return; | 723 return; |
724 } | 724 } |
725 | 725 |
726 Py_INCREF(&CTracerType); | 726 Py_INCREF(&CTracerType); |
727 PyModule_AddObject(mod, "CTracer", (PyObject *)&CTracerType); | 727 PyModule_AddObject(mod, "CTracer", (PyObject *)&CTracerType); |
728 } | 728 } |
729 | 729 |
730 #endif /* Py3k */ | 730 #endif /* Py3k */ |
OLD | NEW |