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

Comparing libev/ev.pod (file contents):
Revision 1.434 by root, Tue May 6 13:24:39 2014 UTC vs.
Revision 1.435 by root, Tue Apr 21 10:10:57 2015 UTC

3900To embed libev, see L</EMBEDDING>, but in short, it's easiest to create two 3900To embed libev, see L</EMBEDDING>, but in short, it's easiest to create two
3901files, F<my_ev.h> and F<my_ev.c> that include the respective libev files: 3901files, F<my_ev.h> and F<my_ev.c> that include the respective libev files:
3902 3902
3903 // my_ev.h 3903 // my_ev.h
3904 #define EV_CB_DECLARE(type) struct my_coro *cb; 3904 #define EV_CB_DECLARE(type) struct my_coro *cb;
3905 #define EV_CB_INVOKE(watcher) switch_to ((watcher)->cb); 3905 #define EV_CB_INVOKE(watcher) switch_to ((watcher)->cb)
3906 #include "../libev/ev.h" 3906 #include "../libev/ev.h"
3907 3907
3908 // my_ev.c 3908 // my_ev.c
3909 #define EV_H "my_ev.h" 3909 #define EV_H "my_ev.h"
3910 #include "../libev/ev.c" 3910 #include "../libev/ev.c"

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines