[Bf-committers] Naming rules
bf-committers@blender.org
bf-committers@blender.org
Fri, 27 Jun 2003 13:30:09 +0200
When I was ported Blender for MorphOS, I've found some naming pb with 2
typedef: Object & Library. I've resolved the pb but it's not a clean
solution :-(
This two names are very common and may be used in internal by system (like
Morphos).
So, for the "system independance" issue, why not using a naming rules as
the following one:
for public name:
<component>_xxxx ex: BLI_exit()
for local or static name:
<prefix>_<component>_xxx
where prefix may be:
p pointer
k constant
l locale to a component
s static
v variable
f function
e enumeration
s structure
u union
no prefix loop indice (i,j,k,...)
With this, public names doesn't overwrite system names
Regards,
Guillaume