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.115 by ayin, Wed Oct 31 09:55:24 2007 UTC vs.
Revision 1.117 by root, Thu Dec 13 18:24:36 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
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)
857 for (int i = AvFILL (env) + 1; i--; ) 857 for (int i = AvFILL (env) + 1; i--; )
858 envv->push_back (strdup (SvPVbyte_nolen (*av_fetch (env, i, 1)))); 858 envv->push_back (strdup (SvPVbyte_nolen (*av_fetch (env, i, 1))));
859 859
860 envv->push_back (0); 860 envv->push_back (0);
861 861
862 bool success;
863
864 try 862 try
865 { 863 {
866 success = term->init (argv, envv); 864 term->init (argv, envv);
867 } 865 }
868 catch (const class rxvt_failure_exception &e) 866 catch (const class rxvt_failure_exception &e)
869 {
870 success = false;
871 }
872
873 if (!success)
874 { 867 {
875 term->destroy (); 868 term->destroy ();
876 croak ("error while initializing new terminal instance"); 869 croak ("error while initializing new terminal instance");
877 } 870 }
878 871
1139 if (*i) 1132 if (*i)
1140 PUSHs (sv_2mortal (newSVpv (*i, 0))); 1133 PUSHs (sv_2mortal (newSVpv (*i, 0)));
1141} 1134}
1142 1135
1143int 1136int
1144rxvt_term::pty_ev_events (int events = EVENT_UNDEF) 1137rxvt_term::pty_ev_events (int events = ev::UNDEF)
1145 CODE: 1138 CODE:
1146 RETVAL = THIS->pty_ev.events; 1139 RETVAL = THIS->pty_ev.events;
1147 if (events != EVENT_UNDEF) 1140 if (events != ev::UNDEF)
1148 THIS->pty_ev.set (events); 1141 THIS->pty_ev.set (events);
1149 OUTPUT: 1142 OUTPUT:
1150 RETVAL 1143 RETVAL
1151 1144
1152int 1145int
1476 1469
1477 if (set >= 0) 1470 if (set >= 0)
1478 { 1471 {
1479 THIS->set_option (optval, set); 1472 THIS->set_option (optval, set);
1480 1473
1481 if (THIS->check_ev.is_active ()) // avoid doing this before START 1474 if (THIS->prepare_ev.is_active ()) // avoid doing this before START
1482 switch (optval) 1475 switch (optval)
1483 { 1476 {
1484 case Opt_skipBuiltinGlyphs: 1477 case Opt_skipBuiltinGlyphs:
1485 THIS->set_fonts (); 1478 THIS->set_fonts ();
1486 THIS->scr_remap_chars (); 1479 THIS->scr_remap_chars ();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines