mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-05 08:51:53 +02:00
Rename *-magic.tcl scripts to *-tcl.tcl to match the -tcl.js test naming convention. Delete the old bare-command pcell.tcl (used cellname create, no magic:: prefix) and promote pcell-magic.tcl to pcell.tcl. Fix misleading comment in magicWasm.c: Tclmagic_Init only bootstraps the interpreter; magic:: commands are registered separately by TclmagicRegisterCommands after magicMainInit. Align comment block dashes in TclmagicRegisterCommands to match tclmagic.c style (62 dashes). Replace intubun/tcl references in build scripts and CI with tcltk/tcl to match the actual pinned repo in npm/tcl.ref. Also run both test suites when build.sh is invoked with --test.
13 lines
256 B
Tcl
13 lines
256 B
Tcl
magic::tech load __TECH__
|
|
|
|
proc make_rect {name width height} {
|
|
magic::load $name
|
|
magic::box 0 0 $width $height
|
|
magic::paint m1
|
|
magic::save /work/$name
|
|
magic::gds write /work/$name
|
|
}
|
|
|
|
make_rect pcell_4x8 4 8
|
|
make_rect pcell_8x4 8 4
|