diff options
| author | sebres <sebres@users.sourceforge.net> | 2024-05-13 10:35:54 (GMT) |
|---|---|---|
| committer | sebres <sebres@users.sourceforge.net> | 2024-05-13 10:35:54 (GMT) |
| commit | 2feca00ec7abd9c0a111160fa041dac7616a1365 (patch) | |
| tree | 57bc8b99e317a7c1db9ef016cef7fecd6f515c4a | |
| parent | 897d057168f712735f662742168e1cdb07adbfa1 (diff) | |
| parent | ce16d3c26c3df899a804f016210e63bddd4064b8 (diff) | |
| download | tcl-2feca00ec7abd9c0a111160fa041dac7616a1365.zip tcl-2feca00ec7abd9c0a111160fa041dac7616a1365.tar.gz tcl-2feca00ec7abd9c0a111160fa041dac7616a1365.tar.bz2 | |
merge 8.7 (interim fix for [9889f96f4da77e3b])
| -rw-r--r-- | library/init.tcl | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/library/init.tcl b/library/init.tcl index 1209619..7190e95 100644 --- a/library/init.tcl +++ b/library/init.tcl @@ -109,17 +109,15 @@ if {[interp issafe]} { # Set up the 'clock' ensemble - proc clock args { + apply {{} { set cmdmap [dict create] foreach cmd {add clicks format microseconds milliseconds scan seconds} { dict set cmdmap $cmd ::tcl::clock::$cmd } namespace inscope ::tcl::clock [list namespace ensemble create -command \ - [uplevel 1 [list ::namespace origin [::lindex [info level 0] 0]]] \ - -map $cmdmap] + ::clock -map $cmdmap] ::tcl::unsupported::clock::configure -init-complete - uplevel 1 [info level 0] - } + }} } # Conditionalize for presence of exec. |
