mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-27 04:24:45 +01:00
add proto comment for uv_mutex
This commit is contained in:
parent
fa9e1ecd48
commit
392c146810
21
php_uv.c
21
php_uv.c
@ -3006,16 +3006,6 @@ static void php_ares_gethostbyname_cb( void *arg, int status, int timeouts, stru
|
||||
zval_ptr_dtor(&addresses);
|
||||
}
|
||||
|
||||
static void aresbyaddrcallback( void *arg,
|
||||
int status,
|
||||
int timeouts,
|
||||
struct hostent *hostent) {
|
||||
int * iargs;
|
||||
iargs = (int*)arg;
|
||||
printf("aresbyaddrcallback %d\n",1);
|
||||
}
|
||||
|
||||
|
||||
/* {{{ */
|
||||
PHP_FUNCTION(uv_ares_init_options)
|
||||
{
|
||||
@ -3074,7 +3064,6 @@ PHP_FUNCTION(uv_ares_init_options)
|
||||
uv->options.lookups = Z_STRVAL_PP(data);
|
||||
}
|
||||
|
||||
|
||||
uv->options.servers = addresses;
|
||||
uv->options.nservers = length;
|
||||
uv->options.flags = ARES_FLAG_USEVC;
|
||||
@ -3193,7 +3182,7 @@ PHP_FUNCTION(uv_exepath)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ */
|
||||
/* {{{ proto string uv_cwd(void) */
|
||||
PHP_FUNCTION(uv_cwd)
|
||||
{
|
||||
char buffer[1024] = {0};
|
||||
@ -3639,7 +3628,7 @@ PHP_FUNCTION(uv_rwlock_wrunlock)
|
||||
|
||||
|
||||
|
||||
/* {{{ */
|
||||
/* {{{ proto uv_lock uv_mutex_init(void) */
|
||||
PHP_FUNCTION(uv_mutex_init)
|
||||
{
|
||||
php_uv_lock_t *mutex;
|
||||
@ -3656,7 +3645,7 @@ PHP_FUNCTION(uv_mutex_init)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ */
|
||||
/* {{{ proto void uv_mutex_lock(uv_lock $lock)*/
|
||||
PHP_FUNCTION(uv_mutex_lock)
|
||||
{
|
||||
php_uv_lock_t *mutex;
|
||||
@ -3673,7 +3662,7 @@ PHP_FUNCTION(uv_mutex_lock)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ */
|
||||
/* {{{ proto: bool uv_mutex_trylock(uv_lock $lock) */
|
||||
PHP_FUNCTION(uv_mutex_trylock)
|
||||
{
|
||||
php_uv_lock_t *mutex;
|
||||
@ -3697,7 +3686,7 @@ PHP_FUNCTION(uv_mutex_trylock)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ */
|
||||
/* {{{ void uv_mutex_unlock(uv_lock $lock) */
|
||||
PHP_FUNCTION(uv_mutex_unlock)
|
||||
{
|
||||
php_uv_lock_t *mutex;
|
||||
|
Loading…
Reference in New Issue
Block a user