Re: cvs: php4 /scripts conv_z_macros
| From: | Sascha Schumann | Date: | Wed, 26 Sep 2001 12:53:52 +0000 |
| Subject: | Re: cvs: php4 /scripts conv_z_macros | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-7566@lists.php.net to get a copy of this message | ||
On Wed, 26 Sep 2001, Jeroen van Wolffelaar wrote:
> jeroen Wed Sep 26 04:32:55 2001 EDT
>
> Modified files:
> /php4/scripts conv_z_macros
> Log:
> Now fixes virtually everything.
>
> Sorry, but I assumed that the original script was correct. Unfortunately, that
> wasn't the case.
Actually, it is impossible to write a simple script which
converts all cases reliably. There are certain ambiguities
in the C constructs which are not resolvable by a simple sed
substitution. And thus, the original script focused on what
can be done without damaging the source-code.
One could change indent or some other tool which fully
understands the semantics of the C language to automatically
convert most of the source-code though.
Good luck,
- Sascha Experience IRCG
http://schumann.cx/ http://schumann.cx/ircg