Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 1999 07:54:18 +1100
From:      Peter Jeremy <peter.jeremy@auss2.alcatel.com.au>
To:        current@FreeBSD.ORG
Subject:   Re: indent(1) and style(9) (was: btokup() macro in sys/malloc.h)
Message-ID:  <99Jan29.074452est.40330@border.alcanet.com.au>

next in thread | raw e-mail | index | archive | help
Luigi Rizzo <luigi@labinfo.iet.unipi.it>
>not speaking about vinum, but to me, the indentation of 8 char and
>line length of 80 chars are almost mutually exclusive.
>
>See e.g. tcp_input.c ip_input.c and many network device drivers as
>an example -- basically all places where, for efficiency reasons,
>the code tries to expand in-line various block,

According to most of the coding standards I've read, readability
(and hence maintainability) come before efficiency.  That said, I
agree that efficiency _is_ an issue within the kernel's critical
paths (the TCP/IP code being one).

Judicious use of inline functions (and macros) should help move
code to the left - and may even make it more understandable.

Peter

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?99Jan29.074452est.40330>