ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV.xs
(Generate patch)

Comparing EV/EV.xs (file contents):
Revision 1.41 by root, Fri Nov 2 20:21:33 2007 UTC vs.
Revision 1.44 by root, Fri Nov 2 23:22:17 2007 UTC

24 *stash_signal, 24 *stash_signal,
25 *stash_idle, 25 *stash_idle,
26 *stash_prepare, 26 *stash_prepare,
27 *stash_check, 27 *stash_check,
28 *stash_child; 28 *stash_child;
29
30#ifndef SIG_SIZE
31/* kudos to Slaven Rezic for the idea */
32static char sig_size [] = { SIG_NUM };
33# define SIG_SIZE (sizeof (sig_size) + 1)
34#endif
29 35
30static int 36static int
31sv_signum (SV *sig) 37sv_signum (SV *sig)
32{ 38{
33 int signum; 39 int signum;
251 257
252 const_iv (EV, METHOD_AUTO) 258 const_iv (EV, METHOD_AUTO)
253 const_iv (EV, METHOD_SELECT) 259 const_iv (EV, METHOD_SELECT)
254 const_iv (EV, METHOD_POLL) 260 const_iv (EV, METHOD_POLL)
255 const_iv (EV, METHOD_EPOLL) 261 const_iv (EV, METHOD_EPOLL)
262 const_iv (EV, METHOD_KQUEUE)
263 const_iv (EV, METHOD_DEVPOLL)
264 const_iv (EV, METHOD_PORT)
256 const_iv (EV, METHOD_ANY) 265 const_iv (EV, METHOD_ANY)
257 }; 266 };
258 267
259 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; ) 268 for (civ = const_iv + sizeof (const_iv) / sizeof (const_iv [0]); civ-- > const_iv; )
260 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); 269 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
321 OUTPUT: 330 OUTPUT:
322 RETVAL 331 RETVAL
323 332
324NV ev_time () 333NV ev_time ()
325 334
326void ev_init (int methods = EVMETHOD_AUTO) 335int ev_init (int methods = EVMETHOD_AUTO)
327 336
328void ev_loop (int flags = 0) 337void ev_loop (int flags = 0)
329 338
330void ev_loop_done (int value = 1) 339void ev_loop_done (int value = 1)
331 CODE: 340 CODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines