Simple pre-processing text

Ben Pfaff blp@cs.stanford.edu
28 Sep 2001 10:52:23 -0700


"Bennett, Daniel" <daniel.bennett@jnli.com> writes:

> You've almost answered your own question... if #include is the syntax you want,
> why not just use cpp?

cpp does transformations that may not be wanted; e.g., it tries
to interpret lines that begin with #, and it may diddle around
with whitespace almost arbitrarily.  Its output also includes
lines that begin with # to indicate beginnings of different
files, which would probably have to be filtered out in most
cases.

cpp isn't a great choice for a general preprocessor.