summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2024-06-14 18:44:09 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2024-06-14 18:44:09 (GMT)
commitfb74fa4d32a761402939c6c0343c205d05433b95 (patch)
treef779bdbb1b12fb1be7a1218415cb5b4bf6539474
parentdfca368a1b0dd186d6c6f410fc4fd7a69582b876 (diff)
downloadtcl-fb74fa4d32a761402939c6c0343c205d05433b95.zip
tcl-fb74fa4d32a761402939c6c0343c205d05433b95.tar.gz
tcl-fb74fa4d32a761402939c6c0343c205d05433b95.tar.bz2
Fix non-standard indentation pattern
-rw-r--r--generic/tclListObj.c5
-rw-r--r--generic/tclScan.c14
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;