From owner-freebsd-questions Wed Mar 20 22:22: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tao.thought.org (sense-kline-249.oz.net [216.39.168.249]) by hub.freebsd.org (Postfix) with ESMTP id 1AA9637B440 for ; Wed, 20 Mar 2002 22:21:47 -0800 (PST) Received: (from kline@localhost) by tao.thought.org (8.11.3/8.11.3) id g2L6LbB49907; Wed, 20 Mar 2002 22:21:37 -0800 (PST) (envelope-from kline) Date: Wed, 20 Mar 2002 22:21:37 -0800 From: Gary Kline To: mpd Cc: Peter Leftwich , Gary Kline , FreeBSD Questions Subject: Re: K&R to ANSI? [nroff?] Message-ID: <20020320222137.A49877@tao.thought.org> References: <200203210239.g2L2dqm49467@tao.thought.org> <20020320214944.T47592-100000@earl-grey.cloud9.net> <20020320220108.A279@rochester.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20020320220108.A279@rochester.rr.com>; from mpd6334@cs.rit.edu on Wed, Mar 20, 2002 at 10:01:08PM -0500 X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing 15 years of service to the Unix community Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 -- Gary Kline kline@thought.org www.thought.org Public service Unix To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message