#2613 Tcl_ParseExpr not as documented

obsolete: 8.5a1
closed-fixed
Don Porter
5
2004-03-08
2004-03-05
Don Porter
No

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.

Discussion

  • Don Porter
    Don Porter
    2004-03-08

    • assigned_to: msofer --> dgp
    • status: open --> closed-fixed
     
  • Don Porter
    Don Porter
    2004-03-08

    Logged In: YES
    user_id=80530

    fixed for 8.5