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. |
||
|---|---|---|
| .. | ||
| bitmaps | ||
| Makefile | ||
| magicTop.c | ||
| magicWasm.c | ||
| magicps.pro | ||
| proto.initrc | ||
| proto.magicrc.in | ||
| symbol.map | ||