Want a way to strip comments from a
Chris Torek
chris at mimsy.UUCP
Thu Mar 23 01:56:20 AEST 1989
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.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list