Bring neovim up to date with recent libuv changes

As of v0.11.23 libuv's uv_timer_cb, uv_async_cb, uv_prepare_cb, uv_check_cb and
uv_idle_cb no longer require a status parameter (this went unused in the first
place).

Bump third-party dependency `libuv` up to 0.11.23 and remove the extra
parameters from the callbacks.
This commit is contained in:
Will Tange
2014-04-09 11:32:42 +02:00
committed by Thiago de Arruda
parent a881273dad
commit ed73da9f0e
4 changed files with 10 additions and 10 deletions

View File

@@ -20,8 +20,8 @@ KLIST_INIT(Event, Event, _destroy_event)
static klist_t(Event) *event_queue;
static uv_timer_t timer;
static uv_prepare_t timer_prepare;
static void timer_cb(uv_timer_t *handle, int);
static void timer_prepare_cb(uv_prepare_t *, int);
static void timer_cb(uv_timer_t *handle);
static void timer_prepare_cb(uv_prepare_t *);
void event_init()
{
@@ -119,12 +119,12 @@ void event_process()
}
// Set a flag in the `event_poll` loop for signaling of a timeout
static void timer_cb(uv_timer_t *handle, int status)
static void timer_cb(uv_timer_t *handle)
{
*((bool *)handle->data) = true;
}
static void timer_prepare_cb(uv_prepare_t *handle, int status)
static void timer_prepare_cb(uv_prepare_t *handle)
{
uv_timer_start(&timer, timer_cb, *(uint32_t *)timer_prepare.data, 0);
uv_prepare_stop(&timer_prepare);