next up previous contents
Next: ``Quick'', ``slow'' and ``in-place'' Up: Conventions and style Previous: Conventions and style   Contents

Function/name prefixes and case

All Gandalf functions begin with the gan_... prefix, to minimise the possibility of name conflicts. Function names are written in lower case, with a few exceptions where upper case is used for single letters in a function name. Defined constants and enum values are written in upper case, for instance GAN_TRUE and GAN_FALSE for the boolean type Gan_Bool. Structure, union and enum type names are capitalised, for instance Gan_List, Gan_Vector and Gan_Image, the names of the Gandalf linked list, vector and image structures.



2006-03-17