Home
last modified time | relevance | path

Searched hist:"896 c58786c4fae86e0138618ac9a413308ccf7dc" (Results 1 – 1 of 1) sorted by relevance

/freebsd/share/examples/indent/
H A Dindent.prodiff 896c58786c4fae86e0138618ac9a413308ccf7dc Fri Apr 02 18:06:46 CEST 2010 Andriy Gapon <avg@FreeBSD.org> add example indent.pro file believed to produce code with minimal differences from KNF

This file is what bde uses!
With addition of some types from queue(3) by hps.
Please note that the output will not be KNF and currently it's not
possible to achieve correct KNF with any combination of options.
indent(1) needs to be made smarter.

Some issues:
o indent produces a space between a queue type macro and opening
parenthesis
o indent produces a tab before __packed and __aligned
o indent produce a space after #define

bde also notes difference in the following options between this profile
and profile in /usr/src/admin/style of 4.4BSD:
-cdb -ei -ip8 -nsob

Also, NetBSD uses -di0 instead of -di8.

Location for the profile is suggested by jh.

Submitted by: Hans Petter Selasky (parts)
Obtained from: bde :-)
MFC after: 10 days
X-ToDo: make indent able to produce proper (perfect) KNF
X-Perhaps-ToDo: make KNF default output
896c58786c4fae86e0138618ac9a413308ccf7dc Fri Apr 02 18:06:46 CEST 2010 Andriy Gapon <avg@FreeBSD.org> add example indent.pro file believed to produce code with minimal differences from KNF

This file is what bde uses!
With addition of some types from queue(3) by hps.
Please note that the output will not be KNF and currently it's not
possible to achieve correct KNF with any combination of options.
indent(1) needs to be made smarter.

Some issues:
o indent produces a space between a queue type macro and opening
parenthesis
o indent produces a tab before __packed and __aligned
o indent produce a space after #define

bde also notes difference in the following options between this profile
and profile in /usr/src/admin/style of 4.4BSD:
-cdb -ei -ip8 -nsob

Also, NetBSD uses -di0 instead of -di8.

Location for the profile is suggested by jh.

Submitted by: Hans Petter Selasky (parts)
Obtained from: bde :-)
MFC after: 10 days
X-ToDo: make indent able to produce proper (perfect) KNF
X-Perhaps-ToDo: make KNF default output