diff options
author | dkf <dkf@noemail.net> | 2011-03-10 09:31:57 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2011-03-10 09:31:57 (GMT) |
commit | 6e96455cbb30c6c8811a0ff346039ed8cda3b6a9 (patch) | |
tree | b74fbaf07478b3a916755023109d8257208cc5f0 /generic/tclCompExpr.c | |
parent | add492f5bdf280226f846665b3f671d44cc0ace9 (diff) | |
download | tcl-6e96455cbb30c6c8811a0ff346039ed8cda3b6a9.zip tcl-6e96455cbb30c6c8811a0ff346039ed8cda3b6a9.tar.gz tcl-6e96455cbb30c6c8811a0ff346039ed8cda3b6a9.tar.bz2 |
MINOR: Formatting fixes, mainly to comments, so code better fits the style in
the Engineering Manual.
FossilOrigin-Name: 5cb634a1c1fc60d754c5b98a3d8760b06f21e777
Diffstat (limited to 'generic/tclCompExpr.c')
-rw-r--r-- | generic/tclCompExpr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/generic/tclCompExpr.c b/generic/tclCompExpr.c index 1d42b81..34deff7 100644 --- a/generic/tclCompExpr.c +++ b/generic/tclCompExpr.c @@ -1333,13 +1333,12 @@ ParseExpr( numBytes -= scanned; } /* main parsing loop */ - error: - /* * We only get here if there's been an error. Any errors that didn't get a * suitable parsePtr->errorType, get recorded as syntax errors. */ + error: if (parsePtr->errorType == TCL_PARSE_SUCCESS) { parsePtr->errorType = TCL_PARSE_SYNTAX; } @@ -1349,7 +1348,7 @@ ParseExpr( */ if (nodes != NULL) { - ckfree((char*) nodes); + ckfree((char *) nodes); } if (interp == NULL) { @@ -1361,7 +1360,6 @@ ParseExpr( Tcl_DecrRefCount(msg); } } else { - /* * Construct the complete error message. Start with the simple error * message, pulled from the interp result if necessary... |