Re: [PHP-DEV] userland macros

2003-08-18 Thread Timm Friebe
On Mon, 2003-08-18 at 21:13, Timm Friebe wrote: [...] > Notes on command line arguments passed to cc: > > -E execute preprocessor only > -P do not generate # comments > -x c Set language to "C". > -C leave comments intact Oops, almost forgot: You can use -imacros if you want to put your ma

Re: [PHP-DEV] userland macros

2003-08-18 Thread Timm Friebe
On Mon, 2003-08-18 at 20:56, Cristiano Duarte wrote: > Is possible to implement userland macros in a PHP extension or it can > only be implemented in the core? A "userland" solution could be to use cc -E on your .php files. > I know that macros is a preprocessor task and I think PHP has no > pre

Re: [PHP-DEV] userland macros

2003-08-18 Thread Wojtek Meler
Cristiano Duarte wrote: Is possible to implement userland macros in a PHP extension or it can only be implemented in the core? I know that macros is a preprocessor task and I think PHP has no preprocessor (does it?). So it's possible to implement a preprocessor ? I think you can use stream wra

[PHP-DEV] userland macros

2003-08-18 Thread Cristiano Duarte
Is possible to implement userland macros in a PHP extension or it can only be implemented in the core? I know that macros is a preprocessor task and I think PHP has no preprocessor (does it?). So it's possible to implement a preprocessor ? An example (or something like that): #define DEFAULT_