Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: bcc0675dfbccc9c0081f0c845d9a5d4269e4d169
Ticket: 3124554fffffffffffffffffffffffffffffffff
Move WishPanic from Tk to Tcl
User & Date: nijtmans on 2011-07-21 21:08:39
Changes

  1. icomment:
    >First, generic/tclPanic.c has now grown
    >a significant amount of #ifdef _WIN32 .
    >I'd like things much better if we could keep the
    >generic code truly generic.
    
    Noted. However the biggest _WIN32
    section is the end of Tcl_PanicVA(), and
    this part comes from the fact that M$
    didn't implement abort() the way it
    is supposed to work: provide an entry
    point to the debugger. Given the
    fact that there is only one abort()
    call left in Tcl/Tk, this is the most
    logical place to do it. Implementing
    a TclAbort internal function would
    not make the code more readable,
    so I prefer keeping it as is.
    
    > Second, the interface of Tcl_FindExecutable()
    > has been changed by the patch
    In fact T_FE(NULL) is only intended to be
    used by the Tk_Main() macro, not by
    anyone else. The fact that the T_FE
    argument has always been a dummy
    argument on Win32 has never been
    documented either. But I agree that
    it is better to document this. How
    about something like:
    
    On Win32, the argv0 argument has
    no effect, except for the default
    panicproc installed. If either a
    debugger is running or Tcl_SetPanicProc
    is called, whatever value of argv0 has
    no effect. Otherwise a NULL value
    installs a GUI dialog as default
    panic proc while any non-null value
    results in the panic message to be
    written to stderr before entering the
    debugger.
    
    That's the short summary of what
    this patch is actually doing.
    
    
  2. login: "nijtmans"
  3. mimetype: "text/plain"
  4. status changed to: "Open"
  5. username: "nijtmans"