Skip to content
Tcl Source Code Changes To Embedding Support
Login

Changes To Embedding Support

Changes to "Embedding Support" between 2014-09-03 10:39:26 and 2014-09-03 10:45:04

︙
65
66
67
68
69
70
71









72
73
74
75
76
77
78
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87







+
+
+
+
+
+
+
+
+







# The -A argument tells zip to offset itself from the executable
zip -A mynewkit main.tcl
./mynewkit
hello world
(Program exit)
</verbatim>

For convenience the tcl Makefile has a "make tclkit", which make a tclkit with
an embedded TCL_LIBRARY.

The tk Makefile has a "make tkkit" which provides a similar service for wish-based kits.

If the shells are compiled with --enable-shared=no, the Tcl/Tk libraries will be statically
bound with the shells, and thus truly self-contained. Otherwise they will need access to the 
tcl/tk shared libraries. Either in the same directory as the executable, or tucked somewhere in your operating's systems library search path.

<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,
︙