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

Comparing libev/ev.h (file contents):
Revision 1.135 by root, Tue Mar 16 00:26:41 2010 UTC vs.
Revision 1.136 by root, Tue Mar 16 00:43:22 2010 UTC

50# define EV_FEATURES 0x3f 50# define EV_FEATURES 0x3f
51#endif 51#endif
52 52
53#define EV_FEATURE_CODE ((EV_FEATURES) & 1) 53#define EV_FEATURE_CODE ((EV_FEATURES) & 1)
54#define EV_FEATURE_DATA ((EV_FEATURES) & 2) 54#define EV_FEATURE_DATA ((EV_FEATURES) & 2)
55#define EV_FEATURE_CONFIG ((EV_FEATURES) & 4)
55#define EV_FEATURE_API ((EV_FEATURES) & 4) 56#define EV_FEATURE_API ((EV_FEATURES) & 8)
56#define EV_FEATURE_WATCHERS ((EV_FEATURES) & 8) 57#define EV_FEATURE_WATCHERS ((EV_FEATURES) & 16)
57#define EV_FEATURE_BACKENDS ((EV_FEATURES) & 16) 58#define EV_FEATURE_BACKENDS ((EV_FEATURES) & 32)
58#define EV_FEATURE_OS ((EV_FEATURES) & 32) 59#define EV_FEATURE_OS ((EV_FEATURES) & 64)
59 60
60/* these priorities are inclusive, higher priorities will be called earlier */ 61/* these priorities are inclusive, higher priorities will be called earlier */
61#ifndef EV_MINPRI 62#ifndef EV_MINPRI
62# define EV_MINPRI (EV_FEATURE_API ? -2 : 0) 63# define EV_MINPRI (EV_FEATURE_CONFIG ? -2 : 0)
63#endif 64#endif
64#ifndef EV_MAXPRI 65#ifndef EV_MAXPRI
65# define EV_MAXPRI (EV_FEATURE_API ? +2 : 0) 66# define EV_MAXPRI (EV_FEATURE_CONFIG ? +2 : 0)
66#endif 67#endif
67 68
68#ifndef EV_MULTIPLICITY 69#ifndef EV_MULTIPLICITY
69# define EV_MULTIPLICITY EV_FEATURE_API 70# define EV_MULTIPLICITY EV_FEATURE_CONFIG
70#endif 71#endif
71 72
72#ifndef EV_PERIODIC_ENABLE 73#ifndef EV_PERIODIC_ENABLE
73# define EV_PERIODIC_ENABLE EV_FEATURE_WATCHERS 74# define EV_PERIODIC_ENABLE EV_FEATURE_WATCHERS
74#endif 75#endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines