Using CPP for PHP [Was Re: [PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?]
| From: | Markus Fischer | Date: | Mon, 29 May 2006 07:40:22 +0000 |
| Subject: | Using CPP for PHP [Was Re: [PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?] | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-23764@lists.php.net to get a copy of this message | ||
-----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-----