Documentation for the Mac OS 7.1 Source Code Reconstruction
This guide describes the workflow for contributing to the project and understanding the codebase structure.
OS/: Kernel and core services.Drivers/: Hardware drivers.Interfaces/: Public API headers.Internal/: Private headers and stubs.Make/: Build configuration.Build/: Generated artifacts (created during build).The codebase follows Apple’s internal style from the early 90s.
InitWindows, NewPtr)./* ... */ in C, (* ... *) in Pascal, ; in Assembly.OS/ or Drivers/..c or .a).Make/MainCode.Make file to include your new object in the link list.
patch_makefile.sh logic to append it if you don’t want to edit the makefile directly../build_system7.sh to rebuild.Since this is a cross-compiled OS kernel, debugging is challenging.
Internal/C/MiniFinder.c to create simple test harnesses that run immediately after boot.There is no unit test framework in the modern sense. Testing involves:
MiniFinder logic..rsrc).