Changes to the reconstructed 1992 sources in
vendor/cosmore, applied at configure
time by cmake/PrepareCosmoreSources.cmake.
The submodule itself is never modified, so the difference between the original
and what is compiled is exactly this directory plus three mechanical
transformations.
Everything the transformations can express is done there rather than here: dropping Borland headers with no modern equivalent, commenting out the 16-bit inline assembly, and pinning the base types to their original widths. A patch exists only where that is not enough.
Each patch carries a preamble explaining the defect and why the change is correct. Six restore behaviour the port would otherwise have lost; one is a deliberate change and says so.
docs/porting-notes.md has the longer story of how
each was found.
Patches apply to the generated sources, after the transformations, not to the
submodule. To revise one, configure a build, edit a copy of the file in
build/<preset>/gen/, and diff it against the unmodified generated version.
The build fingerprints every generated file before and after each patch, so a patch that applies cleanly while changing nothing fails the configure step rather than silently doing nothing.
