summaryrefslogtreecommitdiffstats
path: root/library/init.tcl
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2017-01-10 21:57:06 (GMT)
committersebres <sebres@users.sourceforge.net>2017-01-10 21:57:06 (GMT)
commita3433951b0a141acbb0fd911aefffcbd34e3b0b3 (patch)
tree5a5988ad852f160b1c5f5b28ffad0bcf3c73f143 /library/init.tcl
parentad284758d3b907711b2dd91776fc5f49652d7cb9 (diff)
downloadtcl-a3433951b0a141acbb0fd911aefffcbd34e3b0b3.zip
tcl-a3433951b0a141acbb0fd911aefffcbd34e3b0b3.tar.gz
tcl-a3433951b0a141acbb0fd911aefffcbd34e3b0b3.tar.bz2
1st try to rewrite clock in C
Diffstat (limited to 'library/init.tcl')
-rw-r--r--library/init.tcl28
1 files changed, 14 insertions, 14 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 544ea77..e6df12b 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -66,12 +66,12 @@ namespace eval tcl {
}
if {![interp issafe]} {
- variable Path [encoding dirs]
- set Dir [file join $::tcl_library encoding]
- if {$Dir ni $Path} {
+ variable Path [encoding dirs]
+ set Dir [file join $::tcl_library encoding]
+ if {$Dir ni $Path} {
lappend Path $Dir
encoding dirs $Path
- }
+ }
}
# TIP #255 min and max functions
@@ -171,14 +171,14 @@ if {[interp issafe]} {
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
- }]
+ [uplevel 1 [list namespace origin [lindex [info level 0] 0]]] \
+ -subcommands {
+ add clicks format microseconds milliseconds scan seconds
+ }]
# Auto-loading stubs for 'clock.tcl'
- foreach cmd {add format scan} {
+ foreach cmd {add format FreeScan} {
proc ::tcl::clock::$cmd args {
variable TclLibDir
source -encoding utf-8 [file join $TclLibDir clock.tcl]
@@ -600,12 +600,12 @@ proc auto_import {pattern} {
auto_load_index
foreach pattern $patternList {
- foreach name [array names auto_index $pattern] {
- if {([namespace which -command $name] eq "")
+ foreach name [array names auto_index $pattern] {
+ if {([namespace which -command $name] eq "")
&& ([namespace qualifiers $pattern] eq [namespace qualifiers $name])} {
- namespace eval :: $auto_index($name)
- }
- }
+ namespace eval :: $auto_index($name)
+ }
+ }
}
}