done through chapter 12, user-defined functions

The file is over 800 lines now, and managing the forward-declerations
is getting tedious. An IDE would probably help -- do other people
just forward-declare EVERYTHING at the start of the file and then
group functions and structs thematically?