summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2013-06-02 18:54:09 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2013-06-02 18:54:09 (GMT)
commit15425ace0bf82bc4a3b245c412b093a3e3cd48b6 (patch)
tree55a55b70aa1c47ffb6ad15fcc139e579f54548c3
parent7390940817e5488deafbd58693bb340d7f24c847 (diff)
downloadtcl-15425ace0bf82bc4a3b245c412b093a3e3cd48b6.zip
tcl-15425ace0bf82bc4a3b245c412b093a3e3cd48b6.tar.gz
tcl-15425ace0bf82bc4a3b245c412b093a3e3cd48b6.tar.bz2
Remove useless macro, use existing macro where it makes sense.
-rw-r--r--generic/tclAssembly.c4
-rw-r--r--generic/tclCompile.h3
2 files changed, 2 insertions, 5 deletions
diff --git a/generic/tclAssembly.c b/generic/tclAssembly.c
index 0fe50b3a..d1af8c6 100644
--- a/generic/tclAssembly.c
+++ b/generic/tclAssembly.c
@@ -650,7 +650,7 @@ BBEmitOpcode(
}
TclEmitInt1(op, envPtr);
- envPtr->atCmdStart = ((op) == INST_START_CMD);
+ TclUpdateAtCmdStart(op, envPtr);
BBUpdateStackReqs(bbPtr, tblIdx, count);
}
@@ -711,7 +711,7 @@ BBEmitInst1or4(
} else {
TclEmitInt4(param, envPtr);
}
- envPtr->atCmdStart = ((op) == INST_START_CMD);
+ TclUpdateAtCmdStart(op, envPtr);
BBUpdateStackReqs(bbPtr, tblIdx, count);
}
diff --git a/generic/tclCompile.h b/generic/tclCompile.h
index 8430da3..4b50710 100644
--- a/generic/tclCompile.h
+++ b/generic/tclCompile.h
@@ -1450,14 +1450,11 @@ MODULE_SCOPE Tcl_Obj *TclNewInstNameObj(unsigned char inst);
* of LOOP ranges is an interesting datum for debugging purposes, and that is
* what we compute now.
*
- * static int DeclareExceptionRange(CompileEnv *envPtr, int type);
* static int ExceptionRangeStarts(CompileEnv *envPtr, int index);
* static void ExceptionRangeEnds(CompileEnv *envPtr, int index);
* static void ExceptionRangeTarget(CompileEnv *envPtr, int index, LABEL);
*/
-#define DeclareExceptionRange(envPtr, type) \
- (TclCreateExceptRange((type), (envPtr)))
#define ExceptionRangeStarts(envPtr, index) \
(((envPtr)->exceptDepth++), \
((envPtr)->maxExceptDepth = \