From owner-freebsd-doc Wed Nov 6 14:20: 7 2002 Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 601CA37B404 for ; Wed, 6 Nov 2002 14:20:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8937543E42 for ; Wed, 6 Nov 2002 14:20:03 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id gA6MK3x3040235 for ; Wed, 6 Nov 2002 14:20:03 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id gA6MK3AA040234; Wed, 6 Nov 2002 14:20:03 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C714A37B401 for ; Wed, 6 Nov 2002 14:17:25 -0800 (PST) Received: from albatross.prod.itd.earthlink.net (albatross.mail.pas.earthlink.net [207.217.120.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0CFDC43E42 for ; Wed, 6 Nov 2002 14:17:20 -0800 (PST) (envelope-from spcoltri@omcl.org) Received: from h-66-167-131-183.phndaz91.covad.net ([66.167.131.183] helo=hrothgar.omcl.org) by albatross.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 189YU6-0001Zr-00 for FreeBSD-gnats-submit@freebsd.org; Wed, 06 Nov 2002 14:17:15 -0800 Received: from hrothgar.omcl.org (localhost [127.0.0.1]) by hrothgar.omcl.org (8.12.6/8.12.6) with ESMTP id gA6MHi0K001419 for ; Wed, 6 Nov 2002 15:17:45 -0700 (MST) (envelope-from spcoltri@omcl.org) Received: (from spcoltri@localhost) by hrothgar.omcl.org (8.12.6/8.12.6/Submit) id gA6MHi4q001418; Wed, 6 Nov 2002 15:17:44 -0700 (MST) Message-Id: <200211062217.gA6MHi4q001418@hrothgar.omcl.org> Date: Wed, 6 Nov 2002 15:17:44 -0700 (MST) From: Steve Coltrin Reply-To: Steve Coltrin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: docs/45011: style(9): '->' and '.' don't require spaces Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 45011 >Category: docs >Synopsis: style(9): '->' and '.' don't require spaces >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Wed Nov 06 14:20:02 PST 2002 >Closed-Date: >Last-Modified: >Originator: Steve Coltrin >Release: FreeBSD 4.7-STABLE i386 >Organization: Orbital Mind Control Lasers >Environment: System: FreeBSD hrothgar.omcl.org 4.7-STABLE FreeBSD 4.7-STABLE #1: Thu Oct 10 20:14:28 MDT 2002 spcoltri@hrothgar.omcl.org:/usr/obj/usr/src/sys/HROTHGAR i386 >Description: Per style(9): Unary operators do not require spaces, binary operators do. This differs from the universal usage of '->' and '.'. >How-To-Repeat: >Fix: --- src/share/man/man9/style.9.old Wed Nov 6 15:10:20 2002 +++ src/share/man/man9/style.9 Wed Nov 6 15:12:20 2002 @@ -459,7 +459,11 @@ exit(error); .Ed .Pp -Unary operators do not require spaces, binary operators do. +Unary operators do not require spaces, binary operators other than +.Ql \&-> +and +.Ql \&. +do. Do not use parentheses unless they are required for precedence or unless the statement is confusing without them. Remember that other people may >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message