D'oh, will I ever get it right? Find the correct version of libev.c
attached.
Best regards,
Alexander
#include<assert.h>
#include<ev.h>
#include<stdlib.h>
static void * allocator( void * ptr, long size ) {
assert( ( size >= 0 ) && ( ( unsigned long ) size <= ( size_t ) -1 ) );
return realloc( ptr, size );
}
int main( void ) {
ev_set_allocator( allocator );
for ( ;; ) {
struct ev_loop * loop = ev_loop_new( EVFLAG_AUTO );
if ( loop == NULL ) { /* never happens with this
implementation */
break;
}
ev_loop_destroy( loop );
}
return 0;
}
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev