From owner-freebsd-hackers Fri Jun 30 2:38:41 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dzungle.ms.mff.cuni.cz (dzungle.ms.mff.cuni.cz [195.113.19.80]) by hub.freebsd.org (Postfix) with ESMTP id 614F237BA4E for ; Fri, 30 Jun 2000 02:38:38 -0700 (PDT) (envelope-from horcicka@dzungle.ms.mff.cuni.cz) Received: from localhost (horcicka@localhost) by dzungle.ms.mff.cuni.cz (8.9.3/8.9.3) with SMTP id LAA02402 for ; Fri, 30 Jun 2000 11:38:36 +0200 (CEST) (envelope-from horcicka@dzungle.ms.mff.cuni.cz) Date: Fri, 30 Jun 2000 11:38:36 +0200 (CEST) From: Martin Horcicka To: freebsd-hackers@freebsd.org Subject: style(9) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm just reading the style(9) man page and I don't understand to two rules: 1. Citation: ============ The kernel has a name associated with parameter types, e.g., in the kernel use: void function(int fd); In header files visible to user land applications, prototypes that are visible must use either protected names or no names with the types. It is preferable to use protected names. e.g., use: void function(int); or: void function(int _fd); ============ Why is that necessary? 2. Citation: ============ Indentation is an 8 character tab. Second level indents are four spaces. while (cnt < 20) z = a + really + long + statement + that + needs + two lines + gets + indented + four + spaces + on + the + second + and + subsequent + lines. ============ a. What does it mean `second level indents'? Is it the indentation of expressions that cannot fit to one line (as in the example above) or is it any indentation except of the first tab? b. Aren't 8 characters too many? Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message