Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-03-08
23:42 • Closed ticket [910595ffff]: Tcl_ParseExpr not as documented plus 8 other cha... artifact: 5a8cacd30a user: dgp
2004-03-05
17:31 • New ticket [910595ffff]. artifact: a0f4b2a0d6 user: dgp

Tcl_ParseExpr not as documented

Closed / Fixed910595ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-03-05 17:31:33
Docs for Tcl_ParseExpr() claim:

"...Only the token information in the Tcl_Parse structure
     is  modified:  the  commentStart, commentSize,
commandStart,
     and commandSize fields are not modified by
Tcl_ParseExpr."

This is not true, and appears to have
never been true.

In fact, T_PE sets those fields to their
initialized values of NULL and 0 as
appropriate.

There seems to be only one reason for
T_PE to do this, and that is that the
PrintParse() routine in tclTest.c assumes
these fields have valid values and prints
them, so T_PE's initialization of them
avoids disaster.  If tclTest.c took care
of its own init needs, then T_PE could be
modified to match its docs.
dgpplain2004-03-08 23:42:48
Logged In: YES 
user_id=80530


fixed for 8.5
Log in (anonymous is fine) to add a comment.