From 0a14a32c784fdc9392e7b2776bbc6708622daf34 Mon Sep 17 00:00:00 2001 From: Zeev Suraski Date: Tue, 25 Apr 2000 10:10:44 +0000 Subject: Add useful macros --- Zend/zend_hash.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Zend/zend_hash.h') diff --git a/Zend/zend_hash.h b/Zend/zend_hash.h index 6347f21c56..2a5ef4035d 100644 --- a/Zend/zend_hash.h +++ b/Zend/zend_hash.h @@ -182,4 +182,11 @@ void zend_hash_display(HashTable *ht); END_EXTERN_C() +#define ZEND_INIT_SYMTABLE(ht) \ + ZEND_INIT_SYMTABLE_EX(ht, 2, 0) + +#define ZEND_INIT_SYMTABLE_EX(ht, n, persistent) \ + zend_hash_init(ht, n, NULL, ZVAL_PTR_DTOR, persistent) + + #endif /* _HASH_ */ -- cgit v1.2.1