Forum: GNU Radio naming conventions for static class members

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ac73d95c8ccddff9ecae369bcb80a923?d=identicon&s=25 George Nychis (Guest)
on 2007-04-12 02:50
(Received via mailing list)

You brought up naming conventions in our convo, and mentioned the d_
prefix to class members.

After reading through the README.hacking file, I see there is a s_
convention from static
members in a class.  Should these:

static const int D_PORT_TYPE_RX = 0
static const int D_PORT_TYPE_TX = 1;


static const int S_PORT_TYPE_RX ?

- George
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2007-04-12 07:15
(Received via mailing list)
On Wed, Apr 11, 2007 at 08:48:09PM -0400, George Nychis wrote:
> ...
> become
> static const int S_PORT_TYPE_RX ?
> - George

For constants that aren't externally visible, no prefix is needed.
Just all caps.
This topic is locked and can not be replied to.