Want a way to strip comments from a

Blair P. Houghton bph at buengc.BU.EDU
Thu Mar 23 14:28:52 AEST 1989


In article <16492 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
>In article <16078 at cup.portal.com> Tim_CDC_Roberts at 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?"



More information about the Comp.lang.c mailing list