svn commit: r206102 - head/share/examples/indent

Andriy Gapon avg at
Fri Apr 2 16:06:47 UTC 2010

Author: avg
Date: Fri Apr  2 16:06:46 2010
New Revision: 206102

  add example 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
  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

  head/share/examples/indent/   (contents, props changed)

Added: head/share/examples/indent/
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/share/examples/indent/	Fri Apr  2 16:06:46 2010	(r206102)
@@ -0,0 +1,129 @@
+-bad -bap -nbbb -nbc -br -nbs -c41 -cd41 -cdb -ce -ci4 -cli0 -d0 -di8 -ndj
+-ei -nfc1 -nfcb -i8 -ip8 -l79 -lc77 -ldi0 -nlp -npcs -psl -sc -nsob -nv

More information about the svn-src-head mailing list