… | |
… | |
64 | # define EV_EMBED_ENABLE 1 |
64 | # define EV_EMBED_ENABLE 1 |
65 | #endif |
65 | #endif |
66 | |
66 | |
67 | /*****************************************************************************/ |
67 | /*****************************************************************************/ |
68 | |
68 | |
|
|
69 | #include <stddef.h> /* for size_t */ |
|
|
70 | |
69 | #if EV_STAT_ENABLE |
71 | #if EV_STAT_ENABLE |
70 | # include <sys/stat.h> |
72 | # include <sys/stat.h> |
71 | #endif |
73 | #endif |
72 | |
74 | |
73 | /* support multiple event loops? */ |
75 | /* support multiple event loops? */ |
… | |
… | |
332 | * It is used to allocate and free memory. |
334 | * It is used to allocate and free memory. |
333 | * If it returns zero when memory needs to be allocated, the library might abort |
335 | * If it returns zero when memory needs to be allocated, the library might abort |
334 | * or take some potentially destructive action. |
336 | * or take some potentially destructive action. |
335 | * The default is your system realloc function. |
337 | * The default is your system realloc function. |
336 | */ |
338 | */ |
337 | void ev_set_allocator (void *(*cb)(void *ptr, long size)); |
339 | void ev_set_allocator (void *(*cb)(void *ptr, size_t size)); |
338 | |
340 | |
339 | /* set the callback function to call on a |
341 | /* set the callback function to call on a |
340 | * retryable syscall error |
342 | * retryable syscall error |
341 | * (such as failed select, poll, epoll_wait) |
343 | * (such as failed select, poll, epoll_wait) |
342 | */ |
344 | */ |