Files
Claude 7ae62003dd Generate classic Mac OS headers for clang from the definitions
tools/gen-headers.py turns defs/ into include/: one header per
definition file, Multiverse.h with all of them, and the header names of
Apple's Universal Interfaces. On 68k, calls become trap words through
raw_inline, and register-based traps are inline functions with register
variables; on PowerPC they are imports. Records use 68k alignment on
both, and 32-bit types are long, as in Apple's headers.

tests/run.sh compiles everything for both targets in C and C++, checks
record sizes against Inside Macintosh, and builds examples/hello.c,
which runs as a fat application on System 7.6.1 and Mac OS 8.1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B82eRRDDKyi26yxudMyvEb
2026-11-02 00:45:39 +00:00

3 lines
75 B
C

/* Memory.h: generated by tools/gen-headers.py. */
#include "Multiverse.h"