I'm tweaking the internals manual to describe the new rules. In the meantime, the files buildsym.[hc] should serve as the exemplar of how to handle function declarations and definitions. Stan