An import brings the types and constants its interface needs now
(sex#58): a module pub-imports what its pub forms hold, and sexc
refuses one that does not. Every unit had imported its whole
dependency chain in order to make up for it.
worldgen also pub-imports json, whose cJSON.h its pub fns take
pointers into; a type only C knows is not something sexc can check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A conditional expression as an operand keeps its parentheses now
(sex#59), so the clamps and offsets are written inline again. The
story's z direction stays a local: it is drawn before the distances,
and inlining it would reorder the draws.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
sexc now checks that importers can see every type a pub form holds,
and asks for pub where the type comes from another import.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A conditional as an operand loses its parentheses (sex#59): box-blur
allocated a quarter of its buffer, deep water got the shallow colour,
and verify's delta histogram wrote out of bounds into the height
classes. Plan.org quoted the corrupted count.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every stored riverDistance column matches. Plates are built from 25
ocean samples per zone rather than a region map per zone, and the
ocean distance from a ring search that finds what the mod's BFS does,
so a plate costs 0.08 s; workers cache a few, as a wide view spans
several.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>