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

Comparing EV/EV.xs (file contents):
Revision 1.39 by root, Fri Nov 2 11:02:22 2007 UTC vs.
Revision 1.40 by root, Fri Nov 2 11:09:50 2007 UTC

510void DESTROY (struct ev_signal *w) 510void DESTROY (struct ev_signal *w)
511 CODE: 511 CODE:
512 ev_signal_stop (w); 512 ev_signal_stop (w);
513 e_destroy (w); 513 e_destroy (w);
514 514
515void set (struct ev_signal *w, SV *signal = 0) 515void set (struct ev_signal *w, SV *signal)
516 CODE: 516 CODE:
517{ 517{
518 Signal signum = sv_signum (signal); /* may croak here */ 518 Signal signum = sv_signum (signal); /* may croak here */
519 int active = w->active; 519 int active = w->active;
520 520
526} 526}
527 527
528int signal (struct ev_signal *w, SV *new_signal = 0) 528int signal (struct ev_signal *w, SV *new_signal = 0)
529 CODE: 529 CODE:
530{ 530{
531 Signal signum = new_signal ? sv_signum (signal) : 0; /* may croak here */
532 RETVAL = w->signum; 531 RETVAL = w->signum;
533 532
534 if (items > 1) 533 if (items > 1)
535 { 534 {
535 Signal signum = sv_signum (new_signal); /* may croak here */
536 int active = w->active; 536 int active = w->active;
537 if (active) ev_signal_stop (w); 537 if (active) ev_signal_stop (w);
538 538
539 ev_signal_set (w, signum); 539 ev_signal_set (w, signum);
540 540
656} 656}
657 657
658int pid (struct ev_child *w, int new_pid = 0) 658int pid (struct ev_child *w, int new_pid = 0)
659 CODE: 659 CODE:
660{ 660{
661 RETVAL = newSVsv (w->pid); 661 RETVAL = w->pid;
662 662
663 if (items > 1) 663 if (items > 1)
664 { 664 {
665 int active = w->active; 665 int active = w->active;
666 if (active) ev_child_stop (w); 666 if (active) ev_child_stop (w);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines