Skip to content
Tcl Source Code Artifact [7279c649f3]
Login

Artifact [7279c649f3]

Artifact 7279c649f3fd2d7d3e0fde04306639f42562fa10:

Ticket change [7279c649f3] - Ticket [402501ffffffffff|402501ffff] <i>Fix for Bug 119393 ([trace remove] &amp; Tcl_Preserve)</i> status still Open with 4 other changes by dgp on 2001-02-28 06:05:18.
D 2001-02-28T06:05:18
J icomment Logged\sIn:\sYES\s\nuser_id=80530\n\nThe\sfix\sI\shad\sin\smind\sfor\sthis\shas\stwo\ssteps.\n\n1.\sModify\sCallTraces()\s(in\sgeneric/tclVar.c)\sso\sthat\sit\ncan\srecognize\sa\sspecial\svalue\n\n#define\sTCL_TRACE_ERROR_MESSAGE_IN_INTERP_RESULT\s0x1\n\nreturned\sfrom\sa\strace\sprocedure\sas\sa\ssignal\sthat\sthe\serror\nmessage\sshould\sbe\sretrieved\sfrom\nTcl_GetStringResult(interp).\n\nThat\schange\swould\srequire\sa\sTIP.\n\n2.\sMake\suse\sof\sthe\snew\sinterface\sby\shaving\sTraceVarInfo()\nstick\serror\smessages\sin\sthe\sinterp\sresult\sand\sreturn\nTCL_TRACE_ERROR_MESSAGE_IN_INTERP_RESULT\swhen\sthere\sis\nan\serror\sin\sthe\sevaluation\sof\sthe\strace\sscript.\s\sThen\nget\srid\sof\sthe\serrMsg\sfield\sin\sthe\sTraceVarInfo\sstruct.\n\nThis\sseems\sto\sme\sto\sbe\sthe\ssafe\sway\sto\sget\san\serror\smessage\nthat\sis\snot\sa\sstatic\sstring\sback\sto\sTcl_TraceVar().\nSimilar\schanges/fixes\smay\salso\sbe\sneeded\sin\nCallCommandTraces(),\setc.\n\nThis\sapproach\smay\sgo\sagainst\sthe\sRESTRICTIONS\ssection\sof\nTcl_TraceVar(3),\sthough.\s\sThat\ssection\sinstructs\sall\strace\nprocedures\sto\ssave\sand\srestore\sinterp->result\sbefore\s\nreturning.\s\sBut\swhy\simpose\sthat\sburden\son\severy\strace\nprocedure?\s\sWhy\sisn't\sCallTraces()\sitself\ssaving\sand\nrestoring\sthe\sinterpreter\sresult?\n
J login dgp
J mimetype text/plain
J username dgp
K 402501ffffffffffffffffffffffffffffffffff
U dgp
Z e08f6927435661c441a8fb8c6ad1c3df