… | |
… | |
26 | #include <XSUB.h> |
26 | #include <XSUB.h> |
27 | #undef line_t |
27 | #undef line_t |
28 | |
28 | |
29 | #include "../config.h" |
29 | #include "../config.h" |
30 | |
30 | |
|
|
31 | #include <cstddef> |
31 | #include <cstdarg> |
32 | #include <cstdarg> |
32 | |
33 | |
33 | #include "rxvt.h" |
34 | #include "rxvt.h" |
34 | #include "iom.h" |
35 | #include "iom.h" |
35 | #include "rxvtutil.h" |
36 | #include "rxvtutil.h" |
… | |
… | |
599 | export_const_iv (RS_Bold); |
600 | export_const_iv (RS_Bold); |
600 | export_const_iv (RS_Italic); |
601 | export_const_iv (RS_Italic); |
601 | export_const_iv (RS_Blink); |
602 | export_const_iv (RS_Blink); |
602 | export_const_iv (RS_RVid); |
603 | export_const_iv (RS_RVid); |
603 | export_const_iv (RS_Uline); |
604 | export_const_iv (RS_Uline); |
|
|
605 | |
604 | export_const_iv (CurrentTime); |
606 | export_const_iv (CurrentTime); |
|
|
607 | export_const_iv (ShiftMask); |
|
|
608 | export_const_iv (LockMask); |
|
|
609 | export_const_iv (ControlMask); |
|
|
610 | export_const_iv (Mod1Mask); |
|
|
611 | export_const_iv (Mod2Mask); |
|
|
612 | export_const_iv (Mod3Mask); |
|
|
613 | export_const_iv (Mod4Mask); |
|
|
614 | export_const_iv (Mod5Mask); |
|
|
615 | export_const_iv (Button1Mask); |
|
|
616 | export_const_iv (Button2Mask); |
|
|
617 | export_const_iv (Button3Mask); |
|
|
618 | export_const_iv (Button4Mask); |
|
|
619 | export_const_iv (Button5Mask); |
|
|
620 | export_const_iv (AnyModifier); |
605 | |
621 | |
606 | sv_setsv (get_sv ("urxvt::LIBDIR", 1), newSVpvn (LIBDIR, sizeof (LIBDIR) - 1)); |
622 | sv_setsv (get_sv ("urxvt::LIBDIR", 1), newSVpvn (LIBDIR, sizeof (LIBDIR) - 1)); |
607 | } |
623 | } |
608 | |
624 | |
609 | SV * |
625 | SV * |
… | |
… | |
810 | free (wstr); |
826 | free (wstr); |
811 | } |
827 | } |
812 | OUTPUT: |
828 | OUTPUT: |
813 | RETVAL |
829 | RETVAL |
814 | |
830 | |
815 | # very portable, especially on objects as opposed to pods |
831 | #define TERM_OFFSET(sym) offsetof (TermWin_t, sym) |
816 | #define TERM_OFFSET(sym) (((char *)&((TermWin_t *)0)->sym) - (char *)(TermWin_t *)0) |
|
|
817 | |
832 | |
818 | #define TERM_OFFSET_width TERM_OFFSET(width) |
833 | #define TERM_OFFSET_width TERM_OFFSET(width) |
819 | #define TERM_OFFSET_height TERM_OFFSET(height) |
834 | #define TERM_OFFSET_height TERM_OFFSET(height) |
820 | #define TERM_OFFSET_fwidth TERM_OFFSET(fwidth) |
835 | #define TERM_OFFSET_fwidth TERM_OFFSET(fwidth) |
821 | #define TERM_OFFSET_fheight TERM_OFFSET(fheight) |
836 | #define TERM_OFFSET_fheight TERM_OFFSET(fheight) |
… | |
… | |
846 | CODE: |
861 | CODE: |
847 | RETVAL = *(int *)((char *)THIS + ix); |
862 | RETVAL = *(int *)((char *)THIS + ix); |
848 | OUTPUT: |
863 | OUTPUT: |
849 | RETVAL |
864 | RETVAL |
850 | |
865 | |
|
|
866 | unsigned int |
|
|
867 | rxvt_term::ModLevel3Mask () |
|
|
868 | ALIAS: |
|
|
869 | ModLevel3Mask = 0 |
|
|
870 | ModMetaMask = 1 |
|
|
871 | ModNumLockMask = 2 |
|
|
872 | CODE: |
|
|
873 | switch (ix) |
|
|
874 | { |
|
|
875 | case 0: RETVAL = THIS->ModLevel3Mask; break; |
|
|
876 | case 1: RETVAL = THIS->ModMetaMask; break; |
|
|
877 | case 2: RETVAL = THIS->ModNumLockMask; break; |
|
|
878 | } |
|
|
879 | OUTPUT: |
|
|
880 | RETVAL |
|
|
881 | |
851 | U32 |
882 | U32 |
852 | rxvt_term::parent () |
883 | rxvt_term::parent () |
853 | CODE: |
884 | CODE: |
854 | RETVAL = (U32)THIS->parent [0]; |
885 | RETVAL = (U32)THIS->parent [0]; |
855 | OUTPUT: |
886 | OUTPUT: |