Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 8 of 8) sorted by relevance

/ext-ds/src/ds/
H A Dds_stack.c12 stack->vector = vector; in ds_stack_ex()
13 return stack; in ds_stack_ex()
21 ds_stack_t *ds_stack_clone(ds_stack_t *stack) in ds_stack_clone() argument
26 void ds_stack_free(ds_stack_t *stack) in ds_stack_free() argument
28 ds_vector_free(stack->vector); in ds_stack_free()
29 efree(stack); in ds_stack_free()
44 ds_vector_push(stack->vector, value); in ds_stack_push()
47 void ds_stack_clear(ds_stack_t *stack) in ds_stack_clear() argument
49 ds_vector_clear(stack->vector); in ds_stack_clear()
59 zend_long size = DS_STACK_SIZE(stack); in ds_stack_to_array()
[all …]
H A Dds_stack.h11 #define DS_STACK_FOREACH(stack, value) \ argument
15 ds_vector_t *_v = stack->vector; \
35 ds_stack_t *ds_stack_clone(ds_stack_t *stack);
37 void ds_stack_push(ds_stack_t *stack, zval *value);
38 void ds_stack_push_va(ds_stack_t *stack, VA_PARAMS);
40 void ds_stack_clear(ds_stack_t *stack);
41 void ds_stack_pop(ds_stack_t *stack, zval *return_value);
43 zval *ds_stack_peek(ds_stack_t *stack);
44 zval *ds_stack_peek_throw(ds_stack_t *stack);
45 void ds_stack_push_all(ds_stack_t *stack, zval *value);
[all …]
/ext-ds/src/php/handlers/
H A Dphp_stack_handlers.c11 ds_stack_t *stack = php_ds_stack_fetch_object(obj)->stack; local
17 ds_stack_push(stack, value);
26 if (obj->stack) {
27 ds_stack_free(obj->stack);
28 obj->stack = NULL;
36 ds_stack_t *stack = php_ds_stack_fetch_object(obj)->stack; local
41 *count = DS_STACK_SIZE(stack);
48 ds_stack_t *stack = php_ds_stack_fetch_object(obj)->stack; local
59 ds_stack_t *stack = php_ds_stack_fetch_object(obj)->stack; local
67 ds_stack_to_array(stack, &arr);
[all …]
/ext-ds/src/php/objects/
H A Dphp_stack.c7 zend_object *php_ds_stack_create_object_ex(ds_stack_t *stack) in php_ds_stack_create_object_ex() argument
16 obj->stack = stack; in php_ds_stack_create_object_ex()
25 zend_object *php_ds_stack_create_clone(ds_stack_t *stack) in php_ds_stack_create_clone() argument
27 return php_ds_stack_create_object_ex(ds_stack_clone(stack)); in php_ds_stack_create_clone()
32 ds_stack_t *stack = Z_DS_STACK_P(object); in php_ds_stack_serialize() local
37 if (DS_STACK_SIZE(stack) == 0) { in php_ds_stack_serialize()
45 DS_VECTOR_FOREACH(stack->vector, value) { in php_ds_stack_serialize()
61 ds_stack_t *stack = ds_stack(); in php_ds_stack_unserialize() local
77 ds_stack_push(stack, value); in php_ds_stack_unserialize()
80 ZVAL_DS_STACK(object, stack); in php_ds_stack_unserialize()
[all …]
H A Dphp_stack.h7 ds_stack_t *stack; member
15 #define Z_DS_STACK(z) php_ds_stack_fetch_object(Z_OBJ(z))->stack
32 zend_object *php_ds_stack_create_object_ex(ds_stack_t *stack);
34 zend_object *php_ds_stack_create_clone(ds_stack_t *stack);
/ext-ds/src/php/iterators/
H A Dphp_stack_iterator.c26 static void php_ds_stack_iterator_set_current(ds_stack_t *stack, zval *data) in php_ds_stack_iterator_set_current() argument
28 if (DS_STACK_IS_EMPTY(stack)) { in php_ds_stack_iterator_set_current()
31 ds_stack_pop(stack, data); in php_ds_stack_iterator_set_current()
39 php_ds_stack_iterator_set_current(iterator->stack, &iter->data); in php_ds_stack_iterator_move_forward()
46 php_ds_stack_iterator_set_current(iterator->stack, &iter->data); in php_ds_stack_iterator_rewind()
72 iterator->stack = Z_DS_STACK_P(object); in php_ds_stack_get_iterator()
H A Dphp_stack_iterator.h11 ds_stack_t *stack; member
/ext-ds/src/php/classes/
H A Dphp_stack_ce.c110 ds_stack_t *stack = THIS_DS_STACK(); in METHOD() local
115 ds_stack_push(stack, value); in METHOD()

Completed in 10 milliseconds