summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2017-03-17 12:51:53 (GMT)
committerdgp <dgp@users.sourceforge.net>2017-03-17 12:51:53 (GMT)
commitb8d35358ad810f6be098bcebb9a431b7fcbdf7a8 (patch)
treef67519530b2ee952335022154250f726972d334b /library
parentdaac4e5d3412030256d30b357bd455dbfa09630f (diff)
parentd287c6c8b0efb0e056f86257161620015ae9e6a2 (diff)
downloadtcl-b8d35358ad810f6be098bcebb9a431b7fcbdf7a8.zip
tcl-b8d35358ad810f6be098bcebb9a431b7fcbdf7a8.tar.gz
tcl-b8d35358ad810f6be098bcebb9a431b7fcbdf7a8.tar.bz2
merge 8.6
Diffstat (limited to 'library')
-rw-r--r--library/init.tcl11
1 files changed, 3 insertions, 8 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 0437412..471a9d8 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -169,13 +169,7 @@ if {[interp issafe]} {
namespace eval ::tcl::clock [list variable TclLibDir $::tcl_library]
- proc clock args {
- namespace eval ::tcl::clock [list namespace ensemble create -command \
- [uplevel 1 [list namespace origin [lindex [info level 0] 0]]] \
- -subcommands {
- add clicks format microseconds milliseconds scan seconds
- }]
-
+ proc ::tcl::initClock {} {
# Auto-loading stubs for 'clock.tcl'
foreach cmd {add format scan} {
@@ -186,8 +180,9 @@ if {[interp issafe]} {
}
}
- return [uplevel 1 [info level 0]]
+ rename ::tcl::initClock {}
}
+ ::tcl::initClock
}
# Conditionalize for presence of exec.