RE: [sv-cc] Informal poll on constant naming convention


Subject: RE: [sv-cc] Informal poll on constant naming convention
From: Joao Geada (Joao.Geada@synopsys.com)
Date: Thu Feb 27 2003 - 19:30:45 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.

(also agree with John's comment about not having redudant underbars, but I
don't feel strongly about it)

Joao
==============================================================================
Joao Geada, PhD Principal Engineer Verif Tech Group
Synopsys, Inc TEL: (508) 263-8083
344 Simarano Drive, Suite 300, FAX: (508) 263-8069
Marlboro, MA 01752, USA
==============================================================================

-----Original Message-----
From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org]On Behalf Of
Warmke, Doug
Sent: Thursday, February 27, 2003 1:38 AM
To: 'sv-cc@server.eda.org'
Subject: [sv-cc] Informal poll on constant naming convention

Team,

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 : Thu Feb 27 2003 - 19:31:52 PST