summaryrefslogtreecommitdiffstats
path: root/generic/tclExecute.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2024-03-19 17:09:30 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2024-03-19 17:09:30 (GMT)
commit3ba2524ad4dcbada77fd5079cb69007cdea2a5e9 (patch)
treee6fdb6985952e104004323a8b1172733b8f33abf /generic/tclExecute.c
parentd93e68c4e796434fb11ea9c067c73dbb483fd6dd (diff)
downloadtcl-3ba2524ad4dcbada77fd5079cb69007cdea2a5e9.zip
tcl-3ba2524ad4dcbada77fd5079cb69007cdea2a5e9.tar.gz
tcl-3ba2524ad4dcbada77fd5079cb69007cdea2a5e9.tar.bz2
more spacing/formatting tweaks
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r--generic/tclExecute.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c
index ac27a87..f4c223c 100644
--- a/generic/tclExecute.c
+++ b/generic/tclExecute.c
@@ -361,9 +361,9 @@ VarHashCreateVar(
#define OBJ_AT_TOS *tosPtr
-#define OBJ_UNDER_TOS *(tosPtr-1)
+#define OBJ_UNDER_TOS tosPtr[-1]
-#define OBJ_AT_DEPTH(n) *(tosPtr-(n))
+#define OBJ_AT_DEPTH(n) tosPtr[-(n)]
#define CURR_DEPTH (tosPtr - initTosPtr)
@@ -379,8 +379,8 @@ VarHashCreateVar(
# define TRACE(a) \
while (traceInstructions) { \
fprintf(stdout, "%2" TCL_SIZE_MODIFIER "d: %2" TCL_T_MODIFIER "d (%" TCL_T_MODIFIER "d) %s ", iPtr->numLevels, \
- CURR_DEPTH, \
- (pc - codePtr->codeStart), \
+ CURR_DEPTH, \
+ (pc - codePtr->codeStart), \
GetOpcodeName(pc)); \
printf a; \
break; \
@@ -395,8 +395,8 @@ VarHashCreateVar(
# define TRACE_WITH_OBJ(a, objPtr) \
while (traceInstructions) { \
fprintf(stdout, "%2" TCL_SIZE_MODIFIER "d: %2" TCL_T_MODIFIER "d (%" TCL_T_MODIFIER "d) %s ", iPtr->numLevels, \
- CURR_DEPTH, \
- (pc - codePtr->codeStart), \
+ CURR_DEPTH, \
+ (pc - codePtr->codeStart), \
GetOpcodeName(pc)); \
printf a; \
TclPrintObject(stdout, objPtr, 30); \
@@ -450,15 +450,15 @@ VarHashCreateVar(
*/
#define GetNumberFromObj(interp, objPtr, ptrPtr, tPtr) \
- ((TclHasInternalRep((objPtr), &tclIntType)) \
+ ((TclHasInternalRep((objPtr), &tclIntType)) \
? (*(tPtr) = TCL_NUMBER_INT, \
- *(ptrPtr) = (void *) \
+ *(ptrPtr) = (void *) \
(&((objPtr)->internalRep.wideValue)), TCL_OK) : \
TclHasInternalRep((objPtr), &tclDoubleType) \
? (((isnan((objPtr)->internalRep.doubleValue)) \
? (*(tPtr) = TCL_NUMBER_NAN) \
: (*(tPtr) = TCL_NUMBER_DOUBLE)), \
- *(ptrPtr) = (void *) \
+ *(ptrPtr) = (void *) \
(&((objPtr)->internalRep.doubleValue)), TCL_OK) : \
(((objPtr)->bytes != NULL) && ((objPtr)->length == 0)) \
? TCL_ERROR : \
@@ -3123,7 +3123,7 @@ TEBCresume(
objResultPtr = OBJ_AT_TOS;
varPtr->value.objPtr = objResultPtr;
#ifndef TCL_COMPILE_DEBUG
- if (*(pc+pcAdjustment) == INST_POP) {
+ if (pc[pcAdjustment] == INST_POP) {
tosPtr--;
NEXT_INST_F((pcAdjustment+1), 0, 0);
}
@@ -3287,7 +3287,7 @@ TEBCresume(
goto gotError;
}
#ifndef TCL_COMPILE_DEBUG
- if (*(pc+pcAdjustment) == INST_POP) {
+ if (pc[pcAdjustment] == INST_POP) {
NEXT_INST_V((pcAdjustment+1), cleanup, 0);
}
#endif
@@ -3686,7 +3686,7 @@ TEBCresume(
doneIncr:
TRACE_APPEND(("%.30s\n", O2S(objResultPtr)));
#ifndef TCL_COMPILE_DEBUG
- if (*(pc+pcAdjustment) == INST_POP) {
+ if (pc[pcAdjustment] == INST_POP) {
NEXT_INST_V((pcAdjustment+1), cleanup, 0);
}
#endif
@@ -5009,7 +5009,7 @@ TEBCresume(
*/
#ifndef TCL_COMPILE_DEBUG
- if (*(pc+9) == INST_POP) {
+ if (pc[9] == INST_POP) {
NEXT_INST_F(10, 1, 0);
}
#endif
@@ -6993,7 +6993,7 @@ TEBCresume(
}
}
#ifndef TCL_COMPILE_DEBUG
- if (*(pc+9) == INST_POP) {
+ if (pc[9] == INST_POP) {
NEXT_INST_V(10, cleanup, 0);
}
#endif
@@ -7132,7 +7132,7 @@ TEBCresume(
}
}
#ifndef TCL_COMPILE_DEBUG
- if (*(pc+5) == INST_POP) {
+ if (pc[5] == INST_POP) {
NEXT_INST_F(6, 2, 0);
}
#endif