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

Comparing EV/EV.xs (file contents):
Revision 1.147 by root, Thu Oct 28 04:59:35 2010 UTC vs.
Revision 1.150 by root, Sun Nov 28 11:40:41 2010 UTC

341 croak ("illegal file descriptor or filehandle (either no attached file descriptor or illegal value): %s", SvPV_nolen (fh)); 341 croak ("illegal file descriptor or filehandle (either no attached file descriptor or illegal value): %s", SvPV_nolen (fh));
342 342
343#define CHECK_SIG(sv,num) if ((num) < 0) \ 343#define CHECK_SIG(sv,num) if ((num) < 0) \
344 croak ("illegal signal number or name: %s", SvPV_nolen (sv)); 344 croak ("illegal signal number or name: %s", SvPV_nolen (sv));
345 345
346static void
346EV_INLINE default_fork (void) 347default_fork (void)
347{ 348{
348 ev_loop_fork (EV_DEFAULT_UC); 349 ev_loop_fork (EV_DEFAULT_UC);
349} 350}
350 351
351///////////////////////////////////////////////////////////////////////////// 352/////////////////////////////////////////////////////////////////////////////
757 ev_stat_set (RETVAL, SvPVbyte_nolen (e_fh (RETVAL)), interval); 758 ev_stat_set (RETVAL, SvPVbyte_nolen (e_fh (RETVAL)), interval);
758 if (!ix) START (stat, RETVAL); 759 if (!ix) START (stat, RETVAL);
759 OUTPUT: 760 OUTPUT:
760 RETVAL 761 RETVAL
761 762
763#ifndef EV_NO_LOOPS
764
762ev_embed *embed (struct ev_loop *loop, SV *cb = 0) 765ev_embed *embed (struct ev_loop *loop, SV *cb = 0)
763 ALIAS: 766 ALIAS:
764 embed_ns = 1 767 embed_ns = 1
765 CODE: 768 CODE:
766{ 769{
772 ev_embed_set (RETVAL, loop); 775 ev_embed_set (RETVAL, loop);
773 if (!ix) START (embed, RETVAL); 776 if (!ix) START (embed, RETVAL);
774} 777}
775 OUTPUT: 778 OUTPUT:
776 RETVAL 779 RETVAL
780
781#endif
777 782
778ev_async *async (SV *cb) 783ev_async *async (SV *cb)
779 ALIAS: 784 ALIAS:
780 async_ns = 1 785 async_ns = 1
781 CODE: 786 CODE:
1324 CODE: 1329 CODE:
1325 RETVAL = boolSV (ev_async_pending (w)); 1330 RETVAL = boolSV (ev_async_pending (w));
1326 OUTPUT: 1331 OUTPUT:
1327 RETVAL 1332 RETVAL
1328 1333
1334#ifndef EV_NO_LOOPS
1335
1329MODULE = EV PACKAGE = EV::Loop PREFIX = ev_ 1336MODULE = EV PACKAGE = EV::Loop PREFIX = ev_
1330 1337
1331SV *new (SV *klass, unsigned int flags = 0) 1338SV *new (SV *klass, unsigned int flags = 0)
1332 CODE: 1339 CODE:
1333{ 1340{
1572 SvOK (timeout) ? SvNV (timeout) : -1., 1579 SvOK (timeout) ? SvNV (timeout) : -1.,
1573 e_once_cb, 1580 e_once_cb,
1574 newSVsv (cb) 1581 newSVsv (cb)
1575 ); 1582 );
1576 1583
1584#endif
1585

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines