Lines Matching refs:elem
38 #define SPL_LLIST_RC(elem) Z_EXTRA((elem)->data) argument
40 #define SPL_LLIST_DELREF(elem) if (!--SPL_LLIST_RC(elem)) { \ argument
41 efree(elem); \
44 #define SPL_LLIST_CHECK_DELREF_EX(elem, on_free) if ((elem) && !--SPL_LLIST_RC(elem)) { \ argument
45 efree(elem); \
49 #define SPL_LLIST_CHECK_DELREF(elem) SPL_LLIST_CHECK_DELREF_EX(elem, ;) argument
51 #define SPL_LLIST_ADDREF(elem) SPL_LLIST_RC(elem)++ argument
52 #define SPL_LLIST_CHECK_ADDREF(elem) if (elem) SPL_LLIST_RC(elem)++ argument
162 spl_ptr_llist_element *elem = emalloc(sizeof(spl_ptr_llist_element)); in spl_ptr_llist_unshift() local
164 elem->prev = NULL; in spl_ptr_llist_unshift()
165 elem->next = llist->head; in spl_ptr_llist_unshift()
166 ZVAL_COPY(&elem->data, data); in spl_ptr_llist_unshift()
167 SPL_LLIST_RC(elem) = 1; in spl_ptr_llist_unshift()
170 llist->head->prev = elem; in spl_ptr_llist_unshift()
172 llist->tail = elem; in spl_ptr_llist_unshift()
175 llist->head = elem; in spl_ptr_llist_unshift()
182 spl_ptr_llist_element *elem = emalloc(sizeof(spl_ptr_llist_element)); in spl_ptr_llist_push() local
184 elem->prev = llist->tail; in spl_ptr_llist_push()
185 elem->next = NULL; in spl_ptr_llist_push()
186 ZVAL_COPY(&elem->data, data); in spl_ptr_llist_push()
187 SPL_LLIST_RC(elem) = 1; in spl_ptr_llist_push()
190 llist->tail->next = elem; in spl_ptr_llist_push()
192 llist->head = elem; in spl_ptr_llist_push()
195 llist->tail = elem; in spl_ptr_llist_push()
1038 zval *flags, *elem; in PHP_METHOD() local
1072 elem = var_tmp_var(&var_hash); in PHP_METHOD()
1073 if (!php_var_unserialize(elem, &p, s + buf_len, &var_hash)) { in PHP_METHOD()
1076 var_push_dtor(&var_hash, elem); in PHP_METHOD()
1078 spl_ptr_llist_push(intern->llist, elem); in PHP_METHOD()
1131 zval *flags_zv, *storage_zv, *members_zv, *elem; in PHP_METHOD() local
1150 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(storage_zv), elem) { in PHP_METHOD()
1151 spl_ptr_llist_push(intern->llist, elem); in PHP_METHOD()
1181 spl_ptr_llist_element *elem = emalloc(sizeof(spl_ptr_llist_element)); in PHP_METHOD() local
1187 ZVAL_COPY(&elem->data, value); in PHP_METHOD()
1188 SPL_LLIST_RC(elem) = 1; in PHP_METHOD()
1190 elem->next = element; in PHP_METHOD()
1191 elem->prev = element->prev; in PHP_METHOD()
1194 if (elem->prev == NULL) { in PHP_METHOD()
1195 intern->llist->head = elem; in PHP_METHOD()
1197 element->prev->next = elem; in PHP_METHOD()
1199 element->prev = elem; in PHP_METHOD()