.
D 2004-12-25T09:10:19
J assignee vincentdarley
J cmimetype text/plain
J comment Hi,\n\nIn\sApache\sRivet,\swe\swould\slike\sto\sbe\sable\sto\sdo\sthe\nequivalent\sof\n\ninfo\sscript\sfoobar\n\nto\sset\sthe\sname\sof\sthe\srivet\sfile\sbeing\sparsed\sand\nevaluated.\s\sI\smeasured\sa\ssignificant,\sif\snot\shuge\nspeedup\swhen\sI\sset\sthings\sdirectly:\n\nInterp\s*iPtr\s=\s(Interp\s*)\sinterp;\nif\s(iPtr->scriptFile\s!=\sNULL)\s{\n\s\s\s\sTcl_DecrRefCount(iPtr->scriptFile);\n}\niPtr->scriptFile\s=\sTcl_NewStringObj(r->filename,\s-1);\nTcl_IncrRefCount(iPtr->scriptFile);\n\nInstead\sof\sbuilding\sup\sand\sevaluating\san\s"info\sscript\n...."\scommand.\n\nHowever,\swe\shave\sto\suse\sthe\sinternal\sAPI\sto\sdo\sthe\nabove...\sproviding\sa\spair\sof\sget/set\saccessor\sfunctions\nwould\sbe\sappreciated.\n\nShould\sI\swrite\sa\sTIP\sfor\sthis?\n\nThanks,\nDave\n
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter davidw
J subsystem 37.\sFile\sSystem
J title Accessor\sfunctions\sfor\siPtr->scriptFile
J type RFE
K 1091046fffffffffffffffffffffffffffffffff
U davidw
Z 991ee2025393f9e92f95670a63bff812