for now, move declarations

This commit is contained in:
Shuhei Tanuma 2012-07-21 20:54:45 +09:00
parent 4cb0b36775
commit cb40015ffd
2 changed files with 22 additions and 23 deletions

View File

@ -200,6 +200,28 @@ static int uv_httpparser_handle;
static int uv_ares_initialized;
char *php_uv_resource_map[IS_UV_MAX] = {
"uv_tcp",
"uv_udp",
"uv_pipe",
"uv_idle",
"uv_timer",
"uv_async",
"uv_loop",
"uv_handle",
"uv_stream",
"uv_addrinfo",
"uv_process",
"uv_prepare",
"uv_check",
"uv_work",
"uv_fs",
"uv_fs_event",
"uv_tty",
"uv_fs_poll",
"uv_poll",
};
/* TODO: fix this */
static char uv_fs_read_buf[8192];

View File

@ -81,29 +81,6 @@ enum php_uv_resource_type{
IS_UV_MAX = 19
};
char *php_uv_resource_map[IS_UV_MAX] = {
"uv_tcp",
"uv_udp",
"uv_pipe",
"uv_idle",
"uv_timer",
"uv_async",
"uv_loop",
"uv_handle",
"uv_stream",
"uv_addrinfo",
"uv_process",
"uv_prepare",
"uv_check",
"uv_work",
"uv_fs",
"uv_fs_event",
"uv_tty",
"uv_fs_poll",
"uv_poll",
};
enum php_uv_callback_type{
PHP_UV_LISTEN_CB = 0,
PHP_UV_READ_CB = 1,