Date: Wed, 20 Mar 2002 22:01:08 -0500 From: mpd <mpd6334@cs.rit.edu> To: Peter Leftwich <Hostmaster@Video2Video.Com> Cc: Gary Kline <kline@thought.org>, FreeBSD Questions <FreeBSD-Questions@FreeBSD.Org> Subject: Re: K&R to ANSI? [nroff?] Message-ID: <20020320220108.A279@rochester.rr.com> In-Reply-To: <20020320214944.T47592-100000@earl-grey.cloud9.net>; from Hostmaster@Video2Video.Com on Wed, Mar 20, 2002 at 09:53:43PM -0500 References: <200203210239.g2L2dqm49467@tao.thought.org> <20020320214944.T47592-100000@earl-grey.cloud9.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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. > > These are odd little preprocessors that I'm playing around with, trying to > get it so the user can do something like "man iplog | <x>roff | grep -i > default" -- the ESC codes that boldify some of the letters prevent simple > grepping! :( > > -- > Peter Leftwich mike -- ___________________________________________________________ "AND THEN THEY SAID 'NO ONE LEAVES THIS COMPOUND ALIVE!!'" - Little Girl from "THE MR NUTTY SCHOOL OF PLACEMAT DESIGN" 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?20020320220108.A279>