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.36 by root, Sat Jan 7 19:29:17 2006 UTC vs.
Revision 1.37 by root, Sat Jan 7 20:23:52 2006 UTC

583 583
584PROTOTYPES: ENABLE 584PROTOTYPES: ENABLE
585 585
586BOOT: 586BOOT:
587{ 587{
588 HV *stash = gv_stashpv ("urxvt", 1);
588# define export_const(name) newCONSTSUB (gv_stashpv ("urxvt", 1), # name, newSViv (name)); 589# define export_const_iv(name) newCONSTSUB (stash, # name, newSViv (name));
590
589 AV *hookname = get_av ("urxvt::HOOKNAME", 1); 591 AV *hookname = get_av ("urxvt::HOOKNAME", 1);
590# define def(sym) av_store (hookname, HOOK_ ## sym, newSVpv (# sym, 0)); 592# define def(sym) av_store (hookname, HOOK_ ## sym, newSVpv (# sym, 0));
591# include "hookinc.h" 593# include "hookinc.h"
592# undef def 594# undef def
593 595
596
594 export_const (DEFAULT_RSTYLE); 597 export_const_iv (DEFAULT_RSTYLE);
595 export_const (OVERLAY_RSTYLE); 598 export_const_iv (OVERLAY_RSTYLE);
596 export_const (RS_Bold); 599 export_const_iv (RS_Bold);
597 export_const (RS_Italic); 600 export_const_iv (RS_Italic);
598 export_const (RS_Blink); 601 export_const_iv (RS_Blink);
599 export_const (RS_RVid); 602 export_const_iv (RS_RVid);
600 export_const (RS_Uline); 603 export_const_iv (RS_Uline);
601 export_const (CurrentTime); 604 export_const_iv (CurrentTime);
602 605
603 sv_setpv (get_sv ("urxvt::LIBDIR", 1), LIBDIR); 606 sv_setsv (get_sv ("urxvt::LIBDIR", 1), newSVpvn (LIBDIR, sizeof (LIBDIR) - 1));
604} 607}
605 608
606SV * 609SV *
607new (...) 610new (...)
608 CODE: 611 CODE:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines