Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!tut.cis.ohio-state.edu!bloom-beacon!bu-cs!buengc!bph From: bph@buengc.BU.EDU (Blair P. Houghton) Newsgroups: comp.lang.c Subject: Re: Want a way to strip comments from a Message-ID: <2369@buengc.BU.EDU> Date: 23 Mar 89 04:28:52 GMT References: <7150@siemens.UUCP> <9900010@bradley> <4896@cbnews.ATT.COM> <16078@cup.portal.com> <16492@mimsy.UUCP> Reply-To: bph@buengc.bu.edu (Blair P. Houghton) Followup-To: comp.lang.c Distribution: na Organization: Boston Univ. Col. of Eng. Lines: 15 In article <16492@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >In article <16078@cup.portal.com> Tim_CDC_Roberts@cup.portal.com writes: >>When scanning the result of preprocessing a nontrivial C program with >>many include files, one finds dozens (in some cases hundreds) of blank >>lines. ... Why not eliminate them and issue a #line instead? > >Why bother? Typically there are at most a few tens in a row. It is >probably faster to count 20 blank lines than to process one >`#line 1234' directive. Howsabout 'cat -s file.c | whatever' or just 'more -s file.c' ? --Blair "What is the sound of one Usener posting...many times?"