CPB Mailing List

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BCB1] Preprocessor blues



Hello!
  I am trying to us the Builder command line tools to maintain a web site.
For those not familiar with this idea, you use make and the C preprocessor
to build you web site. This allows, for example, a menu bar to be written
once and #include'd in the html files (I don't like frames).

  Anyway, my problem... I need the preprocessor to produce 'clean' output.
That is output with no line numbers and nothing extra added. The first
part can be obtained by using the option -P-, so you don't get:
  head.inc 1: <html>
  head.inc 2: 
  head.inc 3: <head>
This was all that was needed using CPP. Builders latest version, CPP32,
adds #line derectives if -P- is specified. This completely destroys the
html file and I can't find a way to disable this behaviour. Does anybody
have any ideas?

  I know it is not strictly a programming problem, but it only happens
under Builder (version 1, I haven't got version 3).

Thanks,
 ___
|_-<                      mailto://sgb97r@ecs.soton.ac.uk
/__/teve.                 http://www.ecs.soton.ac.uk/~sgb97r


W Komornicki's Home Page | Main Index | Thread Index