summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2022-10-25 12:23:26 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2022-10-25 12:23:26 (GMT)
commitd33fc57550e1921bfadb8fe4b90d7e55bf23e6f5 (patch)
tree27742d7331ddd32521928a0fddf392fefab08cc3 /generic/tclCompile.h
parentcb8b6e12a2cdd53e563f6b6ceec2a935cbe1a393 (diff)
downloadtcl-d33fc57550e1921bfadb8fe4b90d7e55bf23e6f5.zip
tcl-d33fc57550e1921bfadb8fe4b90d7e55bf23e6f5.tar.gz
tcl-d33fc57550e1921bfadb8fe4b90d7e55bf23e6f5.tar.bz2
Some more int -> Tcl_Size conversions, making the diff with the Tcl 9.0 header-files smaller
Diffstat (limited to 'generic/tclCompile.h')
-rw-r--r--generic/tclCompile.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/generic/tclCompile.h b/generic/tclCompile.h
index 2843ef5..b21ed7d 100644
--- a/generic/tclCompile.h
+++ b/generic/tclCompile.h
@@ -1212,7 +1212,6 @@ MODULE_SCOPE Tcl_Obj *TclNewInstNameObj(unsigned char inst);
MODULE_SCOPE int TclPushProcCallFrame(void *clientData,
Tcl_Interp *interp, int objc,
Tcl_Obj *const objv[], int isLambda);
-
/*
*----------------------------------------------------------------
@@ -1260,10 +1259,10 @@ MODULE_SCOPE int TclPushProcCallFrame(void *clientData,
#define TclCheckStackDepth(depth, envPtr) \
do { \
- int _dd = (depth); \
- if (_dd != (envPtr)->currStackDepth) { \
- Tcl_Panic("bad stack depth computations: is %i, should be %i", \
- (envPtr)->currStackDepth, _dd); \
+ size_t _dd = (depth); \
+ if (_dd != (size_t)(envPtr)->currStackDepth) { \
+ Tcl_Panic("bad stack depth computations: is %" TCL_Z_MODIFIER "u, should be %" TCL_Z_MODIFIER "u", \
+ (size_t)(envPtr)->currStackDepth, _dd); \
} \
} while (0)
@@ -1580,9 +1579,9 @@ MODULE_SCOPE int TclPushProcCallFrame(void *clientData,
* of LOOP ranges is an interesting datum for debugging purposes, and that is
* what we compute now.
*
- * static int ExceptionRangeStarts(CompileEnv *envPtr, int index);
- * static void ExceptionRangeEnds(CompileEnv *envPtr, int index);
- * static void ExceptionRangeTarget(CompileEnv *envPtr, int index, LABEL);
+ * static int ExceptionRangeStarts(CompileEnv *envPtr, Tcl_Size index);
+ * static void ExceptionRangeEnds(CompileEnv *envPtr, Tcl_Size index);
+ * static void ExceptionRangeTarget(CompileEnv *envPtr, Tcl_Size index, LABEL);
*/
#define ExceptionRangeStarts(envPtr, index) \
@@ -1641,7 +1640,7 @@ MODULE_SCOPE int TclPushProcCallFrame(void *clientData,
#define DefineLineInformation \
ExtCmdLoc *mapPtr = envPtr->extCmdMapPtr; \
- int eclIndex = mapPtr->nuloc - 1
+ Tcl_Size eclIndex = mapPtr->nuloc - 1
#define SetLineInformation(word) \
envPtr->line = mapPtr->loc[eclIndex].line[(word)]; \