Justtechjobs.com Find a programming school near you






Online Campus Both


php4-beta | 200004

Re: [PHP4BETA] cvs: /php4 php.h /php4/ext/standard file.c From: Andi Gutmans (andi <email protected>)
Date: 05/01/00

At 09:32 PM 4/30/00 -0400, Sterling Hughes wrote:
>Andi Gutmans wrote:
> >
> > andi Sun Apr 30 09:32:37 2000 EDT
> >
> > Modified files:
> > /php4 php.h
> > /php4/ext/standard file.c
> > Log:
> > - Take Sascha's advice and create on V_OPEN() which replaces open().
> > - Unlike the other macros its argument has to have braces around it, for
> > - example, open(filename, flags) becomse V_OPEN((filename, flags))
> > - Made small conversion to new Zend macros. The ugly
> (*foo)->value.str.val
> > - now becomes Z_STRVAL_PP(foo). PP means pointer pointer, there also
> exist
> > - single P's for example foo->value.str.val becomes Z_STRVAL_P(foo).
>
>Is this the start of the Perlifying the internals:
>
>SvPv(foo) -- Perl
>Z_STRVAL_PP(foo) -- Zend

I have no idea how Perl does it, we just created these macro's because it
started to be annoying to write (*foo)->value.str.val (Z_STRVAL_PP(foo)),
foo->value.lval (Z_LVAL_P(foo)) and so on. I personally think they are
quite nice and readable.

Andi

---
Andi Gutmans <andi <email protected>>
http://www.zend.com/

-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>