Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2000 10:56:10 +0200 (CEST)
From:      Martin Horcicka <horcicka@dzungle.ms.mff.cuni.cz>
To:        freebsd-questions@freebsd.org
Subject:   style(9)
Message-ID:  <Pine.BSF.3.96.1000630102521.2033A-100000@dzungle.ms.mff.cuni.cz>

next in thread | raw e-mail | index | archive | help
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
   any indentation except of the first level?

b. Aren't 8 characters too many?


Martin



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.1000630102521.2033A-100000>