diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-06-14 07:37:36 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-06-14 07:37:36 (GMT) |
commit | 9dcac0dc2ebd0ff9db16ca5a532025a754fe702b (patch) | |
tree | e8549adefc6bd9b71aa4accadb657c414758a355 /library | |
parent | aaebb1c79e1e2cc24890642ed96b6c020bcebefc (diff) | |
parent | 0776c036bc35c367549578f6293956a80f20ac6e (diff) | |
download | tcl-9dcac0dc2ebd0ff9db16ca5a532025a754fe702b.zip tcl-9dcac0dc2ebd0ff9db16ca5a532025a754fe702b.tar.gz tcl-9dcac0dc2ebd0ff9db16ca5a532025a754fe702b.tar.bz2 |
more readable
Diffstat (limited to 'library')
-rw-r--r-- | library/dde/pkgIndex.tcl | 2 | ||||
-rw-r--r-- | library/platform/shell.tcl | 2 | ||||
-rwxr-xr-x | library/reg/pkgIndex.tcl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/library/dde/pkgIndex.tcl b/library/dde/pkgIndex.tcl index 5b4eae9..fef4f24 100644 --- a/library/dde/pkgIndex.tcl +++ b/library/dde/pkgIndex.tcl @@ -1,5 +1,5 @@ if {![package vsatisfies [package provide Tcl] 8.5]} return -if {[string compare [info sharedlibextension] .dll]} return +if {[info sharedlibextension] ne ".dll"} return if {[::tcl::pkgconfig get debug]} { package ifneeded dde 1.4.0 [list load [file join $dir tcldde14g.dll] dde] } else { diff --git a/library/platform/shell.tcl b/library/platform/shell.tcl index e0a129a..d37cdcd 100644 --- a/library/platform/shell.tcl +++ b/library/platform/shell.tcl @@ -187,7 +187,7 @@ proc ::platform::shell::TEMP {} { } } } - if {[string compare $channel ""]} { + if {$channel != ""} { return -code error "Failed to open a temporary file: $channel" } else { return -code error "Failed to find an unused temporary file name" diff --git a/library/reg/pkgIndex.tcl b/library/reg/pkgIndex.tcl index 067425f..f87d15c 100755 --- a/library/reg/pkgIndex.tcl +++ b/library/reg/pkgIndex.tcl @@ -1,5 +1,5 @@ if {![package vsatisfies [package provide Tcl] 8.5]} return -if {[string compare [info sharedlibextension] .dll]} return +if {[info sharedlibextension] ne ".dll"} return if {[::tcl::pkgconfig get debug]} { package ifneeded registry 1.3 \ [list load [file join $dir tclreg13g.dll] registry] |