Lines Matching refs:type

74 #define UV_PARAM_OBJ_EX(dest, type, check_null, ce, ...) \  argument
94 dest = zv == NULL ? NULL : (type *) Z_OBJ_P(zv); \
97 #define UV_PARAM_OBJ(dest, type, ...) UV_PARAM_OBJ_EX(dest, type, 0, ##__VA_ARGS__, NULL) argument
98 #define UV_PARAM_OBJ_NULL(dest, type, ...) UV_PARAM_OBJ_EX(dest, type, 1, ##__VA_ARGS__, NULL) argument
157 #define PHP_UV_INIT_GENERIC(dest, type, ce) \ argument
161 dest = (type *) Z_OBJ(zv); \
200 lock->type = lock_type;
288 #define UV_FETCH_ALL(ls, id, type) ((type) (*((void ***) ls))[TSRM_UNSHUFFLE_RSRC_ID(id)]) argument
289 #define UV_FETCH_CTX(ls, id, type, element) (((type) (*((void ***) ls))[TSRM_UNSHUFFLE_RSRC_ID(id)]… argument
539 …lt, php_uv_t *uv, zend_fcall_info *fci, zend_fcall_info_cache *fcc, enum php_uv_callback_type type) argument
543 if (uv->callback[type] == NULL) {
546 cb = uv->callback[type];
566 uv->callback[type] = cb;
1208 if (lock->type == IS_UV_RWLOCK) {
1219 } else if (lock->type == IS_UV_MUTEX) {
1225 } else if (lock->type == IS_UV_SEMAPHORE) {
1362 …*retval_ptr, php_uv_t *uv, zval *params, int param_count, enum php_uv_callback_type type TSRMLS_DC)
1369 if (ZEND_FCI_INITIALIZED(uv->callback[type]->fci)) {
1370 uv->callback[type]->fci.params = params;
1371 uv->callback[type]->fci.retval = retval_ptr;
1372 uv->callback[type]->fci.param_count = param_count;
1374 uv->callback[type]->fci.no_separation = 1;
1377 if (zend_call_function(&uv->callback[type]->fci, &uv->callback[type]->fcc) != SUCCESS) {
1390 switch (type) {
1420 …ack3(zval *retval_ptr, php_uv_t *uv, zval *params, int param_count, enum php_uv_callback_type type) argument
1427 if (ZEND_FCI_INITIALIZED(uv->callback[type]->fci)) {
1438 uv->callback[type]->fci.params = params;
1439 uv->callback[type]->fci.retval = retval_ptr;
1440 uv->callback[type]->fci.param_count = param_count;
1442 uv->callback[type]->fci.no_separation = 1;
1444 uv->callback[type]->fci.object = NULL;
1446 uv->callback[type]->fci.size = sizeof(zend_fcall_info);
1448 uv->callback[type]->fcc.initialized = 1;
1451 uv->callback[type]->fcc.calling_scope = NULL;
1452 uv->callback[type]->fcc.called_scope = NULL;
1453 uv->callback[type]->fcc.object = NULL;
1455 if (!ZEND_USER_CODE(uv->callback[type]->fcc.function_handler->type)) {
1459 fn = *(old_fn = uv->callback[type]->fcc.function_handler);
1460 uv->callback[type]->fcc.function_handler = &fn;
1474 if (zend_call_function(&uv->callback[type]->fci, &uv->callback[type]->fcc) != SUCCESS) {
1488 uv->callback[type]->fcc.function_handler = old_fn;
2376 static void php_uv_socket_getname(int type, INTERNAL_FUNCTION_PARAMETERS) argument
2385 UV_PARAM_OBJ(uv, php_uv_t, type == 3 ? uv_udp_ce : uv_tcp_ce)
2388 switch (type) {
2433 static void php_uv_udp_send(int type, INTERNAL_FUNCTION_PARAMETERS) argument
2446 …UV_PARAM_OBJ(addr, php_uv_sockaddr_t, (type == 1) ? uv_sockaddr_ipv4_ce : uv_sockaddr_ipv6_ce, uv_…
2464 static void php_uv_tcp_connect(enum php_uv_socket_type type, INTERNAL_FUNCTION_PARAMETERS) argument
2475 …UV_PARAM_OBJ(addr, php_uv_sockaddr_t, (type == PHP_UV_TCP_IPV4) ? uv_sockaddr_ipv4_ce : uv_sockadd…
2500 int php_uv_cast_object(zend_object *readobj, zval *writeobj, int type) { argument
2502 int php_uv_cast_object(zval *readobj_zv, zval *writeobj, int type) {
2505 if (type == IS_LONG) {
2510 return zend_std_cast_object_tostring(readobj, writeobj, type);
2512 return zend_std_cast_object_tostring(readobj_zv, writeobj, type);
4702 uv_handle_type type; local
4714 type = uv_guess_handle(fd);
4716 RETURN_LONG(type);