Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4873b1cab52c831c1b4ab731d8f57f0e8c0b0164
Ticket: 1091046fffffffffffffffffffffffffffffffff
Accessor functions for iPtr->scriptFile
User & Date: davidw on 2004-12-25 09:10:19
Changes

  1. assignee changed to: "vincentdarley"
  2. cmimetype changed to: "text/plain"
  3. 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
    
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "davidw"
  9. subsystem changed to: "37. File System"
  10. title changed to: "Accessor functions for iPtr->scriptFile"
  11. type changed to: "RFE"