mirror of /home/gitosis/repositories/libev.git
master
parent
14bad9ee2e
commit
623714b775
2
ev.c
2
ev.c
|
@ -1303,7 +1303,7 @@ array_nextsize (int elem, int cur, int cnt)
|
|||
ncur <<= 1;
|
||||
while (cnt > ncur);
|
||||
|
||||
/* if size is large, round to MALLOC_ROUND - 4 * longs to accomodate malloc overhead */
|
||||
/* if size is large, round to MALLOC_ROUND - 4 * longs to accommodate malloc overhead */
|
||||
if (elem * ncur > MALLOC_ROUND - sizeof (void *) * 4)
|
||||
{
|
||||
ncur *= elem;
|
||||
|
|
2
ev.h
2
ev.h
|
@ -717,7 +717,7 @@ void ev_resume (EV_P);
|
|||
/* stopping (disabling, deleting) a watcher does nothing unless its already running */
|
||||
#if EV_PROTOTYPES
|
||||
|
||||
/* feeds an event into a watcher as if the event actually occured */
|
||||
/* feeds an event into a watcher as if the event actually occurred */
|
||||
/* accepts any ev_watcher type */
|
||||
void ev_feed_event (EV_P_ void *w, int revents);
|
||||
void ev_feed_fd_event (EV_P_ int fd, int revents);
|
||||
|
|
Loading…
Reference in New Issue