Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: b0d814783903cf2c924138c6cd6ed62f2bac033e
Ticket: 1552653fffffffffffffffffffffffffffffffff
add Tcl_RunMainLoop()
User & Date: nobody on 2006-09-05 13:19:42
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Routine Tcl_SetMainLoop() sets a static variable that can only be 
    referenced if you use Tcl_Main().
    
    If you don't want to use Tcl_Main(), there's no way to override 
    Tcl_SetMainLoop() so you can catch it if a package calls it (e.g. if Tk gets 
    loaded in a script with "package require Tk").
    
    One option would be to add Tcl_GetMainLoop(), but even easier and what 
    would presumably always be used would be:
    
    void Tcl_RunMainLoop()
    {
       if (mainLoopProc != NULL)
          (*mainLoopProc)();
    
       mainLoopProc = NULL;
    }
    
    Thanks,
    
    [email protected]
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nobody"
  10. subsystem changed to: "None"
  11. title changed to: "add Tcl_RunMainLoop()"
  12. type changed to: "RFE"