summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-27 11:04:53 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-05-27 11:04:53 (GMT)
commit1019fc7dc38c97beab50b4151eaccf9de1174683 (patch)
tree744bc526ea038b9ed87bfa3f99bf2df661c0c104 /generic/tclCompile.c
parent85d98f92fd33696034aab9f92955dc12ea3972ee (diff)
downloadtcl-1019fc7dc38c97beab50b4151eaccf9de1174683.zip
tcl-1019fc7dc38c97beab50b4151eaccf9de1174683.tar.gz
tcl-1019fc7dc38c97beab50b4151eaccf9de1174683.tar.bz2
Eliminate TclPrintByteCodeObj()'s 'interp' argument, which is not used.
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c34
1 files changed, 12 insertions, 22 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 3e77231..1adb4d7 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -415,17 +415,17 @@ InstructionDesc const tclInstructionTable[] = {
* stktop; op1 is 1 for errors on problems, 0 otherwise */
{"dictExpand", 1, -1, 0, {OPERAND_NONE}},
- /* Probe into a dict and extract it (or a subdict of it) into
- * variables with matched names. Produces list of keys bound as
- * result. Part of [dict with].
+ /* Probe into a dict and extract it (or a subdict of it) into
+ * variables with matched names. Produces list of keys bound as
+ * result. Part of [dict with].
* Stack: ... dict path => ... keyList */
{"dictRecombineStk", 1, -3, 0, {OPERAND_NONE}},
- /* Map variable contents back into a dictionary in a variable. Part of
- * [dict with].
+ /* Map variable contents back into a dictionary in a variable. Part of
+ * [dict with].
* Stack: ... dictVarName path keyList => ... */
{"dictRecombineImm", 5, -2, 1, {OPERAND_LVT4}},
- /* Map variable contents back into a dictionary in the local variable
- * indicated by the LVT index. Part of [dict with].
+ /* Map variable contents back into a dictionary in the local variable
+ * indicated by the LVT index. Part of [dict with].
* Stack: ... path keyList => ... */
{"dictExists", 5, INT_MIN, 1, {OPERAND_UINT4}},
/* The top op4 words (min 1) are a key path into the dictionary just
@@ -655,7 +655,7 @@ InstructionDesc const tclInstructionTable[] = {
* Stack: ... varName list => ... listVarContents */
{"clockRead", 2, +1, 1, {OPERAND_UINT1}},
- /* Read clock out to the stack. Operand is which clock to read
+ /* Read clock out to the stack. Operand is which clock to read
* 0=clicks, 1=microseconds, 2=milliseconds, 3=seconds.
* Stack: ... => ... time */
@@ -896,12 +896,7 @@ TclSetByteCodeFromAny(
if (result == TCL_OK) {
(void) TclInitByteCodeObj(objPtr, &tclByteCodeType, &compEnv);
-#ifdef TCL_COMPILE_DEBUG
- if (tclTraceCompile >= 2) {
- TclPrintByteCodeObj(interp, objPtr);
- fflush(stdout);
- }
-#endif /* TCL_COMPILE_DEBUG */
+ TclDebugPrintByteCodeObj(objPtr);
}
TclFreeCompileEnv(&compEnv);
@@ -1361,12 +1356,7 @@ CompileSubstObj(
codePtr->localCachePtr = iPtr->varFramePtr->localCachePtr;
codePtr->localCachePtr->refCount++;
}
-#ifdef TCL_COMPILE_DEBUG
- if (tclTraceCompile >= 2) {
- TclPrintByteCodeObj(interp, objPtr);
- fflush(stdout);
- }
-#endif /* TCL_COMPILE_DEBUG */
+ TclDebugPrintByteCodeObj(objPtr);
}
return codePtr;
}
@@ -2489,7 +2479,7 @@ TclCompileTokens(
if (numCL >= maxNumCL) {
maxNumCL *= 2;
clPosition = (int *)ckrealloc(clPosition,
- maxNumCL * sizeof(int));
+ maxNumCL * sizeof(int));
}
clPosition[numCL] = clPos;
numCL ++;
@@ -2799,7 +2789,7 @@ PreventCycle(
*
* NOTE: [Bugs 3392070, 3389764] We make a copy based completely
* on the string value, and do not call Tcl_DuplicateObj() so we
- * can be sure we do not have any lingering cycles hiding in
+ * can be sure we do not have any lingering cycles hiding in
* the internalrep.
*/
int numBytes;