c indenting

utzoo!decvax!genradbo!grkermit!chris utzoo!decvax!genradbo!grkermit!chris
Mon Oct 25 13:25:43 AEST 1982


There is a c program formatter already available.  It is called indent, and
comes with Gosling's EMACS.  It will take arguments to allow customization,
or will read a .indent file in your home directory.  It will produce any of
the major indentation styles on demand except my favorite:

	if (test)
		{
		function();
		}

But that's easy to correct in EMACS.  I use it whenever I need to really see
what's going on in EMACS' code, or anything else that's formatted to someone
else's tastes.  
So stop arguing about enforcing standards for everyone.  Local standards are
fine and useful, and will vary from place to place.



More information about the Comp.lang.c mailing list