magic/magic
Intubun 8fdd2eec20 fix(tcl-wasm): register magic:: Tcl commands after C initialization completes
magic_wasm_init() called Tclmagic_Init() and magicMainInit() but never
ran the command-registration loop in _magic_initialize(), so magic::tech,
magic::load, magic::gds and all other Magic commands were missing from
the Tcl interpreter.

Add TclmagicRegisterCommands() in tclmagic.c containing the
WindNextClient/WindGetCommandTable loop and call it from magic_wasm_init()
after magicMainInit() succeeds.

Also change magic_wasm_source_file() to use Tcl_EvalFile in MAGIC_WRAPPER
mode so scripts with magic:: commands are evaluated through the Tcl
interpreter instead of the plain text dispatcher.
2026-05-21 12:42:51 +02:00
..
bitmaps Changed the PNG bitmaps to GIF, because PNG is not supported in 2020-02-26 10:10:55 -05:00
Makefile Add TCL-embedded WASM build variant alongside the existing non-TCL build 2026-05-21 12:42:43 +02:00
magicTop.c Add TCL-embedded WASM build variant alongside the existing non-TCL build 2026-05-21 12:42:43 +02:00
magicWasm.c fix(tcl-wasm): register magic:: Tcl commands after C initialization completes 2026-05-21 12:42:51 +02:00
magicps.pro Update the postscript file to be able to support much more stipples 2026-05-19 12:22:37 -04:00
proto.initrc Initial commit at Tue Apr 25 08:41:48 EDT 2017 by tim on stravinsky 2017-04-25 08:41:48 -04:00
proto.magicrc.in Fixed a number of places in the Tcl code where "snap" had been used 2026-02-24 15:59:21 -05:00
symbol.map Extended the "property" command and modified the way that properties 2026-02-18 10:48:47 -05:00