Subject: Re: [sv-cc] Informal poll on constant naming convention
From: Andrzej Litwiniuk (Andrzej.Litwiniuk@synopsys.com)
Date: Fri Feb 28 2003 - 08:36:12 PST
> Yes, #defined CONSTANTS should be in all caps, everything else as per the normal
> rules. It is one of the few widely adopted coding conventions in the C world.
>
> Joao
I also vote (informally:-) for SV_ALL_CAPS for #defined CONSTANTS.
Andrzej
> -----Original Message-----
> Andrzej and I have a debate about two conflicting
> requirements for the naming convention in the .h files:
>
> 1) All names prefixed with "sv_"
> 2) All #define symbols capitalized
>
> Currently the #define's look like this:
>
> #define sv_SOMETHING_OR_OTHER ...
>
> My feeling is that we should allow function names to
> be prefixed with "sv_", and contant symbols to be
> prefixed with "SV_" (i.e. rule #2 has precedence
> over rule #1).
>
> Would you mind giving us your opinions on this matter?
>
> If no one responds, then Andrzej will just leave things
> as they are and we will have symbols like "sv_ALLCAPS".
>
> Thanks and regards,
> Doug
>
This archive was generated by hypermail 2b28 : Fri Feb 28 2003 - 08:36:59 PST