1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

Clarify the structure element size ordering.

Obtained from:	OpenBSD style.9 1.38
This commit is contained in:
Diomidis Spinellis 2004-12-02 23:20:17 +00:00
parent 25ded1c0ae
commit 7078127540
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138327

View File

@ -278,7 +278,7 @@ other than the one being declared.)
Separate these identifiers from asterisks using a single space.
.Pp
When declaring variables in structures, declare them sorted by use, then
by size, and then in alphabetical order.
by size (largest to smallest), and then in alphabetical order.
The first category normally does not apply, but there are exceptions.
Each one gets its own line.
Try to make the structure