Re: [PATCH] Zend reference macros
| From: | Sterling Hughes | Date: | Mon, 11 Feb 2002 19:45:50 +0000 |
| Subject: | Re: [PATCH] Zend reference macros | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-79956@lists.php.net to get a copy of this message | ||
> All,
>
> This patch adds Z_ macros for dealing with references. Could someone
> with Zend Karma apply this, or grant me Karma to apply this?
>
-1
You should never access these fields directly...
-Sterling
> Thanks,
> -jason
>
> Index: zend_operators.h
> ===================================================================
> RCS file: /repository/Zend/zend_operators.h,v
> retrieving revision 1.50
> diff -u -r1.50 zend_operators.h
> --- zend_operators.h 6 Jan 2002 15:21:09 -0000 1.50
> +++ zend_operators.h 11 Feb 2002 19:36:03 -0000
> @@ -264,4 +264,12 @@
> #define Z_TYPE_P(zval_p) Z_TYPE(*zval_p)
> #define Z_TYPE_PP(zval_pp) Z_TYPE(**zval_pp)
>
> +#define Z_REFCOUNT(zval) (zval).refcount
> +#define Z_REFCOUNT_P(zval_p) Z_REFCOUNT(*zval_p)
> +#define Z_REFCOUNT_PP(zval_pp) Z_REFCOUNT(**zval_pp)
> +
> +#define Z_IS_REF(zval) (zval).is_ref
> +#define Z_IS_REF_P(zval_p) Z_IS_REF(*zval_p)
> +#define Z_IS_REF_PP(zval_pp) Z_IS_REF(**zval_pp)
> +
> #endif
>
> --
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
-Sterling
"To live is the rarest thing in the world. Most people exist,
that is all."
- Oscar Wilde