🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2262

Re: Encouraging good coding standards - call for participation...

#2262
From: john p radigan
Date: Wed, 13 Mar 1996 12:39
24 lines
1547 bytes
Stan Ryckman (stanr@tiac.net) wrote:
: :Have you ever heard of GNU indent?  
: :run the two c files through indent before you diff them and everything will
: :work out fine.

: Good idea... except what I had in mind would have identified the
: line numbers in the original files when differences were found.  Also,
: an option would have allowed comments to be equal to all white space.

Diff has no knowledge of C, which is why you have to grind them through
indent first.  It's a good idea to use it in general, eliminates squabbling
over brace and other style issues that some people get embroiled in.

: Just curious, what would GNU indent do with:
: 	(a)	x+++y
: 	(b)	x++ +y
: 	(c)	x+ ++y
: ?
: (Note that two of these need to match, and one mustn't!)

It's broken if it doesn't match (b) since the language states that the next
token is the longest string of characters that consitutes one.

-jack-
Technical Details
Message-ID: <4i6fmo$ovh@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4gsee2$4r5@solutions.solon.com> <4hlala$4hn@solutions.solon.com> <4hqec9$1kf@solutions.solon.com> <4i2k02$8is@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: jradigan@davinci.netaxis.com (john p radigan)
Newsgroups: comp.lang.c.moderated
Subject: Re: Encouraging good coding standards - call for participation...
Date: 13 Mar 1996 06:39:52 -0600
Organization: NetAxis - Your link to the Internet!
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4i6fmo$ovh@solutions.solon.com>
References: <4gsee2$4r5@solutions.solon.com> <4hlala$4hn@solutions.solon.com> <4hqec9$1kf@solutions.solon.com> <4i2k02$8is@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com
X-Newsreader: TIN [version 1.2 PL2]