… | |
… | |
118 | void rxvt_log (const char *fmt,...) NOTHROW; |
118 | void rxvt_log (const char *fmt,...) NOTHROW; |
119 | void rxvt_warn (const char *fmt,...) NOTHROW; |
119 | void rxvt_warn (const char *fmt,...) NOTHROW; |
120 | void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; |
120 | void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; |
121 | void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; |
121 | void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; |
122 | |
122 | |
123 | int rxvt_Str_match (const char *s1, const char *s2) NOTHROW; |
|
|
124 | const char * rxvt_Str_skip_space (const char *str) NOTHROW; |
|
|
125 | char * rxvt_Str_trim (char *str) NOTHROW; |
123 | char * rxvt_Str_trim (char *str) NOTHROW; |
126 | int rxvt_Str_escaped (char *str) NOTHROW; |
124 | int rxvt_Str_escaped (char *str) NOTHROW; |
127 | char ** rxvt_splitcommastring (const char *cs) NOTHROW; |
125 | char ** rxvt_splitcommastring (const char *cs) NOTHROW; |
128 | void rxvt_freecommastring (char **cs) NOTHROW; |
126 | void rxvt_freecommastring (char **cs) NOTHROW; |
129 | |
127 | |
… | |
… | |
131 | |
129 | |
132 | // temporarily replace the process environment |
130 | // temporarily replace the process environment |
133 | extern char **environ; |
131 | extern char **environ; |
134 | extern char **rxvt_environ; // the original environ pointer |
132 | extern char **rxvt_environ; // the original environ pointer |
135 | |
133 | |
136 | inline void set_environ (stringvec *envv) |
134 | static inline void set_environ (stringvec *envv) |
137 | { |
135 | { |
138 | #if ENABLE_PERL |
136 | #if ENABLE_PERL |
139 | assert (envv); |
137 | assert (envv); |
140 | #else |
138 | #else |
141 | if (envv) |
139 | if (envv) |
142 | #endif |
140 | #endif |
143 | environ = (char **)envv->begin (); |
141 | environ = (char **)envv->begin (); |
144 | } |
142 | } |
145 | |
143 | |
146 | inline void set_environ (char **envv) |
144 | static inline void set_environ (char **envv) |
147 | { |
145 | { |
148 | #if ENABLE_PERL |
146 | #if ENABLE_PERL |
149 | assert (envv); |
147 | assert (envv); |
150 | #else |
148 | #else |
151 | if (envv) |
149 | if (envv) |
… | |
… | |
696 | #define PrivMode_LFNL (1UL<<19) |
694 | #define PrivMode_LFNL (1UL<<19) |
697 | /* too annoying to implement X11 highlight tracking */ |
695 | /* too annoying to implement X11 highlight tracking */ |
698 | /* #define PrivMode_MouseX11Track (1LU<<20) */ |
696 | /* #define PrivMode_MouseX11Track (1LU<<20) */ |
699 | |
697 | |
700 | #define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11) |
698 | #define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11) |
701 | #define PrivMode(test,bit) \ |
|
|
702 | if (test) \ |
|
|
703 | priv_modes |= (bit); \ |
|
|
704 | else \ |
|
|
705 | priv_modes &= ~(bit) |
|
|
706 | |
699 | |
707 | #ifdef ALLOW_132_MODE |
700 | #ifdef ALLOW_132_MODE |
708 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
701 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
709 | #else |
702 | #else |
710 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
703 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
… | |
… | |
1395 | { |
1388 | { |
1396 | if (set) |
1389 | if (set) |
1397 | options[opt >> 3] |= (1 << (opt & 7)); |
1390 | options[opt >> 3] |= (1 << (opt & 7)); |
1398 | else |
1391 | else |
1399 | options[opt >> 3] &= ~(1 << (opt & 7)); |
1392 | options[opt >> 3] &= ~(1 << (opt & 7)); |
|
|
1393 | } |
|
|
1394 | |
|
|
1395 | void PrivMode (int set, unsigned bit) NOTHROW |
|
|
1396 | { |
|
|
1397 | if (set) |
|
|
1398 | priv_modes |= bit; |
|
|
1399 | else |
|
|
1400 | priv_modes &= ~bit; |
1400 | } |
1401 | } |
1401 | |
1402 | |
1402 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; |
1403 | void scr_blank_line (line_t &l, unsigned int col, unsigned int width, rend_t efs) const NOTHROW; |
1403 | void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; |
1404 | void scr_blank_screen_mem (line_t &l, rend_t efs) const NOTHROW; |
1404 | int scr_scroll_text (int row1, int row2, int count) NOTHROW; |
1405 | int scr_scroll_text (int row1, int row2, int count) NOTHROW; |