Document the C/C++ code guidelines

This is a distillation of a discussion on the mailing list regarding C/C++ extensions.