From owner-freebsd-questions Fri Mar 22 13:35:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from post-11.mail.nl.demon.net (post-11.mail.nl.demon.net [194.159.73.21]) by hub.freebsd.org (Postfix) with ESMTP id C5BD037B41B for ; Fri, 22 Mar 2002 13:35:14 -0800 (PST) Received: from [212.238.194.207] (helo=mailhost.raggedclown.net) by post-11.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 16oWgs-000AJF-00 for FreeBSD-Questions@FreeBSD.ORG; Fri, 22 Mar 2002 21:35:14 +0000 Received: from willow.raggedclown.net (willow.raggedclown.intra [192.168.1.10]) by mailhost.raggedclown.net (Ragged Clown Mail Gateway [oz]) with ESMTP id C3DB748817 for ; Fri, 22 Mar 2002 22:35:12 +0100 (CET) Received: by willow.raggedclown.net (Ragged Clown Host [willow], from userid 1005) id BD408225C5; Fri, 22 Mar 2002 22:35:13 +0100 (CET) Date: Fri, 22 Mar 2002 22:35:13 +0100 From: Cliff Sarginson To: FreeBSD Questions Subject: Re: K&R to ANSI? [nroff?] Message-ID: <20020322213513.GD4940@raggedclown.net> References: <200203210239.g2L2dqm49467@tao.thought.org> <20020320214944.T47592-100000@earl-grey.cloud9.net> <20020320220108.A279@rochester.rr.com> <20020320222137.A49877@tao.thought.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020320222137.A49877@tao.thought.org> User-Agent: Mutt/1.3.27i 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: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 -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message