Try cpp -w -P -C <in.php >out.php 2>/dev/null if you don't want to reinvent the wheel :-)
It's very limited! It's not implementing #line macro for php by example. On 5/29/06, Markus Fischer <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, Christian Schneider wrote: > William Candillon wrote: >> I think that a macro will be a very nice and powerful solution to this >> problem but according to me it needs to be done by an external tool. > > That already exists ;-) > > Try > cpp -w -P -C <in.php >out.php 2>/dev/null > if you don't want to reinvent the wheel :-) That's really a very useful thing. I just want to mention that it may be necessary to also use -traditional-cpp so white spaces don't get messed up. - - Markus -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEeqVm1nS0RcInK9ARAvw1AKCkRy0DcbWpZc1UWKqPCq9DtA7CaQCglHqc +zre6WvuUGUMpszoEZpgdDU= =AU8I -----END PGP SIGNATURE----- -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
-- William Candillon Telecom Lille Student E-mail: [EMAIL PROTECTED] Tel: +33(0) 6 67 99 13 16 CV: http://wcandillon.netcv.org Resume: http://wcandillon.en.netcv.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php