Date: Fri, 2 Apr 2010 16:06:46 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/share/examples/indent indent.pro Message-ID: <201004021607.o32G73St069806@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
avg 2010-04-02 16:06:46 UTC
FreeBSD src repository
Added files:
share/examples/indent indent.pro
Log:
SVN rev 206102 on 2010-04-02 16:06:46Z by avg
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
Revision Changes Path
1.1 +129 -0 src/share/examples/indent/indent.pro (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004021607.o32G73St069806>
