Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!rutgers!labrea!decwrl!pyramid!prls!mips!dce From: dce@mips.UUCP (David Elliott) Newsgroups: comp.sources.d Subject: Programs wanted - nroff and C input filters Message-ID: <610@quacky.UUCP> Date: Wed, 19-Aug-87 17:01:45 EDT Article-I.D.: quacky.610 Posted: Wed Aug 19 17:01:45 1987 Date-Received: Sat, 22-Aug-87 06:03:25 EDT Distribution: world Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 30 Does anyone have any programs or shell scripts to do the following? 1. Take C programs and add braces to all if, while, do, and for statements. For example, it should convert if (x == y) printf("x is y\n"); to if (x == y) { printf("x is y\n"); } Indentation is not important, since the indent command does all I need. 2. Take nroff input and separate sentences. It's a pain to take manual pages and try to remove a sentence when lines span sentences. For example, it should convert This is a sentence. This is a sentence that is fairly long and spans two lines. to This is a sentence. This is a sentence that is fairly long and spans two lines. -- David Elliott {decvax,ucbvax,ihnp4}!decwrl!mips!dce