Commit Graph

6 Commits

Author SHA1 Message Date
2bc07a5a5f refuse a pub realization of a spec importers cannot see
It failed in whichever importer named the module before the spec's,
pointing at the module, where a hidden type is refused in the module
already: so is this, the remedy the same.
2026-10-19 16:06:13 +03:00
9af5360131 count a unit among its own imports
Two modules importing each other with pub hand the unit its own
interface back, and its types were defined twice.
2026-10-19 16:06:13 +03:00
eafa11a5be give importers the private macros a pub one expands into
Only pub macros crossed, so one built on a private macro expanded in
the importer into a call of a C function nothing defines.
2026-10-19 16:05:23 +03:00
d8c85d9d95 look for an import beside the file it is written in
Imports were looked for from the unit's directory, so a module in a
subdirectory could not import its neighbours: a pub import failed, a
private one lost its handle declarations, and --public-interface changed
with where sexc ran.
2026-10-19 16:05:16 +03:00
77acd6d160 drop the default SEXC from the check scripts' usage 2026-10-19 16:05:15 +03:00
a4c32a71d2 check modules and exit codes with the test egg
Written as shell inside make, a check said only that it failed and left
the reason to rerunning it by hand; now each says what it expected.
2026-10-19 16:05:08 +03:00