Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 127b4357830e23064772fe8858474e9a6874f4c4
Ticket: 1711975fffffffffffffffffffffffffffffffff
Tcl_MainEx() (like Tk_MainEx())
User & Date: nijtmans on 2010-07-09 16:30:29
Changes

  1. icomment:
    Commenting on dkf:
    
    >We shouldn't call Tcl_CreateInterp before Tcl_MainEx because there's an
    >assumption that Tcl_Main will call Tcl_FindExecutable (and hence
    >TclInitSubsystems IIRC) for you, and that's got to be called before
    >Tcl_CreateInterp.
    
    I don't think that's true: The Tk_Main macro calls Tcl_CreateInterp before
    Tk_MainEx, and wish works!
    
    That said, we could pull the Tcl_FindExecutable call out of Tcl_Main,
    and define the macro like:
    
    #define Tcl_Main(argc, argv, proc) \
        (Tcl_FindExecutable(argv[0]),Tcl_MainEx(argc, argv, proc, Tcl_CreateInterpEx()))
    
    That would be a good idea for Tk too, anyway!
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. username: "nijtmans"