Overview
| Artifact ID: | 8aeefd5d01364dfef2378168ab6030fecc4c4924 |
|---|---|
| Ticket: | 415179ffffffffffffffffffffffffffffffffff
TIP#27: tclBasic.c and related files. |
| User & Date: | hobbs on 2001-04-12 02:26:26 |
Changes
- assignee changed to: "kennykb"
- icomment:
Logged In: YES user_id=72656 Tcl_CreateCommand: OK (cmdName) Tcl_CreateMathFunc: OK (name) Tcl_CreateObjCommand: OK (cmdName) Tcl_DeleteAssocData: OK (name) Tcl_DeleteCommand: OK (cmdName) Tcl_ExposeCommand: OK (hiddenCmdToken) Tcl_Expr*: OK (string) Danger Will Robinson! Let's look at Tcl_ExprDouble and watch for a careful gotcha that might hit somewhere in the future. Tcl_ExprDouble first creates a Tcl_Obj, which is the only thing that makes this OK, but Tcl_NewStringObj makes a copy of string. However, following the call tree of Tcl_ExprDouble, we reach Tcl_ParseExpr, which *will* modify the string that could be a shared string in Tcl_Obj. This doesn't affect the CONST'ifying here, but in general exposes a Bad Thing (tm). It could lead to odd problems in a threaded environment.... That said, I go on... Tcl_GetAssocData: OK (name) Tcl_GetCommandInfo: OK (cmdName) Tcl_HideCommand: OK (cmdName) Tcl_SetAssocData: OK (name) Tcl_SetCommandInfo: OK (cmdName) CallCommandTraces: OK (oldName, newName) TraceCommandProc: OK (oldName, newName) Danger Will Robinson! Previously Tcl_VarTraceProc didn't enforce CONST (directly related to the above), and now it will. This will be an incompatability for anyone that modified the passed in strings (I don't know why they would, but it was legal before). TclGetNameSpaceForQualName: OK (qualName, *simpleNamePtr) Tcl_CreateNamespace: OK (name) Tcl_FindCommand: OK (name) Those need to be made public, BTW
- login: "hobbs"
- mimetype: "text/plain"
- username: "hobbs"