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.138 by root, Mon Feb 21 08:10:10 2011 UTC vs.
Revision 1.141 by sf-exg, Mon May 30 18:39:03 2011 UTC

341 " unshift @INC, '" LIBDIR "';" 341 " unshift @INC, '" LIBDIR "';"
342 "}" 342 "}"
343 "" 343 ""
344 "use urxvt;" 344 "use urxvt;"
345 }; 345 };
346 int argc = ARRAY_LENGTH(args); 346 int argc = ecb_array_length (args);
347 char **argv = args; 347 char **argv = args;
348 348
349 PERL_SYS_INIT3 (&argc, &argv, &environ); 349 PERL_SYS_INIT3 (&argc, &argv, &environ);
350 perl = perl_alloc (); 350 perl = perl_alloc ();
351 perl_construct (perl); 351 perl_construct (perl);
788 const_iv (XIMDontChange), 788 const_iv (XIMDontChange),
789# endif 789# endif
790# endif 790# endif
791 }; 791 };
792 792
793 for (civ = const_iv + ARRAY_LENGTH(const_iv); civ-- > const_iv; ) 793 for (civ = const_iv + ecb_array_length (const_iv); civ-- > const_iv; )
794 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); 794 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
795} 795}
796 796
797void 797void
798warn (const char *msg) 798warn (const char *msg)
870 870
871 for (rxvt_term **t = rxvt_term::termlist.begin (); t < rxvt_term::termlist.end (); t++) 871 for (rxvt_term **t = rxvt_term::termlist.begin (); t < rxvt_term::termlist.end (); t++)
872 if ((*t)->perl.self) 872 if ((*t)->perl.self)
873 PUSHs (sv_2mortal (newSVterm (*t))); 873 PUSHs (sv_2mortal (newSVterm (*t)));
874} 874}
875
876IV
877_new_selection_request (rxvt_term *term, int selnum, Time tm, Window win, Atom prop, SV *cb)
878 CODE:
879 rxvt_selection *req = new rxvt_selection (term->display, selnum, tm, win, prop, term);
880 req->cb_sv = newSVsv (cb);
881 RETVAL = (IV)req;
882 OUTPUT:
883 RETVAL
884
885void
886_delete_selection_request (IV req_)
887 CODE:
888 rxvt_selection *req = (rxvt_selection *)req_;
889 delete req;
875 890
876MODULE = urxvt PACKAGE = urxvt::term 891MODULE = urxvt PACKAGE = urxvt::term
877 892
878SV * 893SV *
879_new (AV *env, AV *arg) 894_new (AV *env, AV *arg)
1187 RETVAL 1202 RETVAL
1188 1203
1189Window 1204Window
1190rxvt_term::parent () 1205rxvt_term::parent ()
1191 CODE: 1206 CODE:
1192 RETVAL = THIS->parent [0]; 1207 RETVAL = THIS->parent;
1193 OUTPUT: 1208 OUTPUT:
1194 RETVAL 1209 RETVAL
1195 1210
1196Window 1211Window
1197rxvt_term::vt () 1212rxvt_term::vt ()
1466# include "rsinc.h" 1481# include "rsinc.h"
1467# undef def 1482# undef def
1468# undef reserve 1483# undef reserve
1469 }; 1484 };
1470 1485
1471 rs = rslist + ARRAY_LENGTH(rslist); 1486 rs = rslist + ecb_array_length (rslist);
1472 1487
1473 if (*name) 1488 if (*name)
1474 { 1489 {
1475 do { 1490 do {
1476 if (rs-- == rslist) 1491 if (rs-- == rslist)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines