magic/database
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
..
DBbound.c Corrected an issue in computing the extended (includes area of 2025-08-26 11:00:20 -04:00
DBcell.c Corrected an error from a recent commit: An attempt to add array 2025-11-25 12:57:46 -05:00
DBcellbox.c A number of things in one commit: 2025-11-07 11:00:22 -05:00
DBcellcopy.c Reworked the method from the previous set of commits, which creates 2026-03-10 14:25:02 -04:00
DBcellname.c Another correction to one function call that was not updated for 2026-02-19 10:27:03 -05:00
DBcellsel.c Updates from running the fix-ending-whitespace script. 2020-05-23 17:13:14 -04:00
DBcellsrch.c Solved three issues: 2026-04-01 21:17:54 -04:00
DBcellsubr.c freeMagic1() idiom insertion at all sites reported by static code analysis 2025-12-19 09:31:58 -05:00
DBconnect.c More updates. . . Got it to the point were gpio_ovtv2 is LVS 2026-01-17 20:49:52 -05:00
DBcount.c DBcount.c: DBTreeCountPaint() unify return type of hiercount() callback 2024-12-26 13:13:14 -05:00
DBexpand.c Fixed the mess that is the "expand"/"unexpand" command set. This 2026-04-04 20:47:04 -04:00
DBio.c Fixed the mess that is the "expand"/"unexpand" command set. This 2026-04-04 20:47:04 -04:00
DBlabel.c First cut of pulling the TT_SIDE bit out of the tile database 2026-01-09 12:05:03 -05:00
DBlabel2.c 36 x warning: suggest parentheses around assignment used as truth value 2024-10-09 21:12:55 -04:00
DBpaint.c Committing changes to date, which includes a number of fixes, 2026-01-09 12:05:03 -05:00
DBpaint2.c First cut of pulling the TT_SIDE bit out of the tile database 2026-01-09 12:05:03 -05:00
DBprop.c Reworked the method from the previous set of commits, which creates 2026-03-10 14:25:02 -04:00
DBtcontact.c Corrected an error with the bloat-all CIF operator in which 2024-12-16 21:52:11 -05:00
DBtech.c database/DBtech.c: Incorrect return-value check for a 'scanf'-like function 2024-10-01 12:36:12 -04:00
DBtechname.c database: DBPlaneShortName() return const char * 2025-10-04 20:50:31 -04:00
DBtechtype.c freeMagic1() idiom insertion at all sites reported by static code analysis 2025-12-19 09:31:58 -05:00
DBtiles.c More updates. . . Got it to the point were gpio_ovtv2 is LVS 2026-01-17 20:49:52 -05:00
DBtimestmp.c Add ClientData parameter to indirect-call callbacks for WASM 2026-05-06 09:58:20 +02:00
DBtpaint.c Lookup() constify call-site 2024-12-26 15:20:58 -05:00
DBtpaint2.c Corrected code in DBtpaint2.c handling the setup of paint/erase 2024-12-26 16:28:43 -05:00
DBundo.c 37 x warning: array subscript has type 'char' 2024-10-09 21:12:55 -04:00
Makefile Makefile: database.h removal by toplevel Makefile 2025-07-29 10:50:32 -04:00
arrayinfo.h database.h: refactor struct ArrayInfo defn into it arrayinfo.h 2025-08-06 22:58:30 +01:00
database.h.in Fixed the mess that is the "expand"/"unexpand" command set. This 2026-04-04 20:47:04 -04:00
databaseInt.h A number of things in one commit: 2025-11-07 11:00:22 -05:00
fonts.h header file #endif guard middle program once style consistency 2025-07-29 10:50:32 -04:00