summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAaron Campbell <aaron@cvs.openbsd.org>2001-01-25 18:14:06 +0000
committerAaron Campbell <aaron@cvs.openbsd.org>2001-01-25 18:14:06 +0000
commitfeac95ce2bdecafb062faf1874e882ef1962569d (patch)
tree68003b14e88f40c5ac658a77f50bc7aca137d06d /share
parentd5e76e837616d3a05f370bb66cb83d3f03beb367 (diff)
Clarify that local variable declarations should be sorted by size largest to
smallest; smart@monkey.org
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/style.98
1 files changed, 4 insertions, 4 deletions
diff --git a/share/man/man9/style.9 b/share/man/man9/style.9
index a6620016f1c..fdd11191aba 100644
--- a/share/man/man9/style.9
+++ b/share/man/man9/style.9
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: style.9,v 1.11 2000/12/21 15:41:26 aaron Exp $
+.\" $OpenBSD: style.9,v 1.12 2001/01/25 18:14:05 aaron Exp $
.\"
.Dd August 19, 1999
.Dt STYLE 9
@@ -183,7 +183,7 @@ enum enumtype { ONE, TWO } et;
.Ed
.Pp
When declaring variables in structures, declare them sorted by use, then
-by size, and then by alphabetical order.
+by size (largest to smallest), then by alphabetical order.
The first category normally doesn't apply, but there are exceptions.
Each one gets its own line.
Put a tab after the first word, i.e., use
@@ -403,8 +403,8 @@ function(a1, a2, fl, a4)
{
.Ed
.Pp
-When declaring variables in functions declare them sorted by size,
-then in alphabetical order; multiple ones per line are okay.
+When declaring variables in functions declare them sorted by size (largest to
+smallest), then in alphabetical order; multiple ones per line are okay.
Old style function declarations can go on the same line.
ANSI style function declarations should go in the include file
.Dq Pa extern.h .