Skip to content
Tcl Source Code Changes To Embedding Support
Login

Changes To Embedding Support

Changes to "Embedding Support" between 2014-09-02 21:38:40 and 2014-09-02 21:57:39

︙
45
46
47
48
49
50
51
52
53
54



55
56
57
58
59
60
61
45
46
47
48
49
50
51



52
53
54
55
56
57
58
59
60
61







-
-
-
+
+
+







  *  [Environment Variables]
 
<h1>The core_zip_vfs Patch</h1>
The [/timeline?r=core_zip_vfs|core_zip_vfs] branch adds the ability to mount a zip archive concatenated to the current executable as a virtual file system, capable of hosting both env(TCL_LIBRARY) and kick off
a bootloader (if a file called <i>main.tcl</i> is present).

This patch:
  * Adds  [/finfo?name=generic/tclZipVfs.c|tclZipVfs.c]
  * Modifies [/finfo?name=unix/tclAppInit.c|tclAppInit.c]
  * Modifies [/finfo?name=win/tclAppInit.c|tclAppInit.c]
  *  Adds  [/finfo?name=generic/tclZipVfs.c|tclZipVfs.c]
  *  Modifies [/finfo?name=unix/tclAppInit.c|tclAppInit.c]
  *  Modifies [/finfo?name=win/tclAppInit.c|tclAppInit.c]

To build a self-contained executable:
<verbatim>
cp tclsh mynewkit
zip mynewkit.zip main.tcl
cat mynewkit.zip >> mynewkit
./mynewkit
︙