summaryrefslogtreecommitdiffstats
path: root/library/safe.tcl
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-06-14 13:48:25 (GMT)
committernijtmans <nijtmans>2010-06-14 13:48:25 (GMT)
commit0e72c9c6656401b476b0cf11c125d5bff87f8b93 (patch)
treeac5aca566d3f4a32668e610f1d2e6cd4ab390af6 /library/safe.tcl
parente16e1505cda7b4046f3080614042121bf8ce222f (diff)
downloadtcl-0e72c9c6656401b476b0cf11c125d5bff87f8b93.zip
tcl-0e72c9c6656401b476b0cf11c125d5bff87f8b93.tar.gz
tcl-0e72c9c6656401b476b0cf11c125d5bff87f8b93.tar.bz2
Spacing and style fixes
Diffstat (limited to 'library/safe.tcl')
-rw-r--r--library/safe.tcl20
1 files changed, 14 insertions, 6 deletions
diff --git a/library/safe.tcl b/library/safe.tcl
index 7c81f92..c5fad56 100644
--- a/library/safe.tcl
+++ b/library/safe.tcl
@@ -12,7 +12,7 @@
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: safe.tcl,v 1.37 2009/12/30 22:26:43 dkf Exp $
+# RCS: @(#) $Id: safe.tcl,v 1.38 2010/06/14 13:48:25 nijtmans Exp $
#
# The implementation is based on namespaces. These naming conventions are
@@ -153,10 +153,18 @@ proc ::safe::interpConfigure {args} {
set item [::tcl::OptCurDesc $desc]
set name [::tcl::OptName $item]
switch -exact -- $name {
- -accessPath {return [list -accessPath $state(access_path)]}
- -statics {return [list -statics $state(staticsok)]}
- -nested {return [list -nested $state(nestedok)]}
- -deleteHook {return [list -deleteHook $state(cleanupHook)]}
+ -accessPath {
+ return [list -accessPath $state(access_path)]
+ }
+ -statics {
+ return [list -statics $state(staticsok)]
+ }
+ -nested {
+ return [list -nested $state(nestedok)]
+ }
+ -deleteHook {
+ return [list -deleteHook $state(cleanupHook)]
+ }
-noStatics {
# it is most probably a set in fact but we would need
# then to jump to the set part and it is not *sure*
@@ -1011,7 +1019,7 @@ proc ::safe::AliasEncoding {slave option args} {
}
if {[string equal -length [string length $option] $option "system"]} {
- if {[llength $args] == 0} {
+ if {![llength $args]} {
# passed all the tests , lets source it:
try {
return [::interp invokehidden $slave encoding system]