summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
Diffstat (limited to 'win')
-rw-r--r--win/tclWinFCmd.c2
-rw-r--r--win/tclWinFile.c18
-rw-r--r--win/tclWinInit.c6
-rw-r--r--win/tclWinTest.c2
4 files changed, 14 insertions, 14 deletions
diff --git a/win/tclWinFCmd.c b/win/tclWinFCmd.c
index c0b83ce..5e258c0 100644
--- a/win/tclWinFCmd.c
+++ b/win/tclWinFCmd.c
@@ -236,7 +236,7 @@ DoRenameFile(
}
} else {
if ((dstAttr & FILE_ATTRIBUTE_DIRECTORY) == 0) {
- /*
+ /*
* MoveFileEx will actually allow this but that is not 9.0-
* behaved when emulating the Unix DoRenameFile.
*/
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index dd1c71b..85883d3 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -1525,7 +1525,7 @@ TclpGetUserHome(
}
}
if (winPathBuf) {
- result = Tcl_WCharToUtfDString(winPathBuf,
+ result = Tcl_WCharToUtfDString(winPathBuf,
winPathSize-1, bufferPtr);
rc = 1;
}
@@ -3493,10 +3493,10 @@ TclWinGetFullPathName(
* equal to capacity, the buffer was too small.
*/
if (numChars < capacity) {
- if (filePartPtrPtr != NULL) {
- *filePartPtrPtr = filePartPtr;
- }
- return fullPathPtr;
+ if (filePartPtrPtr != NULL) {
+ *filePartPtrPtr = filePartPtr;
+ }
+ return fullPathPtr;
}
/*
@@ -3507,12 +3507,12 @@ TclWinGetFullPathName(
fullPathPtr = TclWinPathResize(winPathPtr, capacity);
numChars = GetFullPathNameW(pathPtr, capacity, fullPathPtr, &filePartPtr);
if (numChars == 0 || numChars >= capacity) {
- /* Failed or still too small (shouldn't happen). */
+ /* Failed or still too small (shouldn't happen). */
goto errorReturn;
}
if (filePartPtrPtr != NULL) {
- *filePartPtrPtr = filePartPtr;
+ *filePartPtrPtr = filePartPtr;
}
return fullPathPtr;
@@ -3563,7 +3563,7 @@ TclWinGetCurrentDirectory(
* equal to capacity, the buffer was too small.
*/
if (numChars < capacity) {
- return fullPathPtr;
+ return fullPathPtr;
}
/*
@@ -3574,7 +3574,7 @@ TclWinGetCurrentDirectory(
fullPathPtr = TclWinPathResize(winPathPtr, capacity);
numChars = GetCurrentDirectoryW(capacity, fullPathPtr);
if (numChars == 0 || numChars >= capacity) {
- /* Failed or still too small (shouldn't happen). */
+ /* Failed or still too small (shouldn't happen). */
goto errorReturn;
}
diff --git a/win/tclWinInit.c b/win/tclWinInit.c
index 4823663..8e8a9df 100644
--- a/win/tclWinInit.c
+++ b/win/tclWinInit.c
@@ -104,7 +104,7 @@ TclGetWinInfoOnce(
}
tclWinInfo.longPathsSupported = 0;
- if (tclWinInfo.osVersion.dwMajorVersion > 10 ||
+ if (tclWinInfo.osVersion.dwMajorVersion > 10 ||
(tclWinInfo.osVersion.dwMajorVersion == 10 &&
tclWinInfo.osVersion.dwBuildNumber >= 14393)) {
dw = sizeof(tclWinInfo.longPathsSupported);
@@ -871,7 +871,7 @@ TclWinGetEnvironmentVariable(
* equal to capacity, the buffer was too small.
*/
if (numChars < capacity) {
- return fullPathPtr;
+ return fullPathPtr;
}
/*
@@ -882,7 +882,7 @@ TclWinGetEnvironmentVariable(
fullPathPtr = TclWinPathResize(winPathPtr, capacity);
numChars = GetEnvironmentVariableW(envName, fullPathPtr, capacity);
if (numChars == 0 || numChars >= capacity) {
- /* Failed or still too small (shouldn't happen). */
+ /* Failed or still too small (shouldn't happen). */
goto errorReturn;
}
diff --git a/win/tclWinTest.c b/win/tclWinTest.c
index 1608a1d..6446ef1 100644
--- a/win/tclWinTest.c
+++ b/win/tclWinTest.c
@@ -686,7 +686,7 @@ TestchmodCmd(
* Results:
* 1 if long path support is enabled, 0 if not.
*/
-static int
+static int
TestlongpathsettingCmd(
TCL_UNUSED(void *),
Tcl_Interp *interp,