… | |
… | |
18 | #include "encoding.h" |
18 | #include "encoding.h" |
19 | #include "rxvtfont.h" |
19 | #include "rxvtfont.h" |
20 | #include "rxvttoolkit.h" |
20 | #include "rxvttoolkit.h" |
21 | #include "iom.h" |
21 | #include "iom.h" |
22 | #include "salloc.h" |
22 | #include "salloc.h" |
|
|
23 | |
|
|
24 | #include "rxvtperl.h" |
23 | |
25 | |
24 | #if ENABLE_FRILLS |
26 | #if ENABLE_FRILLS |
25 | # define ENABLE_XEMBED 1 |
27 | # define ENABLE_XEMBED 1 |
26 | # define ENABLE_EWMH 1 |
28 | # define ENABLE_EWMH 1 |
27 | # define CURSOR_BLINK 1 |
29 | # define CURSOR_BLINK 1 |
… | |
… | |
920 | #if UNICODE3 |
922 | #if UNICODE3 |
921 | # define COMPOSE_LO 0x40000000UL |
923 | # define COMPOSE_LO 0x40000000UL |
922 | # define COMPOSE_HI 0x400fffffUL |
924 | # define COMPOSE_HI 0x400fffffUL |
923 | # define IS_COMPOSE(n) ((int32_t)(n) >= COMPOSE_LO) |
925 | # define IS_COMPOSE(n) ((int32_t)(n) >= COMPOSE_LO) |
924 | #else |
926 | #else |
|
|
927 | # if ENABLE_PERL |
|
|
928 | # define COMPOSE_LO 0xe000UL // our _own_ routiens don't like (illegal) surrogates |
|
|
929 | # define COMPOSE_HI 0xf8ffUL // in utf-8, so use private use area only |
|
|
930 | # else |
925 | # define COMPOSE_LO 0xd800UL |
931 | # define COMPOSE_LO 0xd800UL |
926 | # define COMPOSE_HI 0xf8ffUL // dfff should be safer, but... |
932 | # define COMPOSE_HI 0xf8ffUL |
927 | # define IS_COMPOSE(n) (COMPOSE_LO <= (n) && (n) <= COMPOSE_HI) |
933 | # endif |
|
|
934 | # define IS_COMPOSE(n) IN_RANGE_INC ((n), COMPOSE_LO, COMPOSE_HI) |
928 | #endif |
935 | #endif |
929 | |
936 | |
930 | #if ENABLE_COMBINING |
937 | #if ENABLE_COMBINING |
931 | // compose chars are used to represent composite characters |
938 | // compose chars are used to represent composite characters |
932 | // that are not representable in unicode, as well as characters |
939 | // that are not representable in unicode, as well as characters |
… | |
… | |
959 | #ifdef KEYSYM_RESOURCE |
966 | #ifdef KEYSYM_RESOURCE |
960 | class keyboard_manager; |
967 | class keyboard_manager; |
961 | #endif |
968 | #endif |
962 | |
969 | |
963 | struct rxvt_term : zero_initialized, rxvt_vars { |
970 | struct rxvt_term : zero_initialized, rxvt_vars { |
964 | log_callback *log_hook; // log error messages through this hook, if != 0 |
971 | log_callback *log_hook; // log error messages through this hook, if != 0 |
965 | getfd_callback *getfd_hook; // convert remote to local fd, if != 0 |
972 | getfd_callback *getfd_hook; // convert remote to local fd, if != 0 |
966 | |
973 | |
967 | #if ENABLE_PERL |
974 | #if ENABLE_PERL |
968 | void *self; // perl's $self |
975 | rxvt_perl_term perl; |
969 | #endif |
976 | #endif |
970 | |
977 | |
971 | struct mbstate mbstate; // current input multibyte state |
978 | struct mbstate mbstate; // current input multibyte state |
972 | |
979 | |
973 | unsigned char want_refresh:1, |
980 | unsigned char want_refresh:1, |