Re: Using CPP for PHP [Was Re: [PHP-DEV] planning future BC Breaks - was Re: [PHP-DEV] fatal static call in php 6.0?]

From: Date: Mon, 29 May 2006 19:27:25 +0000
Subject: Re: 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  Groups: php.internals 
Request: Send a blank email to internals+get-23773@lists.php.net to get a copy of this message
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 <markus@fischer.name> 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: wcandillon@elv.enic.fr Tel: +33(0) 6 67 99 13 16 CV: http://wcandillon.netcv.org Resume: http://wcandillon.en.netcv.org

« previous php.internals (#23773) next »