summaryrefslogtreecommitdiffstats
path: root/win/tclWinFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-04-26 15:53:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-04-26 15:53:40 (GMT)
commitcd51753d86cde24e24f0fa1c6edf6821ba25d0aa (patch)
treed4ba6b39c3f40354edd6a8bf89eb6c5573528925 /win/tclWinFile.c
parentf227a5d1ff1c36d3bc5eca3f7378d5064d59d4eb (diff)
downloadtcl-cd51753d86cde24e24f0fa1c6edf6821ba25d0aa.zip
tcl-cd51753d86cde24e24f0fa1c6edf6821ba25d0aa.tar.gz
tcl-cd51753d86cde24e24f0fa1c6edf6821ba25d0aa.tar.bz2
More size_t -> Tcl_Size changes, which were missed before. Also (experimental) make the wrapper macro's produce compiler warnings is Tcl_Size is not used.
Diffstat (limited to 'win/tclWinFile.c')
-rw-r--r--win/tclWinFile.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index 0410356..bcd0920 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -921,7 +921,7 @@ TclpMatchInDirectory(
DWORD attr;
WIN32_FILE_ATTRIBUTE_DATA data;
- size_t len = 0;
+ Tcl_Size len = 0;
const char *str = Tcl_GetStringFromObj(norm, &len);
native = (const WCHAR *)Tcl_FSGetNativePath(pathPtr);
@@ -943,7 +943,7 @@ TclpMatchInDirectory(
WIN32_FIND_DATAW data;
const char *dirName; /* UTF-8 dir name, later with pattern
* appended. */
- size_t dirLength;
+ Tcl_Size dirLength;
int matchSpecialDots;
Tcl_DString ds; /* Native encoding of dir, also used
* temporarily for other things. */
@@ -2796,7 +2796,7 @@ TclpObjNormalizePath(
*/
Tcl_Obj *tmpPathPtr;
- size_t len;
+ Tcl_Size len;
tmpPathPtr = Tcl_NewStringObj(Tcl_DStringValue(&ds),
nextCheckpoint);
@@ -2885,7 +2885,7 @@ TclWinVolumeRelativeNormalize(
* also on drive C.
*/
- size_t cwdLen;
+ Tcl_Size cwdLen;
const char *drive = Tcl_GetStringFromObj(useThisCwd, &cwdLen);
char drive_cur = path[0];
@@ -3022,7 +3022,7 @@ TclNativeCreateNativeRep(
WCHAR *nativePathPtr = NULL;
const char *str;
Tcl_Obj *validPathPtr;
- size_t len;
+ Tcl_Size len;
WCHAR *wp;
if (TclFSCwdIsNative()) {