Skip to content
Tcl Source Code View Ticket
Login

View Ticket

TclCompileEnsemble error ?

Closed / Fixed1845320fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-12-06 06:35:05
Check me on this, but at line 6360
of tclCompCmds.c in TclCompileEnsemble(),
I see:

    memcpy(synthetic.tokenPtr + 2, argTokensPtr,
            sizeof(Tcl_Token) * (synthetic.numTokens - 2));


and I think that should be:

    memcpy(synthetic.tokenPtr + 2*len, argTokensPtr,
            sizeof(Tcl_Token) * (synthetic.numTokens - 2*len));

Probably all of the core ensembles that
get compiled have (len == 1) so no problem
so far, but if the aim is a general facility,
multi-word subcommand targets should be
done right.
dgpplain2007-12-06 13:48:00
Logged In: YES 
user_id=80530
Originator: YES


Less important, but I see some
comments in the routine referring
to [info exists] that appear to
be out of date as well?
dkfplain2007-12-06 17:05:51
Logged In: YES 
user_id=79902
Originator: NO

Darn, it should be 2*len indeed.
dkf Closed ticket [1845320fff]. [History diff]2007-12-06 17:26:30
Log in (anonymous is fine) to add a comment.