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

Comparing libev/event.c (file contents):
Revision 1.37 by root, Wed Oct 29 17:50:57 2008 UTC vs.
Revision 1.39 by root, Tue Jan 6 19:46:56 2009 UTC

39 39
40#include <stddef.h> 40#include <stddef.h>
41#include <stdlib.h> 41#include <stdlib.h>
42#include <assert.h> 42#include <assert.h>
43 43
44#ifndef WIN32
45# include <sys/time.h>
46#endif
47
48#ifdef EV_EVENT_H 44#ifdef EV_EVENT_H
49# include EV_EVENT_H 45# include EV_EVENT_H
50#else 46#else
51# include "event.h" 47# include "event.h"
52#endif 48#endif
101 if (ev_x_cur) 97 if (ev_x_cur)
102 ev_x_cur = (struct event_base *)ev_loop_new (EVFLAG_AUTO); 98 ev_x_cur = (struct event_base *)ev_loop_new (EVFLAG_AUTO);
103 else 99 else
104 ev_x_cur = (struct event_base *)ev_default_loop (EVFLAG_AUTO); 100 ev_x_cur = (struct event_base *)ev_default_loop (EVFLAG_AUTO);
105#else 101#else
106 assert (("multiple event bases not supported when not compiled with EV_MULTIPLICITY", !ev_x_cur)); 102 assert (("libev: multiple event bases not supported when not compiled with EV_MULTIPLICITY", !ev_x_cur));
107 103
108 ev_x_cur = (struct event_base *)(long)ev_default_loop (EVFLAG_AUTO); 104 ev_x_cur = (struct event_base *)(long)ev_default_loop (EVFLAG_AUTO);
109#endif 105#endif
110 106
111 return ev_x_cur; 107 return ev_x_cur;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines