summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-05-31 07:20:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-05-31 07:20:18 (GMT)
commit4632c037e39815143f56d2abeb9ca668bb4d6c75 (patch)
tree374a94a91582f55d925a433fd5380c91307b4061
parent75bdb756898a30047bb33ecf3f322062fcd27180 (diff)
parent28c9edc49b51e1d750ff76ecf44efc388827f1f5 (diff)
downloadtcl-4632c037e39815143f56d2abeb9ca668bb4d6c75.zip
tcl-4632c037e39815143f56d2abeb9ca668bb4d6c75.tar.gz
tcl-4632c037e39815143f56d2abeb9ca668bb4d6c75.tar.bz2
Merge 8.7
-rw-r--r--doc/TclZlib.32
-rw-r--r--doc/ledit.n26
-rw-r--r--doc/timerate.n6
-rw-r--r--win/tclWinChan.c8
4 files changed, 21 insertions, 21 deletions
diff --git a/doc/TclZlib.3 b/doc/TclZlib.3
index 619b2dc..efbe07b 100644
--- a/doc/TclZlib.3
+++ b/doc/TclZlib.3
@@ -188,7 +188,7 @@ is used to initialize the compression engine rather than leaving it to create
it on the fly from the data being compressed. Setting a compression dictionary
allows for more efficient compression in the case where the start of the data
is highly regular, but it does require both the compressor and the
-decompressor to agreee on the value to use. Compression dictionaries are only
+decompressor to agree on the value to use. Compression dictionaries are only
fully supported for zlib-format data; on compression, they must be set before
any data is sent in with \fBTcl_ZlibStreamPut\fR, and on decompression they
should be set when \fBTcl_ZlibStreamGet\fR produces an \fBerror\fR with its
diff --git a/doc/ledit.n b/doc/ledit.n
index 70e0bf3..48bc608 100644
--- a/doc/ledit.n
+++ b/doc/ledit.n
@@ -24,7 +24,7 @@ Arguments \fIfirst\fR and \fIlast\fR are index values specifying the first and
last elements of the range to replace. They are interpreted
the same as index values for the command \fBstring index\fR,
supporting simple index arithmetic and indices relative to the
-end of the list. The index 0 refers to the first element of the
+end of the list. The index \fB0\fR refers to the first element of the
list, and \fBend\fR refers to the last element of the list.
.PP
If either \fIfirst\fR or \fIlast\fR is less than zero, it is considered to
@@ -49,33 +49,33 @@ between \fIfirst\fR and \fIlast\fR are simply deleted.
Prepend to a list.
.PP
.CS
-% set lst {c d e f g}
-c d e f g
-% ledit lst -1 -1 a b
-a b c d e f g
+set lst {c d e f g}
+ \fI\(-> c d e f g\fR
+\fBledit\fR lst -1 -1 a b
+ \fI\(-> a b c d e f g\fR
.CE
.PP
Append to the list.
.PP
.CS
-% ledit lst end+1 end+1 h i
-a b c d e f g h i
+\fBledit\fR lst end+1 end+1 h i
+ \fI\(-> a b c d e f g h i\fR
.CE
.PP
Delete third and fourth elements.
.PP
.CS
-% ledit lst 2 3
-a b e f g h i
+\fBledit\fR lst 2 3
+ \fI\(-> a b e f g h i\fR
.CE
.PP
Replace two elements with three.
.PP
.CS
-% ledit lst 2 3 x y z
-a b x y z g h i
-% set lst
-a b x y z g h i
+\fBledit\fR lst 2 3 x y z
+ \fI\(-> a b x y z g h i\fR
+set lst
+ \fI\(-> a b x y z g h i\fR
.CE
.PP
.SH "SEE ALSO"
diff --git a/doc/timerate.n b/doc/timerate.n
index c5fdf30..5d49c86 100644
--- a/doc/timerate.n
+++ b/doc/timerate.n
@@ -35,10 +35,10 @@ if \fItime\fR is not specified.
.sp
The parameter \fImax-count\fR could additionally impose a further restriction
by the maximal number of iterations to evaluate the script.
-If \fImax-count\fR is specified, the evalution will stop either this count of
+If \fImax-count\fR is specified, the evaluation will stop either this count of
iterations is reached or the time is exceeded.
.sp
-It will then return a canonical tcl-list of the form:
+It will then return a canonical Tcl-list of the form:
.PP
.CS
\fB0.095977 \(mcs/# 52095836 # 10419167 #/sec 5000.000 net-ms\fR
@@ -85,7 +85,7 @@ used to measure the cost of \fBTcl_EvalObjEx\fR, of the invocation of canonical
lists, and of the uncompiled versions of bytecoded commands.
.PP
As opposed to the \fBtime\fR commmand, which runs the tested script for a fixed
-number of iterations, the timerate command runs it for a fixed time.
+number of iterations, the \fBtimerate\fR command runs it for a fixed time.
Additionally, the compiled variant of the script will be used during the entire
measurement, as if the script were part of a compiled procedure, if the \fB\-direct\fR
option is not specified. The fixed time period and possibility of compilation allow
diff --git a/win/tclWinChan.c b/win/tclWinChan.c
index d242f3d..46fbd4b 100644
--- a/win/tclWinChan.c
+++ b/win/tclWinChan.c
@@ -917,10 +917,6 @@ FileGetOptionProc(
*/
if ((len > 1) && (strncmp(optionName, "-stat", len) == 0)) {
- return TCL_OK;
- }
-
- if (valid) {
Tcl_Obj *dictObj = StatOpenFile(infoPtr);
const char *dictContents;
Tcl_Size dictLength;
@@ -943,6 +939,10 @@ FileGetOptionProc(
Tcl_DecrRefCount(dictObj);
return TCL_OK;
}
+
+ if (valid) {
+ return TCL_OK;
+ }
return Tcl_BadChannelOption(interp, optionName,
"stat");
}