diff options
author | nijtmans <nijtmans> | 2010-06-14 13:48:25 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-06-14 13:48:25 (GMT) |
commit | 0e72c9c6656401b476b0cf11c125d5bff87f8b93 (patch) | |
tree | ac5aca566d3f4a32668e610f1d2e6cd4ab390af6 /library/auto.tcl | |
parent | e16e1505cda7b4046f3080614042121bf8ce222f (diff) | |
download | tcl-0e72c9c6656401b476b0cf11c125d5bff87f8b93.zip tcl-0e72c9c6656401b476b0cf11c125d5bff87f8b93.tar.gz tcl-0e72c9c6656401b476b0cf11c125d5bff87f8b93.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] { |