ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libev/ev.h
(Generate patch)

Comparing libev/ev.h (file contents):
Revision 1.72 by root, Tue Nov 27 10:59:11 2007 UTC vs.
Revision 1.73 by root, Tue Nov 27 19:41:52 2007 UTC

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 */
337void ev_set_allocator (void *(*cb)(void *ptr, long size)); 339void 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 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines