diff options
author | nijtmans <nijtmans> | 2010-06-14 13:48:25 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-06-14 13:48:25 (GMT) |
commit | c8ece8bdfbea565232ac0e16e221d17cb34ab218 (patch) | |
tree | ac5aca566d3f4a32668e610f1d2e6cd4ab390af6 /library/auto.tcl | |
parent | b4137879133fca1eebdd9ccaf159a36aa2c7eab8 (diff) | |
download | tcl-c8ece8bdfbea565232ac0e16e221d17cb34ab218.zip tcl-c8ece8bdfbea565232ac0e16e221d17cb34ab218.tar.gz tcl-c8ece8bdfbea565232ac0e16e221d17cb34ab218.tar.bz2 |
Spacing and style fixes
Diffstat (limited to 'library/auto.tcl')
-rw-r--r-- | library/auto.tcl | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/library/auto.tcl b/library/auto.tcl index c69b24d..7b96840 100644 --- a/library/auto.tcl +++ b/library/auto.tcl @@ -3,7 +3,7 @@ # utility procs formerly in init.tcl dealing with auto execution of commands # and can be auto loaded themselves. # -# RCS: @(#) $Id: auto.tcl,v 1.32 2009/11/19 11:59:53 dkf Exp $ +# RCS: @(#) $Id: auto.tcl,v 1.33 2010/06/14 13:48:25 nijtmans Exp $ # # Copyright (c) 1991-1993 The Regents of the University of California. # Copyright (c) 1994-1998 Sun Microsystems, Inc. @@ -25,7 +25,9 @@ proc auto_reset {} { if {[array exists ::auto_index]} { foreach cmdName [array names ::auto_index] { set fqcn [namespace which $cmdName] - if {$fqcn eq ""} {continue} + if {$fqcn eq ""} { + continue + } rename $fqcn {} } } @@ -132,8 +134,10 @@ proc tcl_findLibrary {basename version patch initScript enVarName varName} { } else { set norm [file normalize $i] } - if {[info exists seen($norm)]} { continue } - set seen($norm) "" + if {[info exists seen($norm)]} { + continue + } + set seen($norm) {} lappend uniqdirs $i } set dirs $uniqdirs @@ -202,7 +206,7 @@ proc auto_mkindex {dir args} { append index "# sets an element in the auto_index array, where the\n" append index "# element name is the name of a command and the value is\n" append index "# a script that loads the command.\n\n" - if {[llength $args] == 0} { + if {![llength $args]} { set args *.tcl } @@ -237,7 +241,7 @@ proc auto_mkindex_old {dir args} { append index "# sets an element in the auto_index array, where the\n" append index "# element name is the name of a command and the value is\n" append index "# a script that loads the command.\n\n" - if {[llength $args] == 0} { + if {![llength $args]} { set args *.tcl } foreach file [glob -- {*}$args] { |