… | |
… | |
49 | |
49 | |
50 | struct rxvt_perl_interp |
50 | struct rxvt_perl_interp |
51 | { |
51 | { |
52 | char **perl_environ; |
52 | char **perl_environ; |
53 | |
53 | |
|
|
54 | #if 0 // see rxvtperl.xs |
54 | ~rxvt_perl_interp (); |
55 | ~rxvt_perl_interp (); |
|
|
56 | #endif |
55 | |
57 | |
|
|
58 | void init (); |
56 | void init (rxvt_term *term); |
59 | void init (rxvt_term *term); |
|
|
60 | void eval (const char *str); |
57 | bool invoke (rxvt_term *term, hook_type htype, ...); |
61 | bool invoke (rxvt_term *term, int htype, ...); |
58 | void line_update (rxvt_term *term); |
62 | void line_update (rxvt_term *term); |
59 | void selection_finish (rxvt_selection *sel, char *data, unsigned int len); |
63 | void selection_finish (rxvt_selection *sel, char *data, unsigned int len); |
60 | void usage (rxvt_term *term, int type); |
64 | void usage (rxvt_term *term, int type); |
61 | |
65 | |
62 | enum |
66 | enum |
63 | { |
67 | { |
64 | RESOURCE_AVAILABLE = 0, |
68 | RESOURCE_AVAILABLE = 1, // whether the option is valid |
65 | RESOURCE_BOOLEAN = 1 |
69 | RESOURCE_ARG = 2 // whether the option eats the next arg |
66 | }; |
70 | }; |
67 | uint8_t resource (rxvt_term *term, const char *name, bool arg, bool longopt, bool flag, const char *value); |
71 | uint8_t parse_resource (rxvt_term *term, const char *name, bool arg, bool longopt, bool flag, const char *value); |
68 | }; |
72 | }; |
69 | |
73 | |
70 | extern struct rxvt_perl_interp rxvt_perl; |
74 | extern struct rxvt_perl_interp rxvt_perl; |
71 | |
75 | |
72 | #else |
76 | #else |