Overview
| Artifact ID: | 4873b1cab52c831c1b4ab731d8f57f0e8c0b0164 |
|---|---|
| Ticket: | 1091046fffffffffffffffffffffffffffffffff
Accessor functions for iPtr->scriptFile |
| User & Date: | davidw on 2004-12-25 09:10:19 |
Changes
- assignee changed to: "vincentdarley"
- cmimetype changed to: "text/plain"
- comment changed to:
Hi, In Apache Rivet, we would like to be able to do the equivalent of info script foobar to set the name of the rivet file being parsed and evaluated. I measured a significant, if not huge speedup when I set things directly: Interp *iPtr = (Interp *) interp; if (iPtr->scriptFile != NULL) { Tcl_DecrRefCount(iPtr->scriptFile); } iPtr->scriptFile = Tcl_NewStringObj(r->filename, -1); Tcl_IncrRefCount(iPtr->scriptFile); Instead of building up and evaluating an "info script ...." command. However, we have to use the internal API to do the above... providing a pair of get/set accessor functions would be appreciated. Should I write a TIP for this? Thanks, Dave - foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "davidw"
- subsystem changed to: "37. File System"
- title changed to: "Accessor functions for iPtr->scriptFile"
- type changed to: "RFE"