From: Gerrit Renker <gerrit@erg.abdn.ac.uk>
To: dccp@vger.kernel.org
Subject: Re: [RFC]: field name identifier conventions
Date: Mon, 22 Oct 2007 14:50:50 +0000 [thread overview]
Message-ID: <200710221550.50989@strip-the-willow> (raw)
In-Reply-To: <200710201654.35326@strip-the-willow>
Thanks everyone for replying, below is the summary of earlier emails.
1) Ian wrote:
| I think the best way to do this is once Arnaldo agrees and then
| prepare a big patch to do this. If we don't get Arnaldo's buy in then
| it will be hell to maintain the patch set.
Fully agree - Arnaldo is the maintainer and as such it is up to him to decide on such things
affecting global consistency. If there is a new naming scheme which finds his approval, I am
more than happy to update the entire test tree, but if not I wouldn't like to change
the patches: these should reflect the existing DCCP style/conventions.
2) All agreed that the naming scheme could be changed.
3) There are the following suggestions:
* Arnaldo: "->c2tx_"
* Leandro: "tx->c4"
If we combine these suggestions, considering that for the CCID sockets this will be likely
`hcrx' for RX sockets and `hctx' for TX sockets (like referring to struct sk_buff as skb),
then Leandro's scheme is nice and small:
* hcrx->c3_last_counter
* hcrx->c4_last_counter
* hctx->c3_last_win_count
* hctx->c4_no_feedback_timer
In conclusion, what about the following naming scheme:?
* hctx->c"N"_FIELDNAME /* N = CCID number, 0..255 */
* hcrx->c"N"_FIELDNAME
* avr->avr_FIELDNAME /* r for record ? */
* av->av_FIELDNAME /* or drop the `av/avr' ? */
The actual patch will probably cost less work than making this scheme consistent.
prev parent reply other threads:[~2007-10-22 14:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-20 15:54 [RFC]: field name identifier conventions Gerrit Renker
2007-10-20 21:03 ` Arnaldo Carvalho de Melo
2007-10-20 21:08 ` Arnaldo Carvalho de Melo
2007-10-21 1:56 ` Ian McDonald
2007-10-21 2:54 ` Łeandro Sales
2007-10-22 11:20 ` Tommi Saviranta
2007-10-22 14:50 ` Gerrit Renker [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200710221550.50989@strip-the-willow \
--to=gerrit@erg.abdn.ac.uk \
--cc=dccp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.