diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-14 09:22:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-14 09:22:18 (GMT) |
commit | f0ec68f07293dac2b967d45a3697073b77688970 (patch) | |
tree | 1c2e9c90480d43aa230b77653baff036339dc848 /library | |
parent | 6e44927248852ae0356d9d3e1cfa3d69597a66b1 (diff) | |
download | tcl-f0ec68f07293dac2b967d45a3697073b77688970.zip tcl-f0ec68f07293dac2b967d45a3697073b77688970.tar.gz tcl-f0ec68f07293dac2b967d45a3697073b77688970.tar.bz2 |
Prevent the usage of the term safe/unsafe child. Suggested by Keith Nash. Thanks!
More usage of $index<0 in stead of $index==-1 consistantly
Diffstat (limited to 'library')
-rw-r--r-- | library/http/http.tcl | 2 | ||||
-rw-r--r-- | library/safe.tcl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index 6ca3bad..cce1828 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -2754,7 +2754,7 @@ proc http::Event {sock token} { # scan any list for "close". if {$tmpHeader in {close keep-alive}} { # The common cases, continue. - } elseif {[string first , $tmpHeader] == -1} { + } elseif {[string first , $tmpHeader] < 0} { # Not a comma-separated list, not "close", # therefore "keep-alive". set tmpHeader keep-alive diff --git a/library/safe.tcl b/library/safe.tcl index 5e04453..b9dd18d 100644 --- a/library/safe.tcl +++ b/library/safe.tcl @@ -260,7 +260,7 @@ proc ::safe::interpConfigure {args} { # # safe::InterpCreate : doing the real job # -# This procedure creates a safe child and initializes it with the safe +# This procedure creates a safe interpreter and initializes it with the safe # base aliases. # NB: child name must be simple alphanumeric string, no spaces, no (), no # {},... {because the state array is stored as part of the name} @@ -578,7 +578,7 @@ proc ::safe::AddSubDirs {pathList} { return $res } -# This procedure deletes a safe child managed by Safe Tcl and cleans up +# This procedure deletes a safe interpreter managed by Safe Tcl and cleans up # associated state. # - The command will also delete non-Safe-Base interpreters. # - This is regrettable, but to avoid breaking existing code this should be |