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.19 by root, Tue Jan 3 20:47:36 2006 UTC vs.
Revision 1.21 by root, Wed Jan 4 02:37:30 2006 UTC

501 501
502PROTOTYPES: ENABLE 502PROTOTYPES: ENABLE
503 503
504BOOT: 504BOOT:
505{ 505{
506# define set_hookname(sym) av_store (hookname, PP_CONCAT(HOOK_, sym), newSVpv (PP_STRINGIFY(sym), 0))
507# define export_const(name) newCONSTSUB (gv_stashpv ("urxvt", 1), #name, newSViv (name)); 506# define export_const(name) newCONSTSUB (gv_stashpv ("urxvt", 1), #name, newSViv (name));
508 AV *hookname = get_av ("urxvt::HOOKNAME", 1); 507 AV *hookname = get_av ("urxvt::HOOKNAME", 1);
509 set_hookname (INIT); 508# define def(sym) av_store (hookname, HOOK_ ## sym, newSVpv (# sym, 0));
510 set_hookname (RESET); 509# include "hookinc.h"
511 set_hookname (START); 510# undef def
512 set_hookname (DESTROY);
513 set_hookname (SEL_BEGIN);
514 set_hookname (SEL_EXTEND);
515 set_hookname (SEL_MAKE);
516 set_hookname (SEL_GRAB);
517 set_hookname (FOCUS_IN);
518 set_hookname (FOCUS_OUT);
519 set_hookname (VIEW_CHANGE);
520 set_hookname (SCROLL_BACK);
521 set_hookname (TTY_ACTIVITY);
522 set_hookname (REFRESH_BEGIN);
523 set_hookname (REFRESH_END);
524 set_hookname (KEYBOARD_COMMAND);
525 511
526 export_const (DEFAULT_RSTYLE); 512 export_const (DEFAULT_RSTYLE);
527 export_const (OVERLAY_RSTYLE); 513 export_const (OVERLAY_RSTYLE);
528 export_const (RS_Bold); 514 export_const (RS_Bold);
529 export_const (RS_Italic); 515 export_const (RS_Italic);
830void 816void
831rxvt_term::_resource (char *name, int index, SV *newval = 0) 817rxvt_term::_resource (char *name, int index, SV *newval = 0)
832 PPCODE: 818 PPCODE:
833{ 819{
834 struct resval { const char *name; int value; } rslist [] = { 820 struct resval { const char *name; int value; } rslist [] = {
835# define Rs_def(name) { # name, Rs_ ## name }, 821# define def(name) { # name, Rs_ ## name },
836# define Rs_reserve(name,count) 822# define reserve(name,count)
837# include "rsinc.h" 823# include "rsinc.h"
838# undef Rs_def 824# undef def
839# undef Rs_reserve 825# undef reserve
840 }; 826 };
841 827
842 struct resval *rs = rslist + sizeof (rslist) / sizeof (rslist [0]); 828 struct resval *rs = rslist + sizeof (rslist) / sizeof (rslist [0]);
843 829
844 do { 830 do {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines