diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2024-06-14 18:44:09 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2024-06-14 18:44:09 (GMT) |
commit | fb74fa4d32a761402939c6c0343c205d05433b95 (patch) | |
tree | f779bdbb1b12fb1be7a1218415cb5b4bf6539474 | |
parent | dfca368a1b0dd186d6c6f410fc4fd7a69582b876 (diff) | |
download | tcl-fb74fa4d32a761402939c6c0343c205d05433b95.zip tcl-fb74fa4d32a761402939c6c0343c205d05433b95.tar.gz tcl-fb74fa4d32a761402939c6c0343c205d05433b95.tar.bz2 |
Fix non-standard indentation pattern
-rw-r--r-- | generic/tclListObj.c | 5 | ||||
-rw-r--r-- | generic/tclScan.c | 14 |
2 files changed, 8 insertions, 11 deletions
diff --git a/generic/tclListObj.c b/generic/tclListObj.c index 483426d..726a9db 100644 --- a/generic/tclListObj.c +++ b/generic/tclListObj.c @@ -498,9 +498,8 @@ ListLimitExceededError( Tcl_Interp *interp) { if (interp != NULL) { - Tcl_SetObjResult( - interp, - Tcl_NewStringObj("max length of a Tcl list exceeded", -1)); + Tcl_SetObjResult(interp, Tcl_NewStringObj( + "max length of a Tcl list exceeded", -1)); Tcl_SetErrorCode(interp, "TCL", "MEMORY", (char *)NULL); } return TCL_ERROR; diff --git a/generic/tclScan.c b/generic/tclScan.c index 4ffe177..b53b29c 100644 --- a/generic/tclScan.c +++ b/generic/tclScan.c @@ -358,17 +358,15 @@ ValidateFormat( /* Note ull >= 0 because of isdigit check above */ unsigned long long ull; ull = strtoull( - format - 1, (char **)&format, 10); /* INTL: "C" locale. */ + format - 1, (char **)&format, 10); /* INTL: "C" locale. */ /* Note >=, not >, to leave room for a nul */ if (ull >= TCL_SIZE_MAX) { - Tcl_SetObjResult( - interp, - Tcl_ObjPrintf("specified field width %" TCL_LL_MODIFIER - "u exceeds limit %" TCL_SIZE_MODIFIER "d.", - ull, - (Tcl_Size)TCL_SIZE_MAX-1)); + Tcl_SetObjResult(interp, Tcl_ObjPrintf( + "specified field width %" TCL_LL_MODIFIER + "u exceeds limit %" TCL_SIZE_MODIFIER "d.", + ull, (Tcl_Size)TCL_SIZE_MAX-1)); Tcl_SetErrorCode( - interp, "TCL", "FORMAT", "WIDTHLIMIT", (char *)NULL); + interp, "TCL", "FORMAT", "WIDTHLIMIT", (char *)NULL); goto error; } flags |= SCAN_WIDTH; |