From 689f5653f9349eb55b176a83f0daf2762a353a2b Mon Sep 17 00:00:00 2001 From: dgp Date: Sat, 7 Apr 2018 16:55:53 +0000 Subject: Correct out-of-date documentation for [string is]. --- doc/string.n | 8 +++----- generic/tclCmdMZ.c | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/doc/string.n b/doc/string.n index 7e427ab..d4e2833 100644 --- a/doc/string.n +++ b/doc/string.n @@ -136,9 +136,7 @@ Any Unicode control character. Any Unicode digit character. Note that this includes characters outside of the [0\-9] range. .IP \fBdouble\fR 12 -Any of the valid forms for a double in Tcl, with optional surrounding -whitespace. In case of under/overflow in the value, 0 is returned and -the \fIvarname\fR will contain \-1. +Any of the forms allowed to \fBTcl_GetDoubleFromObj\fR. .IP \fBfalse\fR 12 Any of the forms allowed to \fBTcl_GetBoolean\fR where the value is false. @@ -146,7 +144,7 @@ false. Any Unicode printing character, except space. .IP \fBinteger\fR 12 Any of the valid string formats for a 32-bit integer value in Tcl, -with optional surrounding whitespace. In case of under/overflow in +with optional surrounding whitespace. In case of overflow in the value, 0 is returned and the \fIvarname\fR will contain \-1. .IP \fBlist\fR 12 Any proper list structure, with optional surrounding whitespace. In @@ -171,7 +169,7 @@ Any upper case alphabet character in the Unicode character set. .VS 8.5 .IP \fBwideinteger\fR 12 Any of the valid forms for a wide integer in Tcl, with optional -surrounding whitespace. In case of under/overflow in the value, 0 is +surrounding whitespace. In case of overflow in the value, 0 is returned and the \fIvarname\fR will contain \-1. .VE 8.5 .IP \fBwordchar\fR 12 diff --git a/generic/tclCmdMZ.c b/generic/tclCmdMZ.c index de953aa..db4e57b 100644 --- a/generic/tclCmdMZ.c +++ b/generic/tclCmdMZ.c @@ -1515,7 +1515,6 @@ StringIsCmd( chcomp = Tcl_UniCharIsDigit; break; case STR_IS_DOUBLE: { - /* TODO */ if ((objPtr->typePtr == &tclDoubleType) || (objPtr->typePtr == &tclIntType) || #ifndef NO_WIDE_TYPE -- cgit v0.12