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.172 by root, Tue Jun 5 22:46:50 2012 UTC vs.
Revision 1.173 by root, Wed Jun 6 11:46:11 2012 UTC

404 dSP; 404 dSP;
405 EXTEND (SP, 2); 405 EXTEND (SP, 2);
406 PUSHs (sv_2mortal (newSVterm (term))); 406 PUSHs (sv_2mortal (newSVterm (term)));
407 PUSHs (sv_2mortal (newSViv (type))); 407 PUSHs (sv_2mortal (newSViv (type)));
408 PUTBACK; 408 PUTBACK;
409 call_pv ("urxvt::usage", G_VOID | G_DISCARD | G_EVAL); 409 call_pv ("urxvt::usage", G_VOID | G_DISCARD);
410 410
411 FREETMPS; 411 FREETMPS;
412 LEAVE; 412 LEAVE;
413} 413}
414 414
415uint8_t 415uint8_t
416rxvt_perl_interp::resource (rxvt_term *term, const char *name, bool arg, bool longopt, bool flag, const char *value) 416rxvt_perl_interp::parse_resource (rxvt_term *term, const char *name, bool arg, bool longopt, bool flag, const char *value)
417{ 417{
418 localise_env set_environ (perl_environ); 418 localise_env set_environ (perl_environ);
419 419
420 ENTER; 420 ENTER;
421 SAVETMPS; 421 SAVETMPS;
427 PUSHs (arg ? &PL_sv_yes : &PL_sv_no); 427 PUSHs (arg ? &PL_sv_yes : &PL_sv_no);
428 PUSHs (longopt ? &PL_sv_yes : &PL_sv_no); 428 PUSHs (longopt ? &PL_sv_yes : &PL_sv_no);
429 PUSHs (flag ? &PL_sv_yes : &PL_sv_no); 429 PUSHs (flag ? &PL_sv_yes : &PL_sv_no);
430 PUSHs (value ? sv_2mortal (newSVpv (value, 0)) : &PL_sv_undef); 430 PUSHs (value ? sv_2mortal (newSVpv (value, 0)) : &PL_sv_undef);
431 PUTBACK; 431 PUTBACK;
432 call_pv ("urxvt::resource", G_SCALAR | G_EVAL); 432 call_pv ("urxvt::parse_resource", G_SCALAR);
433 SPAGAIN;
433 434
434 uint8_t ret = POPi; 435 uint8_t ret = POPi;
435 436
436 FREETMPS; 437 FREETMPS;
437 LEAVE; 438 LEAVE;
1061 if (count) 1062 if (count)
1062 THIS->get_window_origin (THIS->parent_x, THIS->parent_y); 1063 THIS->get_window_origin (THIS->parent_x, THIS->parent_y);
1063 } 1064 }
1064 } 1065 }
1065 1066
1067void
1068rxvt_term::put_option_db (octet_string specifier, octet_string value)
1069 CODE:
1070 XrmPutStringResource (&THIS->option_db, specifier, value);
1071
1066int 1072int
1067rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt) 1073rxvt_term::grab_button (int button, U32 modifiers, Window window = THIS->vt)
1068 CODE: 1074 CODE:
1069 RETVAL = XGrabButton (THIS->dpy, button, modifiers, window, 1, 1075 RETVAL = XGrabButton (THIS->dpy, button, modifiers, window, 1,
1070 ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask, 1076 ButtonPressMask | ButtonReleaseMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask,

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines