magic/extract
Intubun fc21472ee8 Add ClientData parameter to indirect-call callbacks for WASM
WASM call_indirect enforces an exact type match between the caller
and the callee. Many Magic callbacks had K&R-style () forward
declarations and a single-argument definition, but were passed to
iterators that always push a trailing ClientData argument. Native
builds tolerated the mismatch via loose prototypes; WASM traps with
"indirect call signature mismatch".

Added the missing ClientData (or, where the concrete type is known,
FindRegion *) parameter to:

* calma/CalmaRead.c, calma/CalmaWrite.c, calma/CalmaWriteZ.c —
  calmaWriteInitFunc
* cif/CIFwrite.c — cifWriteInitFunc
* commands/CmdSubrs.c — cmdWindSet
* database/DBtimestmp.c — dbStampFunc
* dbwind/DBWelement.c — dbwElementAlways1
* dbwind/DBWfdback.c — dbwfbWindFunc
* dbwind/DBWhlights.c — DBWHLRedrawWind
* ext2spice/ext2hier.c — spcnodeHierVisit
* extract/ExtBasic.c — extSDTileFunc, extTransPerimFunc,
  extAnnularTileFunc, extResistorTileFunc
* extract/ExtMain.c — extDefInitFunc
* extract/ExtTimes.c — extTimesInitFunc

Also adjusted commands/CmdE.c and commands/CmdTZ.c: SelectExpand was
being called with four arguments (the legacy surroundFlag), but its
real signature has been three arguments for years (the surround mode
is encoded in the expandType bit). The fourth argument was redundant
(DB_EXPAND_SURROUND in arg 2 is the source of truth) and rejected by
WASM. Native behavior is unchanged.

The added parameters are unused in the function bodies; they exist
only to satisfy the indirect-call signature.
2026-05-06 09:58:20 +02:00
..
ExtArray.c Additional work to incorporate handling of split tiles throughout 2026-01-09 12:05:03 -05:00
ExtBasic.c Add ClientData parameter to indirect-call callbacks for WASM 2026-05-06 09:58:20 +02:00
ExtCell.c Extended the "property" command and modified the way that properties 2026-02-18 10:48:47 -05:00
ExtCouple.c Found an issue with coupling capacitance where contact types not 2026-03-05 18:04:53 -05:00
ExtHard.c More updates. . . Got it to the point were gpio_ovtv2 is LVS 2026-01-17 20:49:52 -05:00
ExtHier.c Corrected a problem in which if a label exists that is only connected 2026-03-12 11:50:21 -04:00
ExtInter.c First cut of pulling the TT_SIDE bit out of the tile database 2026-01-09 12:05:03 -05:00
ExtLength.c First cut of pulling the TT_SIDE bit out of the tile database 2026-01-09 12:05:03 -05:00
ExtMain.c Add ClientData parameter to indirect-call callbacks for WASM 2026-05-06 09:58:20 +02:00
ExtNghbors.c extract/ExtNghbors.c: fix older compiler support for label 2026-03-26 09:20:07 -04:00
ExtPerim.c Last set of changes to get non-Manhattan area and perimeter 2026-01-19 17:18:10 -05:00
ExtRegion.c Additional changes; fixed some of the most problematic issues 2026-01-15 21:35:46 -05:00
ExtSubtree.c Corrected a problem in which if a label exists that is only connected 2026-03-12 11:50:21 -04:00
ExtTech.c Corrected two errors related to extraction: 2026-01-30 16:47:36 -05:00
ExtTest.c First cut of pulling the TT_SIDE bit out of the tile database 2026-01-09 12:05:03 -05:00
ExtTimes.c Add ClientData parameter to indirect-call callbacks for WASM 2026-05-06 09:58:20 +02:00
ExtUnique.c Multiple fixes and updates: 2026-01-22 11:20:20 -05:00
ExtYank.c freeMagic1() idiom insertion at all sites reported by static code analysis 2025-12-19 09:31:58 -05:00
Makefile Makefile: whitespace only change 2025-07-29 10:50:32 -04:00
extDebugInt.h header file #ifndef guard presence consistency 2025-07-29 10:50:32 -04:00
extract.h Saving work so I can rebase on changes made to the magic extract 2026-02-03 21:11:45 -05:00
extractInt.h Beginning to tear apart the extresist code; work in progress 2026-01-27 11:58:15 -05:00