Skip to content
Tcl Source Code Artifact [5f72172b72]
Login

Artifact [5f72172b72]

Artifact 5f72172b72c8068af96d0978e67f0658eec7a2de:

Wiki page [Embedding Support] by dgp on 2014-08-30 01:22:19.
D 2014-08-30T01:22:19.173
L Embedding\sSupport
P 579336bc6dbe3801e30bbc97e001415db46faa16
U dgp
W 1813
<h1>Source Files</h1>
  *  [/finfo?name=generic/tclMain.c|tclMain.c]
  *  [/finfo?name=generic/tclPanic.c|tclPanic.c]
  *  [/finfo?name=unix/tclAppInit.c|tclAppInit.c]
  *  [/finfo?name=win/tclAppInit.c|tclAppInit.c]

<h1>Public Interface</h1>
  *  Tcl_SetStartupScript
  *  Tcl_GetStartupScript
  *  Tcl_SourceRCFile
  *  Tcl_Main
  *  Tcl_MainEx
  *  Tcl_SetMainLoop
  *  Tcl_SetPanicProc
  *  Tcl_PanicVA
  *  Tcl_Panic

<h1>Private Interface</h1>
  *  TclFullFinalizationRequested
  *  TclGetMainLoop

<h1>Directly Depends On Public Interface</h1>
  *  [Threads]
  *  [Object System and Fundamental Object Types]
  *  [Variable Commands and Interfaces]
  *  [Pathname Management]
  *  [Filesystem Access]
  *  [Channel System]
  *  [list Object Type]
  *  [Preservation]
  *  [Parsing and Evaluation]
  *  [interp]
  *  [Event Loops]
  *  [dict Object Type]
  *  [Linked C Variables]
  *  [history]
  *  <i>unistd.h</i>

<h1>Directly Depends On Private Interface of</h1>
  *  [Initialization, Library, Autoloader]
  *  [Pathname Management]
  *  [Object System and Fundamental Object Types]
  *  [Parsing and Evaluation]
  *  [Allocation]
  *  [Environment Variables]
 
<h1>Discussion</h1>

This has been considered a single module, but tclPanic.c is essentially a self contained
bit without dependencies, while tclMain.c depends on nearly everything.  Most other parts
of Tcl that claim a dependence on this module are really just callers of <b>Tcl_Panic</b>.

One wrinkle is the routine <b>tclWinDebugPanic</b> which is in multiple places,
tclWinError.c and tclWinFile.c.  There's also a great deal of <b>#ifdef</b> in tclPanic.c.
A restructuring into a generic caller of <b>TclpPanic</b> might be a path to increasing
simplicity and conventionality.

Z 6713c0a07249aa8718d54a7304700d64