diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2024-05-26 14:09:38 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2024-05-26 14:09:38 (GMT) |
commit | aa867f0e20366ad5b99eacd97c1c74fdcaefd9d1 (patch) | |
tree | d061081fc6918174fe2cb762c0d00bec4a78584d /win | |
parent | 2344d183fb312f1ab729c514ed3b0b004fc6768a (diff) | |
parent | 2dffc618654b839434b24c65b65e8c479512fe31 (diff) | |
download | tcl-aa867f0e20366ad5b99eacd97c1c74fdcaefd9d1.zip tcl-aa867f0e20366ad5b99eacd97c1c74fdcaefd9d1.tar.gz tcl-aa867f0e20366ad5b99eacd97c1c74fdcaefd9d1.tar.bz2 |
Merge 8.7
Diffstat (limited to 'win')
-rw-r--r-- | win/tclWinChan.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/win/tclWinChan.c b/win/tclWinChan.c index 4c08464..248ca5b 100644 --- a/win/tclWinChan.c +++ b/win/tclWinChan.c @@ -814,21 +814,6 @@ CombineDwords( return converter.QuadPart; } -static inline void -StoreElementInDict( - Tcl_Obj *dictObj, - const char *name, - Tcl_Obj *valueObj) -{ - /* - * We assume that the dict is being built fresh and that there's never any - * duplicate keys. - */ - - Tcl_Obj *nameObj = Tcl_NewStringObj(name, TCL_INDEX_NONE); - Tcl_DictObjPut(NULL, dictObj, nameObj, valueObj); -} - static inline time_t ToCTime( FILETIME fileTime) /* UTC time */ @@ -891,7 +876,7 @@ StatOpenFile( */ TclNewObj(dictObj); -#define STORE_ELEM(name, value) StoreElementInDict(dictObj, name, value) +#define STORE_ELEM(name, value) TclDictPut(NULL, dictObj, name, value) STORE_ELEM("dev", Tcl_NewWideIntObj((long) dev)); STORE_ELEM("ino", Tcl_NewWideIntObj((long long) inode)); |