diff options
| author | dkf <donal.k.fellows@manchester.ac.uk> | 2024-03-19 14:56:45 (GMT) |
|---|---|---|
| committer | dkf <donal.k.fellows@manchester.ac.uk> | 2024-03-19 14:56:45 (GMT) |
| commit | c740da6bc26ac29aeb5b548f7e350fd15ec1f890 (patch) | |
| tree | bcfa89065ecea0a374bed505c235b77cba3db0a3 /generic/tclPathObj.c | |
| parent | 9e0fbf5ef34d910758ee6a09bbf91bb5ec8f58f4 (diff) | |
| download | tcl-c740da6bc26ac29aeb5b548f7e350fd15ec1f890.zip tcl-c740da6bc26ac29aeb5b548f7e350fd15ec1f890.tar.gz tcl-c740da6bc26ac29aeb5b548f7e350fd15ec1f890.tar.bz2 | |
Fix indentation/brace usage style issues
Diffstat (limited to 'generic/tclPathObj.c')
| -rw-r--r-- | generic/tclPathObj.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/generic/tclPathObj.c b/generic/tclPathObj.c index 249e399..9dc0583 100644 --- a/generic/tclPathObj.c +++ b/generic/tclPathObj.c @@ -276,8 +276,7 @@ TclFSNormalizeAbsolutePath( */ if (tclPlatform != TCL_PLATFORM_WINDOWS - && Tcl_FSGetPathType(linkObj) - == TCL_PATH_RELATIVE) { + && Tcl_FSGetPathType(linkObj) == TCL_PATH_RELATIVE) { /* * We need to follow this link which is relative * to retVal's directory. This means concatenating @@ -406,8 +405,9 @@ TclFSNormalizeAbsolutePath( Tcl_Size len; const char *path = Tcl_GetStringFromObj(retVal, &len); if (zipVolumeLen) { - if (len == (zipVolumeLen - 1)) + if (len == (zipVolumeLen - 1)) { needTrailingSlash = 1; + } } else { if (len == 2 && path[0] != 0 && path[1] == ':') { needTrailingSlash = 1; @@ -2593,9 +2593,8 @@ TclResolveTildePath( if (split == 1) { /* No user name specified -> current user */ - if (MakeTildeRelativePath( - interp, NULL, path[1] ? 2 + path : NULL, &resolvedPath) - != TCL_OK) { + if (MakeTildeRelativePath(interp, NULL, path[1] ? 2 + path : NULL, + &resolvedPath) != TCL_OK) { return NULL; } } else { @@ -2608,11 +2607,9 @@ TclResolveTildePath( expandedUser = Tcl_DStringValue(&userName); /* path[split] is / or \0 */ - if (MakeTildeRelativePath(interp, - expandedUser, - path[split] ? &path[split+1] : NULL, - &resolvedPath) - != TCL_OK) { + if (MakeTildeRelativePath(interp, expandedUser, + path[split] ? &path[split+1] : NULL, + &resolvedPath) != TCL_OK) { Tcl_DStringFree(&userName); return NULL; } |
