Change comment style to use @foo rather than FOO
... when referring to a function's parameter or a struct/union's member. The idea of using FOO comes from the GNU coding standards: The comment on a function is much clearer if you use the argument names to speak about the argument values. The variable name itself should be lower case, but write it in upper case when you are speaking about the value rather than the variable itself. Thus, "the inode number NODE_NUM" rather than "an inode". Upcasing names is problematic for a case-sensitive language like C, because it can create ambiguity. Moreover, it's too much shouting for my taste. GTK-Doc's convention to prefix the identifier with @ makes references to variables stand out nicely. The rest of the GTK-Doc conventions make no sense for us, however. Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
parent
5cff5022a9
commit
9f25de3dce
77 changed files with 633 additions and 633 deletions
|
@ -65,10 +65,10 @@ military_control(struct sctstr *sp)
|
|||
}
|
||||
|
||||
/*
|
||||
* Ask user to confirm abandonment of sector SP, if any.
|
||||
* If removing AMNT commodities of type VTYPE and the land units in
|
||||
* LIST would abandon their sector, ask the user to confirm.
|
||||
* All land units in LIST must be in this sector. LIST may be null.
|
||||
* Ask user to confirm abandonment of sector @sp, if any.
|
||||
* If removing @amnt commodities of type @vtype and the land units in
|
||||
* @list would abandon their sector, ask the user to confirm.
|
||||
* All land units in @list must be in this sector. @list may be null.
|
||||
* Return zero when abandonment was declined, else non-zero.
|
||||
*/
|
||||
int
|
||||
|
@ -91,10 +91,10 @@ abandon_askyn(struct sctstr *sp, i_type vtype, int amnt,
|
|||
}
|
||||
|
||||
/*
|
||||
* Would removing this stuff from SP abandon it?
|
||||
* Consider removal of AMNT commodities of type VTYPE and the land
|
||||
* units in LIST.
|
||||
* All land units in LIST must be in this sector. LIST may be null.
|
||||
* Would removing this stuff from @sp abandon it?
|
||||
* Consider removal of @amnt commodities of type @vtype and the land
|
||||
* units in @list.
|
||||
* All land units in @list must be in this sector. @list may be null.
|
||||
*/
|
||||
int
|
||||
would_abandon(struct sctstr *sp, i_type vtype, int amnt,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue