--- libev/ev.c 2007/11/26 19:49:36 1.140 +++ libev/ev.c 2007/11/26 20:33:58 1.141 @@ -227,12 +227,13 @@ static void (*syserr_cb)(const char *msg); -void ev_set_syserr_cb (void (*cb)(const char *msg)) +void +ev_set_syserr_cb (void (*cb)(const char *msg)) { syserr_cb = cb; } -static void +static void noinline syserr (const char *msg) { if (!msg) @@ -249,7 +250,8 @@ static void *(*alloc)(void *ptr, long size); -void ev_set_allocator (void *(*cb)(void *ptr, long size)) +void +ev_set_allocator (void *(*cb)(void *ptr, long size)) { alloc = cb; } @@ -317,7 +319,7 @@ /*****************************************************************************/ -ev_tstamp noinline +ev_tstamp ev_time (void) { #if EV_USE_REALTIME @@ -384,19 +386,6 @@ /*****************************************************************************/ -void inline_size -anfds_init (ANFD *base, int count) -{ - while (count--) - { - base->head = 0; - base->events = EV_NONE; - base->reify = 0; - - ++base; - } -} - void noinline ev_feed_event (EV_P_ void *w, int revents) { @@ -414,7 +403,7 @@ pendings [ABSPRI (w_)][w_->pending - 1].events = revents; } -static void +void inline_size queue_events (EV_P_ W *events, int eventcnt, int type) { int i; @@ -423,6 +412,21 @@ ev_feed_event (EV_A_ events [i], type); } +/*****************************************************************************/ + +void inline_size +anfds_init (ANFD *base, int count) +{ + while (count--) + { + base->head = 0; + base->events = EV_NONE; + base->reify = 0; + + ++base; + } +} + void inline_speed fd_event (EV_P_ int fd, int revents) { @@ -444,8 +448,6 @@ fd_event (EV_A_ fd, revents); } -/*****************************************************************************/ - void inline_size fd_reify (EV_P) {