summaryrefslogtreecommitdiffstats
path: root/win/tclWinChan.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-20 13:49:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2024-03-20 13:49:02 (GMT)
commitae22ee577e1296427b927dda75f49560f6256c60 (patch)
tree41badbabc8140d865699b5f639cd4c53edbe3851 /win/tclWinChan.c
parenta72c1f969cba896ca61001393f0f7b74fb52e194 (diff)
parenta9b046b5bd7c666a406a17cbb0d86a2842091bac (diff)
downloadtcl-ae22ee577e1296427b927dda75f49560f6256c60.zip
tcl-ae22ee577e1296427b927dda75f49560f6256c60.tar.gz
tcl-ae22ee577e1296427b927dda75f49560f6256c60.tar.bz2
Few more spacing/formatting tweaks
Diffstat (limited to 'win/tclWinChan.c')
-rw-r--r--win/tclWinChan.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index afd5de1..73b61ab 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -781,7 +781,7 @@ FileGetHandleProc(
return TCL_ERROR;
}
- *handlePtr = (void *) infoPtr->handle;
+ *handlePtr = (void *)infoPtr->handle;
return TCL_OK;
}
@@ -826,7 +826,7 @@ StoreElementInDict(
* duplicate keys.
*/
- Tcl_Obj *nameObj = Tcl_NewStringObj(name, -1);
+ Tcl_Obj *nameObj = Tcl_NewStringObj(name, TCL_INDEX_NONE);
Tcl_DictObjPut(NULL, dictObj, nameObj, valueObj);
}
@@ -910,9 +910,9 @@ StatOpenFile(
* Anything else and we definitely couldn't have got here anyway.
*/
if (attr & FILE_ATTRIBUTE_DIRECTORY) {
- STORE_ELEM("type", Tcl_NewStringObj("directory", -1));
+ STORE_ELEM("type", Tcl_NewStringObj("directory", TCL_INDEX_NONE));
} else {
- STORE_ELEM("type", Tcl_NewStringObj("file", -1));
+ STORE_ELEM("type", Tcl_NewStringObj("file", TCL_INDEX_NONE));
}
#undef STORE_ELEM
@@ -1194,7 +1194,7 @@ TclpOpenFileChannel(
"couldn't open \"%s\": bad file type",
TclGetString(pathPtr)));
Tcl_SetErrorCode(interp, "TCL", "VALUE", "CHANNEL", "BAD_TYPE",
- (void *)NULL);
+ (char *)NULL);
break;
}