… | |
… | |
13 | |
13 | |
14 | enum data_type { |
14 | enum data_type { |
15 | DT_END, |
15 | DT_END, |
16 | DT_INT, |
16 | DT_INT, |
17 | DT_LONG, |
17 | DT_LONG, |
18 | DT_STRING, |
18 | DT_STR, |
19 | DT_STRING_LEN, |
19 | DT_STR_LEN, |
20 | DT_USTRING_LEN, |
20 | DT_WCS_LEN, |
21 | DT_XEVENT, |
21 | DT_XEVENT, |
22 | }; |
22 | }; |
23 | |
23 | |
24 | enum hook_type { |
24 | enum hook_type { |
25 | # define def(sym) HOOK_ ## sym, |
25 | # define def(sym) HOOK_ ## sym, |
26 | # include "hookinc.h" |
26 | # include "hookinc.h" |
27 | # undef def |
27 | # undef def |
28 | HOOK_NUM, |
28 | HOOK_NUM, |
29 | }; |
29 | }; |
30 | |
30 | |
|
|
31 | struct rxvt_perl_term |
|
|
32 | { |
|
|
33 | void *self; |
|
|
34 | unsigned long grabtime; |
|
|
35 | }; |
|
|
36 | |
31 | struct rxvt_perl_interp |
37 | struct rxvt_perl_interp |
32 | { |
38 | { |
33 | rxvt_perl_interp (); |
39 | char **perl_environ; |
|
|
40 | |
34 | ~rxvt_perl_interp (); |
41 | ~rxvt_perl_interp (); |
35 | |
42 | |
36 | bool should_invoke[HOOK_NUM]; |
43 | bool should_invoke[HOOK_NUM]; |
37 | |
44 | |
38 | void init (); |
45 | void init (); |
… | |
… | |
42 | |
49 | |
43 | extern struct rxvt_perl_interp rxvt_perl; |
50 | extern struct rxvt_perl_interp rxvt_perl; |
44 | |
51 | |
45 | #else |
52 | #else |
46 | # define SHOULD_INVOKE(htype) false |
53 | # define SHOULD_INVOKE(htype) false |
47 | # define PERL_INVOKE(args) false |
54 | # define HOOK_INVOKE(args) false |
48 | #endif |
55 | #endif |
49 | |
56 | |
50 | #endif |
57 | #endif |
51 | |
58 | |