diff options
| author | dkf <donal.k.fellows@manchester.ac.uk> | 2024-05-26 13:19:43 (GMT) |
|---|---|---|
| committer | dkf <donal.k.fellows@manchester.ac.uk> | 2024-05-26 13:19:43 (GMT) |
| commit | 85d98f92fd33696034aab9f92955dc12ea3972ee (patch) | |
| tree | 7f001c238f93c5f63e92ad456786dc0f89e6b425 /unix/tclUnixChan.c | |
| parent | 845ff1ddf732887fc40128ce9ff980c5524b26d8 (diff) | |
| parent | dc83b7dd6cf2ac488c5bf8d4756cd4490da2af28 (diff) | |
| download | tcl-85d98f92fd33696034aab9f92955dc12ea3972ee.zip tcl-85d98f92fd33696034aab9f92955dc12ea3972ee.tar.gz tcl-85d98f92fd33696034aab9f92955dc12ea3972ee.tar.bz2 | |
merge 8.6
Diffstat (limited to 'unix/tclUnixChan.c')
| -rw-r--r-- | unix/tclUnixChan.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/unix/tclUnixChan.c b/unix/tclUnixChan.c index 238c3d5..ac9fe0c 100644 --- a/unix/tclUnixChan.c +++ b/unix/tclUnixChan.c @@ -636,21 +636,6 @@ FileGetHandleProc( *---------------------------------------------------------------------- */ -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, -1); - Tcl_DictObjPut(NULL, dictObj, nameObj, valueObj); -} - static inline const char * GetTypeFromMode( int mode) @@ -700,7 +685,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) statBuf.st_dev)); STORE_ELEM("ino", Tcl_NewWideIntObj((Tcl_WideInt) statBuf.st_ino)); |
