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

Comparing libev/README.embed (file contents):
Revision 1.5 by root, Tue Nov 6 19:45:29 2007 UTC vs.
Revision 1.8 by root, Thu Nov 8 17:56:30 2007 UTC

1EMBEDDING THE LIBEV CODE INTO YOUR OWN PROGRAMS 1EMBEDDING THE LIBEV CODE INTO YOUR OWN PROGRAMS
2 2
3 Instead of building the libev library you cna also include the code 3 Instead of building the libev library you can also include the code
4 as-is into your programs. To update, you only have to copy a few files 4 as-is into your programs. To update, you only have to copy a few files
5 into your source tree. 5 into your source tree.
6 6
7 This is how it works: 7 This is how it works:
8 8
90 If undefined or defined to be "1", libev will compile in support 90 If undefined or defined to be "1", libev will compile in support
91 for the select(2) backend. No attempt at autodetection will be 91 for the select(2) backend. No attempt at autodetection will be
92 done: if no other method takes over, select will be it. Otherwise 92 done: if no other method takes over, select will be it. Otherwise
93 the select backend will not be compiled in. 93 the select backend will not be compiled in.
94 94
95 EV_SELECT_USE_WIN32_HANDLES
96
97 When defined to 1, the select backend will assume that select
98 doesn't understand file descriptors but wants osf handles on
99 win32 (this is the case when the select to be used is the winsock
100 select). This means that it will call _get_osfhandle on the fd to
101 convert it to an OS handle. Should not be defined on non-win32
102 platforms.
103
95 EV_USE_POLL 104 EV_USE_POLL
96 105
97 If defined to be "1", libev will compile in support for the poll(2) 106 If defined to be "1", libev will compile in support for the poll(2)
98 backend. No attempt at autodetection will be done. poll usually 107 backend. No attempt at autodetection will be done. poll usually
99 performs worse than select, so its not enabled by default (it is 108 performs worse than select, so its not enabled by default (it is
124 133
125 For example, the perl EV module uses this: 134 For example, the perl EV module uses this:
126 135
127 #define EV_COMMON \ 136 #define EV_COMMON \
128 SV *self; /* contains this struct */ \ 137 SV *self; /* contains this struct */ \
129 SV *cb_sv, *fh; 138 SV *cb_sv, *fh /* note no trailing ";" */
130 139
131 EV_PROTOTYPES 140 EV_PROTOTYPES
132 141
133 If defined to be "0", then "ev.h" will not define any function 142 If defined to be "0", then "ev.h" will not define any function
134 prototypes, but still define all the structs and other 143 prototypes, but still define all the structs and other

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines