magic/sim
Intubun ad816ed65a Fix five latent bugs surfaced while porting to WASM
These bugs all exist in stock Magic but were tolerated by the K&R-loose
native build. The strict WASM call_indirect type checks turned them up.

* cif/CIFhier.c: ASSERT in cifFlatMaskHints accessed
  oldproprec->prop_value.prop_type, but prop_type is a top-level member
  of PropertyRecord. Changed to oldproprec->prop_type.

* extflat/EFargs.c: efLoadSearchPath was assigning a pointer to a
  string literal ("." in RO data), which callers later try to free or
  StrDup. Replaced with StrDup(path, ".") so the pointer always lives
  on the heap.

* router/rtrVia.c: rtrFollowName called RtrMilestonePrint("#"), but
  the function takes no arguments.

* sim/SimSelect.c: SimAddLabels called DBWLabelChanged with five
  arguments, but its real signature is (CellDef *, Label *, int).
  Replaced with the equivalent DBWAreaChanged call.

* windows/windView.c: extern declaration of DBMovePoint had return
  type void, but the function actually returns bool.
2026-05-06 09:58:20 +02:00
..
Makefile Makefile: whitespace only change 2025-07-29 10:50:32 -04:00
SimDBstuff.c Last set of changes to get non-Manhattan area and perimeter 2026-01-19 17:18:10 -05:00
SimExtract.c Last set of changes to get non-Manhattan area and perimeter 2026-01-19 17:18:10 -05:00
SimRsim.c SimRsim.c: removal of pre-POSIX.1-2001 select() interface ifdefs 2025-10-04 20:50:31 -04:00
SimSelect.c Fix five latent bugs surfaced while porting to WASM 2026-05-06 09:58:20 +02:00
sim.h First cut of pulling the TT_SIDE bit out of the tile database 2026-01-09 12:05:03 -05:00