diff options
author | dgp <dgp@users.sourceforge.net> | 2002-06-20 00:11:43 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-06-20 00:11:43 (GMT) |
commit | 3ed36fbe1365d46b309f5dbc5d4eb93d6ca5c3e7 (patch) | |
tree | 9555026811ac4608aed5e173b98003a41981167c | |
parent | dd5ca3e8633f089cd66042b1ea81da55c5679088 (diff) | |
download | tcl-3ed36fbe1365d46b309f5dbc5d4eb93d6ca5c3e7.zip tcl-3ed36fbe1365d46b309f5dbc5d4eb93d6ca5c3e7.tar.gz tcl-3ed36fbe1365d46b309f5dbc5d4eb93d6ca5c3e7.tar.bz2 |
Added parens for clarity
-rw-r--r-- | generic/tclBasic.c | 7 | ||||
-rw-r--r-- | generic/tclExecute.c | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/generic/tclBasic.c b/generic/tclBasic.c index 32ff2d6..4e73386 100644 --- a/generic/tclBasic.c +++ b/generic/tclBasic.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclBasic.c,v 1.60 2002/06/17 22:52:51 hobbs Exp $ + * RCS: @(#) $Id: tclBasic.c,v 1.61 2002/06/20 00:11:43 dgp Exp $ */ #include "tclInt.h" @@ -2985,7 +2985,8 @@ TclEvalObjvInternal(interp, objc, objv, command, length, flags) traceCode = TclCheckInterpTraces(interp, command, length, cmdPtr, code, TCL_TRACE_ENTER_EXEC, objc, objv); } - if (cmdPtr->flags & CMD_HAS_EXEC_TRACES && traceCode == TCL_OK) { + if ((cmdPtr->flags & CMD_HAS_EXEC_TRACES) + && (traceCode == TCL_OK)) { traceCode = TclCheckExecutionTraces(interp, command, length, cmdPtr, code, TCL_TRACE_ENTER_EXEC, objc, objv); } @@ -3019,7 +3020,7 @@ TclEvalObjvInternal(interp, objc, objv, command, length, flags) /* * Call 'leave' command traces */ - if (cmdPtr->flags & CMD_HAS_EXEC_TRACES && traceCode == TCL_OK) { + if ((cmdPtr->flags & CMD_HAS_EXEC_TRACES) && (traceCode == TCL_OK)) { traceCode = TclCheckExecutionTraces(interp, command, length, cmdPtr, code, TCL_TRACE_LEAVE_EXEC, objc, objv); } diff --git a/generic/tclExecute.c b/generic/tclExecute.c index bfa83fd..c1a7a2c 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclExecute.c,v 1.73 2002/06/19 16:28:58 msofer Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.74 2002/06/20 00:11:43 dgp Exp $ */ #include "tclInt.h" @@ -1331,7 +1331,7 @@ TclExecuteByteCode(interp, codePtr) } else { Command *cmdPtr; cmdPtr = (Command *) Tcl_GetCommandFromObj(interp, objv[0]); - if (cmdPtr != NULL && cmdPtr->flags & CMD_HAS_EXEC_TRACES) { + if ((cmdPtr != NULL) && (cmdPtr->flags & CMD_HAS_EXEC_TRACES)) { bytes = GetSrcInfoForPc(pc, codePtr, &length); } } |