Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Mar 2002 22:35:13 +0100
From:      Cliff Sarginson <csfbsd@raggedclown.net>
To:        FreeBSD Questions <FreeBSD-Questions@FreeBSD.ORG>
Subject:   Re: K&R to ANSI? [nroff?]
Message-ID:  <20020322213513.GD4940@raggedclown.net>
In-Reply-To: <20020320222137.A49877@tao.thought.org>
References:  <200203210239.g2L2dqm49467@tao.thought.org> <20020320214944.T47592-100000@earl-grey.cloud9.net> <20020320220108.A279@rochester.rr.com> <20020320222137.A49877@tao.thought.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 20, 2002 at 10:21:37PM -0800, Gary Kline wrote:
> On Wed, Mar 20, 2002 at 10:01:08PM -0500, mpd wrote:
> > On Wed, Mar 20, 2002 at 09:53:43PM -0500, Peter Leftwich wrote:
> > > On Wed, 20 Mar 2002, Gary Kline wrote:
> > > >     Does anybody know if there are existant tools that can transform K&R functions to the standard?
> > > >     foo (n)
> > > >     int ;
> > > >     to
> > > >     foo (int n)
> > > >     I'm tweaking one of our more ancient ports and would like to update the params.
> > > >     thanks for any clues,
> > > >     gary
> > > > --
> > > >    Gary Kline     kline@thought.org   www.thought.org     Public service Unix
> > > 
> > > What are K&R functions and what do you mean by "the standard?"
> > > 
> > > I know you are asking about C code and not command-line stuff, but would
> > > any of these commands help you with your cause "nroff" "groff" "troff"?
> > 
> > No. Those don't format this kind of text. He's looking for something
> > that takes old style (pre-ANSI) C code and converts it to ANSI C.
> > 
> > I have never encountered a kr2ansi converter that even came
> > close to being complete. I could generally do it faster by 
> > hand. Maybe that's the reason there's so much k&r code in
> > my /usr/src directory.
> > 
> 
> 	Okay, I'll take your word for it!  I've always done it
> 	by hand; just thought there might be some new gismo...
> 
> 	gary
> 
> 

Only wimps use prototypes :)

-- 
Regards
   Cliff Sarginson -- <csfbsd@raggedclown.net>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020322213513.GD4940>