Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 47) sorted by relevance

12

/ext-ds/src/ds/
H A Dds_set.c81 zval *value; in add_array_to_set() local
184 zval *value; in ds_set_assign_diff() local
198 zval *value; in ds_set_assign_intersect() local
216 zval *value; in ds_set_assign_xor() local
250 zval *value; in ds_set_assign_union() local
270 zval *value; in ds_set_reduce() local
307 zval *value; in ds_set_map() local
338 zval *value; in ds_set_filter_callback() local
372 zval *value; in ds_set_filter() local
396 zval *value; in ds_set_to_array() local
[all …]
H A Dds_priority_queue.h7 zval value; member
30 #define DS_PRIORITY_QUEUE_FOREACH_VALUE(queue, value) \ argument
33 value = &__node->value;
36 #define DS_PRIORITY_QUEUE_FOREACH(queue, value, priority) \ argument
39 value = &__node->value; \
67 void ds_priority_queue_push(ds_priority_queue_t *queue, zval *value, zval *priority);
H A Dds_stack.c42 void ds_stack_push(ds_stack_t *stack, zval *value) in ds_stack_push() argument
44 ds_vector_push(stack->vector, value); in ds_stack_push()
52 void ds_stack_push_all(ds_stack_t *stack, zval *value) in ds_stack_push_all() argument
54 ds_vector_push_all(stack->vector, value); in ds_stack_push_all()
65 zval *value; in ds_stack_to_array() local
68 DS_VECTOR_FOREACH_REVERSED(stack->vector, value) { in ds_stack_to_array()
69 add_next_index_zval(return_value, value); in ds_stack_to_array()
70 Z_TRY_ADDREF_P(value); in ds_stack_to_array()
H A Dds_queue.c48 void ds_queue_push_one(ds_queue_t *queue, zval *value) in ds_queue_push_one() argument
50 ds_deque_push(queue->deque, value); in ds_queue_push_one()
58 void ds_queue_push_all(ds_queue_t *queue, zval *value) in ds_queue_push_all() argument
60 ds_deque_push_all(queue->deque, value); in ds_queue_push_all()
71 zval *value; in ds_queue_to_array() local
74 DS_DEQUE_FOREACH(queue->deque, value) { in ds_queue_to_array()
75 add_next_index_zval(return_value, value); in ds_queue_to_array()
76 Z_TRY_ADDREF_P(value); in ds_queue_to_array()
H A Dds_vector.c175 ZVAL_COPY(ptr, value); in ds_vector_set()
378 zval *value; in add_array_to_vector() local
518 zval *value; in ds_vector_reversed() local
533 zval *value; in ds_vector_apply() local
537 fci.params = value; in ds_vector_apply()
544 zval_ptr_dtor(value); in ds_vector_apply()
553 zval *value; in ds_vector_map() local
588 zval *value; in ds_vector_filter() local
610 zval *value; in ds_vector_filter_callback() local
647 zval *value; in ds_vector_reduce() local
[all …]
H A Dds_htable.c258 hack.d = Z_DVAL_P(value); in get_double_hash()
420 if (zend_is_identical(value, &bucket->value)) { in ds_htable_lookup_by_value()
585 if (compare_function(&retval, &x->value, &y->value) == SUCCESS) { in compare_by_value()
659 zval *value, in ds_htable_init_next_bucket() argument
669 if (value) { in ds_htable_init_next_bucket()
670 ZVAL_COPY(&bucket->value, value); in ds_htable_init_next_bucket()
709 if (value) { in ds_htable_put()
710 ZVAL_COPY(&bucket->value, value); in ds_htable_put()
718 zval *value; in ds_htable_values() local
1032 zval *key, *value; in ds_htable_reduce() local
[all …]
H A Dds_map.c52 ds_htable_put(map->table, key, value); in ds_map_put()
94 zval *value = ds_htable_get(map->table, key); in ds_map_get() local
96 if (value) { in ds_map_get()
97 return value; in ds_map_get()
132 bool ds_map_has_value(ds_map_t *map, zval *value) in ds_map_has_value() argument
134 return ds_htable_has_value(map->table, value); in ds_map_has_value()
289 ds_map_put((ds_map_t *) puser, &key, value); in iterator_add()
304 zval *value; in add_ht_to_map() local
313 ds_map_put(map, &temp, value); in add_ht_to_map()
339 zval *value; in ds_map_sum() local
[all …]
H A Dds_stack.h11 #define DS_STACK_FOREACH(stack, value) \ argument
22 value = &_tmp;
37 void ds_stack_push(ds_stack_t *stack, zval *value);
45 void ds_stack_push_all(ds_stack_t *stack, zval *value);
H A Dds_priority_queue.c14 #define STAMP(n) (Z_NEXT((n)->value))
91 void ds_priority_queue_push(ds_priority_queue_t *queue, zval *value, zval *priority) in ds_priority_queue_push() argument
131 ZVAL_COPY(&node->value, value); in ds_priority_queue_push()
164 ZVAL_COPY(return_value, &(nodes[0].value)); in ds_priority_queue_pop()
171 DTOR_AND_UNDEF(&(nodes[0].value)); in ds_priority_queue_pop()
207 ZVAL_COPY(&dst->value, &src->value); // This also copies insertion stamp. in copy_nodes()
233 return &queue->nodes[0].value; in ds_priority_queue_peek()
269 add_next_index_zval(array, &pos->value); in ds_priority_queue_to_array()
270 Z_TRY_ADDREF_P(&pos->value); in ds_priority_queue_to_array()
283 DTOR_AND_UNDEF(&pos->value); in ds_priority_queue_clear()
H A Dds_queue.h10 #define QUEUE_FOREACH(queue, value) \ argument
15 value = &_tmp;
34 void ds_queue_push_one(ds_queue_t *queue, zval *value);
40 void ds_queue_push_all(ds_queue_t *queue, zval *value);
H A Dds_deque.c242 ZVAL_COPY(ptr, value); in ds_deque_set()
558 zval *value; in ds_deque_to_array() local
563 Z_TRY_ADDREF_P(value); in ds_deque_to_array()
626 zval *value; in add_array_to_deque() local
678 zval *value; in ds_deque_apply() local
683 fci.params = value; in ds_deque_apply()
690 zval_ptr_dtor(value); in ds_deque_apply()
700 zval *value; in ds_deque_map() local
706 fci.params = value; in ds_deque_map()
796 zval *value; in ds_deque_reduce() local
[all …]
H A Dds_set.h11 #define DS_SET_FOREACH(set, value) DS_HTABLE_FOREACH_KEY(set->table, value) argument
26 void ds_set_add(ds_set_t *set, zval *value);
29 bool ds_set_contains(ds_set_t *set, zval *value);
33 void ds_set_add_all(ds_set_t *set, zval *value);
/ext-ds/src/
H A Dcommon.c101 int ds_zval_isset(zval *value, int check_empty) in ds_zval_isset() argument
103 if (value == NULL) { in ds_zval_isset()
108 return Z_TYPE_P(value) != IS_NULL; in ds_zval_isset()
111 return zend_is_true(value); in ds_zval_isset()
151 switch (Z_TYPE_P(value)) { in smart_str_appendz()
153 smart_str_append(buffer, Z_STR_P(value)); in smart_str_appendz()
160 zend_string *str = zval_get_string(value); in smart_str_appendz()
209 bool ds_is_traversable(zval *value) in ds_is_traversable() argument
211 return Z_TYPE_P(value) == IS_OBJECT && in ds_is_traversable()
215 bool ds_is_array(zval *value) in ds_is_array() argument
[all …]
/ext-ds/src/php/objects/
H A Dphp_queue.c43 zval *value; in php_ds_queue_serialize() local
46 DS_DEQUE_FOREACH(queue->deque, value) { in php_ds_queue_serialize()
47 php_var_serialize(&buf, value, &serialize_data); in php_ds_queue_serialize()
72 zval *value = var_tmp_var(&unserialize_data); in php_ds_queue_unserialize() local
74 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_queue_unserialize()
78 ds_queue_push_one(queue, value); in php_ds_queue_unserialize()
H A Dphp_deque.c42 zval *value; in php_ds_deque_serialize() local
45 DS_DEQUE_FOREACH(deque, value) { in php_ds_deque_serialize()
46 php_var_serialize(&buf, value, &serialize_data); in php_ds_deque_serialize()
71 zval *value = var_tmp_var(&unserialize_data); in php_ds_deque_unserialize() local
73 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_deque_unserialize()
77 ds_deque_push(deque, value); in php_ds_deque_unserialize()
H A Dphp_stack.c42 zval *value; in php_ds_stack_serialize() local
45 DS_VECTOR_FOREACH(stack->vector, value) { in php_ds_stack_serialize()
46 php_var_serialize(&buf, value, &serialize_data); in php_ds_stack_serialize()
71 zval *value = var_tmp_var(&unserialize_data); in php_ds_stack_unserialize() local
73 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_stack_unserialize()
77 ds_stack_push(stack, value); in php_ds_stack_unserialize()
H A Dphp_vector.c42 zval *value; in php_ds_vector_serialize() local
45 DS_VECTOR_FOREACH(vector, value) { in php_ds_vector_serialize()
46 php_var_serialize(&buf, value, &serialize_data); in php_ds_vector_serialize()
71 zval *value = var_tmp_var(&unserialize_data); in php_ds_vector_unserialize() local
73 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_vector_unserialize()
77 ds_vector_push(vector, value); in php_ds_vector_unserialize()
H A Dphp_map.c35 zval *value; in ds_map_pairs_to_php_hashtable() local
42 DS_HTABLE_FOREACH_KEY_VALUE(map->table, key, value) { in ds_map_pairs_to_php_hashtable()
43 ZVAL_DS_PAIR(&pair, php_ds_pair_ex(key, value)); in ds_map_pairs_to_php_hashtable()
57 zval *value; in ds_map_pairs() local
59 DS_HTABLE_FOREACH_KEY_VALUE(map->table, key, value) { in ds_map_pairs()
60 ZVAL_DS_PAIR(target++, php_ds_pair_ex(key, value)); in ds_map_pairs()
H A Dphp_pair.c24 php_ds_pair_t *php_ds_pair_ex(zval *key, zval *value) in php_ds_pair_ex() argument
29 php_ds_pair_set_value(obj, value); in php_ds_pair_ex()
53 void php_ds_pair_set_value(php_ds_pair_t *pair, zval *value) in php_ds_pair_set_value() argument
56 zend_update_property(php_ds_pair_ce, (zend_object*) pair, STR_AND_LEN("value"), value); in php_ds_pair_set_value()
60 zend_update_property(php_ds_pair_ce, &tmp, STR_AND_LEN("value"), value); in php_ds_pair_set_value()
128 zval *key, *value; in php_ds_pair_unserialize() local
141 value = var_tmp_var(&unserialize_data); in php_ds_pair_unserialize()
142 if ( ! php_var_unserialize(value, &pos, max, &unserialize_data)) { in php_ds_pair_unserialize()
146 ZVAL_DS_PAIR(object, php_ds_pair_ex(key, value)); in php_ds_pair_unserialize()
H A Dphp_priority_queue.c54 php_var_serialize(&buf, &pos->value, &serialize_data); in php_ds_priority_queue_serialize()
82 zval *value, *priority; in php_ds_priority_queue_unserialize() local
84 value = var_tmp_var(&unserialize_data); in php_ds_priority_queue_unserialize()
85 if ( ! php_var_unserialize(value, &pos, end, &unserialize_data)) { in php_ds_priority_queue_unserialize()
95 ds_priority_queue_push(queue, value, priority); in php_ds_priority_queue_unserialize()
/ext-ds/src/php/handlers/
H A Dphp_vector_handlers.c17 zval *value; local
36 value = ds_vector_get(vector, Z_LVAL_P(offset));
40 if (value && type != BP_VAR_R && type != BP_VAR_IS) {
41 ZVAL_MAKE_REF(value);
44 return value;
49 (zend_object *obj, zval *offset, zval *value) { argument
52 (zval *obj, zval *offset, zval *value) {
56 ds_vector_push(vector, value);
64 ds_vector_set(vector, Z_LVAL_P(offset), value);
H A Dphp_deque_handlers.c17 zval *value; local
36 value = ds_deque_get(deque, Z_LVAL_P(offset));
40 if (value && type != BP_VAR_R && type != BP_VAR_IS) {
41 ZVAL_MAKE_REF(value);
44 return value;
49 (zend_object *obj, zval *offset, zval *value) { argument
52 (zval *obj, zval *offset, zval *value) {
56 ds_deque_push(deque, value);
64 ds_deque_set(deque, Z_LVAL_P(offset), value);
H A Dphp_map_handlers.c21 zval *value; local
34 value = ds_map_get(map, offset, NULL);
38 if (value && type != BP_VAR_R && type != BP_VAR_IS) {
39 ZVAL_MAKE_REF(value);
42 return value;
48 (zend_object *obj, zval *offset, zval *value) { argument
51 (zval *obj, zval *offset, zval *value) {
59 ds_htable_put(map->table, offset, value);
/ext-ds/src/php/classes/
H A Dphp_vector_ce.c81 PARSE_ZVAL(value); in METHOD()
82 ds_vector_find(THIS_DS_VECTOR(), value, return_value); in METHOD()
157 PARSE_ZVAL(value); in METHOD()
158 ds_vector_push(THIS_DS_VECTOR(), value); in METHOD()
193 PARSE_LONG_AND_ZVAL(index, value); in METHOD()
194 ds_vector_set(THIS_DS_VECTOR(), index, value); in METHOD()
283 PARSE_ZVAL_ZVAL(offset, value); in METHOD()
286 ds_vector_push(THIS_DS_VECTOR(), value); in METHOD()
291 ds_vector_set(THIS_DS_VECTOR(), Z_LVAL_P(offset), value); in METHOD()
H A Dphp_pair_ce.c14 PARSE_OPTIONAL_ZVAL_OPTIONAL_ZVAL(key, value); in METHOD()
22 if (value) { in METHOD()
23 php_ds_pair_set_value(pair, value); in METHOD()

Completed in 102 milliseconds

12