Does indent(1) have a KNF mode?
Chris Doherty
chris-freebsd at randomcamel.net
Mon Dec 8 12:18:11 PST 2003
On Mon, Dec 08, 2003 at 11:16:25AM -0800, Steve Kargl said:
> > No, but it probably should have. Somebody once suggested several years
> > ago the following options gave the closest appromixation of knf:
> >
> > -nbad -nbap -bbb -nbc -br -brs -c33 -cd33 -cdb -ce -ci4 -cli0 -di16 -fc1
> > -fca -hnl -i8 -ip4 -l79 -lp -npcs -nprs -psl -saf -sai -saw -sc -nsob
> > -nss -ts8
> >
> > A search of the archives for a few of those options may turn up the
> > original. If you'd like to conjure up a patch to add a knf mode, I'm
> > happy to test and commit it.
>
> Bill Fumerola (sp?) sent me an almost identical list. He
> had -bbo instead of -bbb and he also had -cp33.
I don't know how much (if at all) FreeBSD KNF differs from NetBSD KNF, but
http://cvsweb.netbsd.org/bsdweb.cgi/src/share/misc/indent.pro contains the
following:
-bap -br -ce -ci4 -cli0 -d0 -di0 -i8 -ip -l79 -nbc -ncdb -ndj -ei -nfc1
-nlp -npcs -psl -sc -sob
chris
-------------------------------
Chris Doherty
"I think," said Christopher Robin, "that we ought to eat
all our provisions now, so we won't have so much to carry."
-- A. A. Milne
-------------------------------
More information about the freebsd-hackers
mailing list