Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 20e3a6baa3e6bbe18351735d64a70e987ada3a65
Ticket: 2919042fffffffffffffffffffffffffffffffff
Exit reform lost valgrindability
User & Date: juddgilbert on 2011-04-21 20:56:15
Changes

  1. icomment:
    I'm really sorry if I'm doing something dumb, but val4.patch successfully patched tclBasic.c, tclEvent.c, tclExecute.c, and then failed on tclMain.c. All using the head tarball linked.
    
    Sorry to be such a pain :( I do appreciate your help.
    
    tclMain.c.ref
    
    ***************
    *** 876,889 ****
          chan = Tcl_GetStdChannel(TCL_STDOUT);
          if (chan != NULL) {
      Tcl_Flush(chan);
          }
          isPtr->prompt = PROMPT_NONE;
      }
      ^L
      /*
       * Local Variables:
       * mode: c
       * c-basic-offset: 4
       * fill-column: 78
       * End:
       */
    --- 870,909 ----
          chan = Tcl_GetStdChannel(TCL_STDOUT);
          if (chan != NULL) {
      Tcl_Flush(chan);
          }
          isPtr->prompt = PROMPT_NONE;
    + }
    + ^L
    + /*
    +  *----------------------------------------------------------------------
    +  *
    +  * FreeMainInterp --
    +  *
    +  *Exit handler used to cleanup the main interpreter and ancillary startup
    +  *script storage at exit.
    +  *
    +  *----------------------------------------------------------------------
    +  */
    + 
    + static void
    + FreeMainInterp(
    +     ClientData clientData)
    + {
    + Tcl_Interp *interp = (Tcl_Interp *) clientData;
    + 
    + //if (TclInExit()) return;
    + 
    + if (!Tcl_InterpDeleted(interp)) {
    +     Tcl_DeleteInterp(interp);
    + }
    +     Tcl_SetStartupScript(NULL, NULL);
    +     Tcl_Release(interp);
      }
      ^L
      /*
       * Local Variables:
       * mode: c
       * c-basic-offset: 4
       * fill-column: 78
       * End:
       */
    
    
    
    
  2. login: "juddgilbert"
  3. mimetype: "text/plain"
  4. username: "juddgilbert"