diff options
author | Guido van Rossum <guido@python.org> | 1996-05-24 20:49:24 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-05-24 20:49:24 (GMT) |
commit | 8c1e150215b60855be125bb0ac7b3f2013440a1d (patch) | |
tree | 7725f9e695648531b3a1478ae348fa13c0427f4c /Python/ceval.c | |
parent | ded690fc351ecaf0f72429107fa726a9916ab0f6 (diff) | |
download | cpython-8c1e150215b60855be125bb0ac7b3f2013440a1d.zip cpython-8c1e150215b60855be125bb0ac7b3f2013440a1d.tar.gz cpython-8c1e150215b60855be125bb0ac7b3f2013440a1d.tar.bz2 |
Removed some done "to do" items.
Changed #ifdef DEBUG slightly.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index a0e5eb2..3797792 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -26,9 +26,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* XXX TO DO: XXX how to pass arguments to call_trace? - XXX access stuff can probably dereference NULL locals? - XXX need to extend apply() to be able to pass keyword args - XXX need to be able to call built-in functions with keyword args + XXX totally get rid of access stuff XXX speed up searching for keywords by using a dictionary XXX unknown keyword shouldn't raise KeyError? XXX document it! @@ -47,11 +45,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. /* Turn this on if your compiler chokes on the big switch: */ /* #define CASE_TOO_BIG 1 */ -/* Turn this on if you want to debug the interpreter: */ -/* (This can be on even if NDEBUG is defined) */ -/* #define DEBUG 1 */ - -#if defined(DEBUG) || !defined(NDEBUG) +#ifdef DEBUG /* For debugging the interpreter: */ #define LLTRACE 1 /* Low-level trace feature */ #define CHECKEXC 1 /* Double-check exception checking */ @@ -566,7 +560,7 @@ eval_code2(co, globals, locals, /* Extract opcode and argument */ -#ifdef DEBUG +#if defined(DEBUG) || defined(LLTRACE) f->f_lasti = INSTR_OFFSET(); #endif |