From: Andrew C. <an...@an...> - 1999-12-14 17:31:09
|
Hi, I personally also prefer the K&R Style instead of GNU. Adding the -bl option fixes the Brackets Perhaps we can use that standard. ie indent -kr -bl filename.c The ideal is to attempt to use that same standard on each file. Failure to to this will cause the whole file to be checked in each time with CVS. How about a comment line near the beginning of each file which shows what switches were used with indent. See the above example. Regards Andrew On Mon, 13 Dec 1999, Glen Colbert wrote: > Date: Mon, 13 Dec 1999 17:44:27 -0700 > From: Glen Colbert <gco...@US...> > Reply-To: tin...@so... > To: tin...@so... > Subject: RE: [Tiny-cobol-users] Coding Standard. > > > -----Original Message----- > > From: tin...@so... > > [mailto:tin...@so...]On Behalf Of Andrew > > Cameron > > Sent: Monday, December 13, 1999 10:41 AM > > To: tin...@so... > > Subject: [Tiny-cobol-users] Coding Standard. > > > I would like to suggest that all C code be beautified by using the GNU > > indent program with the gnu coding standard. > > I'm probably the worst violator of these standards. I can find my block > errors easier if the starting and ending brackets stand alone on a line and > are indented to the same level (as opposed to having the starting bracket > appear where ever and the ending bracket indented by the level of nesting it > implies). > > This aside, we want this to become the GNU Cobol (Cobol is not quite an > acronym). I am willing to mangle my style in the interests of the project. > I will, however, still write using my indention method, then run the code > through a 'Mangler' to make it match the standard. > > Would it be possible to compromise on this, leaving each of us to use our > own style, then 'beautifying' or 'mangling' the source when we build a > release? > > Glen > > > _______________________________________________ > Tiny-cobol-users mailing list > Tin...@li... > http://lists.sourceforge.net/mailman/listinfo/tiny-cobol-users > ----------------------------------------------------------------------------- Andrew Cameron Internet : an...@an... X.400 : C=ZA G=Andrew S=Cameron Admd=TELKOM400 ---------------------------------------------------------------------------- |