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

Comparing EV/EV.xs (file contents):
Revision 1.86 by root, Mon Dec 3 13:41:24 2007 UTC vs.
Revision 1.88 by root, Sat Dec 8 04:02:30 2007 UTC

403 evapi.child_start = ev_child_start; 403 evapi.child_start = ev_child_start;
404 evapi.child_stop = ev_child_stop; 404 evapi.child_stop = ev_child_stop;
405 evapi.stat_start = ev_stat_start; 405 evapi.stat_start = ev_stat_start;
406 evapi.stat_stop = ev_stat_stop; 406 evapi.stat_stop = ev_stat_stop;
407 evapi.stat_stat = ev_stat_stat; 407 evapi.stat_stat = ev_stat_stat;
408 evapi.clear_pending = ev_clear_pending;
408 409
409 sv_setiv (sv, (IV)&evapi); 410 sv_setiv (sv, (IV)&evapi);
410 SvREADONLY_on (sv); 411 SvREADONLY_on (sv);
411 } 412 }
412#ifndef _WIN32 413#ifndef _WIN32
608 609
609 if (items > 1) 610 if (items > 1)
610 { 611 {
611 int active = ev_is_active (w); 612 int active = ev_is_active (w);
612 613
613 if (new_priority < EV_MINPRI || new_priority > EV_MAXPRI)
614 croak ("watcher priority out of range, value must be between %d and %d, inclusive", EV_MINPRI, EV_MAXPRI);
615
616 if (active) 614 if (active)
617 { 615 {
618 /* grrr. */ 616 /* grrr. */
619 PUSHMARK (SP); 617 PUSHMARK (SP);
620 XPUSHs (ST (0)); 618 XPUSHs (ST (0));
619 PUTBACK;
621 call_method ("stop", G_DISCARD | G_VOID); 620 call_method ("stop", G_DISCARD | G_VOID);
622 } 621 }
623 622
624 ev_set_priority (w, new_priority); 623 ev_set_priority (w, new_priority);
625 624
626 if (active) 625 if (active)
627 { 626 {
628 PUSHMARK (SP); 627 PUSHMARK (SP);
629 XPUSHs (ST (0)); 628 XPUSHs (ST (0));
629 PUTBACK;
630 call_method ("start", G_DISCARD | G_VOID); 630 call_method ("start", G_DISCARD | G_VOID);
631 } 631 }
632 } 632 }
633} 633}
634 OUTPUT: 634 OUTPUT:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines