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

Comparing cvsroot/EV/EV.xs (file contents):
Revision 1.41 by root, Fri Nov 2 20:21:33 2007 UTC vs.
Revision 1.43 by root, Fri Nov 2 22:18:49 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));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines