ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtperl.xs
(Generate patch)

Comparing rxvt-unicode/src/rxvtperl.xs (file contents):
Revision 1.114 by ayin, Mon Aug 27 18:31:00 2007 UTC vs.
Revision 1.116 by root, Sun Nov 11 04:08:00 2007 UTC

31#include <cstddef> 31#include <cstddef>
32#include <cstdarg> 32#include <cstdarg>
33 33
34#include "unistd.h" 34#include "unistd.h"
35 35
36#include "iom.h" 36#include "ev_cpp.h"
37#include "rxvt.h" 37#include "rxvt.h"
38#include "keyboard.h" 38#include "keyboard.h"
39#include "rxvtutil.h" 39#include "rxvtutil.h"
40#include "rxvtperl.h" 40#include "rxvtperl.h"
41 41
382 382
383 // pre-handling of some events 383 // pre-handling of some events
384 if (htype == HOOK_REFRESH_END) 384 if (htype == HOOK_REFRESH_END)
385 { 385 {
386 AV *av = (AV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0)); 386 AV *av = (AV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0));
387 387
388 for (int i = 0; i <= AvFILL (av); i++) 388 for (int i = 0; i <= AvFILL (av); i++)
389 ((overlay *)SvIV (*av_fetch (av, i, 0)))->swap (); 389 ((overlay *)SvIV (*av_fetch (av, i, 0)))->swap ();
390 } 390 }
391 391
392 swap (perl_environ, environ); 392 swap (perl_environ, environ);
591 591
592 // post-handling of some events 592 // post-handling of some events
593 if (htype == HOOK_REFRESH_BEGIN) 593 if (htype == HOOK_REFRESH_BEGIN)
594 { 594 {
595 AV *av = (AV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0)); 595 AV *av = (AV *)SvRV (*hv_fetch ((HV *)SvRV ((SV *)term->perl.self), "_overlay", 8, 0));
596 596
597 for (int i = AvFILL (av); i >= 0; i--) 597 for (int i = AvFILL (av); i >= 0; i--)
598 ((overlay *)SvIV (*av_fetch (av, i, 0)))->swap (); 598 ((overlay *)SvIV (*av_fetch (av, i, 0)))->swap ();
599 } 599 }
600 else if (htype == HOOK_DESTROY) 600 else if (htype == HOOK_DESTROY)
601 { 601 {
602 clearSVptr ((SV *)term->perl.self); 602 clearSVptr ((SV *)term->perl.self);
603 SvREFCNT_dec ((SV *)term->perl.self); 603 SvREFCNT_dec ((SV *)term->perl.self);
604 604
605 // don't allow further calls 605 // don't allow further calls
606 term->perl.self = 0; 606 term->perl.self = 0;
607 } 607 }
608 608
609 swap (perl_environ, environ); 609 swap (perl_environ, environ);
775_exit (int status) 775_exit (int status)
776 776
777NV 777NV
778NOW () 778NOW ()
779 CODE: 779 CODE:
780 RETVAL = NOW; 780 RETVAL = ev::now ();
781 OUTPUT: 781 OUTPUT:
782 RETVAL 782 RETVAL
783 783
784int 784int
785GET_BASEFG (int rend) 785GET_BASEFG (int rend)
1139 if (*i) 1139 if (*i)
1140 PUSHs (sv_2mortal (newSVpv (*i, 0))); 1140 PUSHs (sv_2mortal (newSVpv (*i, 0)));
1141} 1141}
1142 1142
1143int 1143int
1144rxvt_term::pty_ev_events (int events = EVENT_UNDEF) 1144rxvt_term::pty_ev_events (int events = ev::UNDEF)
1145 CODE: 1145 CODE:
1146 RETVAL = THIS->pty_ev.events; 1146 RETVAL = THIS->pty_ev.events;
1147 if (events != EVENT_UNDEF) 1147 if (events != ev::UNDEF)
1148 THIS->pty_ev.set (events); 1148 THIS->pty_ev.set (events);
1149 OUTPUT: 1149 OUTPUT:
1150 RETVAL 1150 RETVAL
1151 1151
1152int 1152int
1476 1476
1477 if (set >= 0) 1477 if (set >= 0)
1478 { 1478 {
1479 THIS->set_option (optval, set); 1479 THIS->set_option (optval, set);
1480 1480
1481 if (THIS->check_ev.is_active ()) // avoid doing this before START 1481 if (THIS->prepare_ev.is_active ()) // avoid doing this before START
1482 switch (optval) 1482 switch (optval)
1483 { 1483 {
1484 case Opt_skipBuiltinGlyphs: 1484 case Opt_skipBuiltinGlyphs:
1485 THIS->set_fonts (); 1485 THIS->set_fonts ();
1486 THIS->scr_remap_chars (); 1486 THIS->scr_remap_chars ();
1672 Atom *props = XListProperties (THIS->dpy, window, &count); 1672 Atom *props = XListProperties (THIS->dpy, window, &count);
1673 1673
1674 EXTEND (SP, count); 1674 EXTEND (SP, count);
1675 while (count--) 1675 while (count--)
1676 PUSHs (newSVuv ((U32)props [count])); 1676 PUSHs (newSVuv ((U32)props [count]));
1677 1677
1678 XFree (props); 1678 XFree (props);
1679} 1679}
1680 1680
1681void 1681void
1682rxvt_term::XGetWindowProperty (Window window, Atom property) 1682rxvt_term::XGetWindowProperty (Window window, Atom property)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines