… | |
… | |
99 | ***************************************************************************** |
99 | ***************************************************************************** |
100 | * PROTOTYPES |
100 | * PROTOTYPES |
101 | ***************************************************************************** |
101 | ***************************************************************************** |
102 | */ |
102 | */ |
103 | // main.C |
103 | // main.C |
104 | RETSIGTYPE rxvt_Child_signal (int sig) NOTHROW; |
|
|
105 | RETSIGTYPE rxvt_Exit_signal (int sig) NOTHROW; |
|
|
106 | void rxvt_clean_exit () NOTHROW; |
|
|
107 | void * rxvt_malloc (size_t size); |
104 | void * rxvt_malloc (size_t size); |
108 | void * rxvt_calloc (size_t number, size_t size); |
105 | void * rxvt_calloc (size_t number, size_t size); |
109 | void * rxvt_realloc (void *ptr, size_t size); |
106 | void * rxvt_realloc (void *ptr, size_t size); |
110 | |
107 | |
111 | // misc.C |
108 | // misc.C |
… | |
… | |
121 | void rxvt_log (const char *fmt,...) NOTHROW; |
118 | void rxvt_log (const char *fmt,...) NOTHROW; |
122 | void rxvt_warn (const char *fmt,...) NOTHROW; |
119 | void rxvt_warn (const char *fmt,...) NOTHROW; |
123 | 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; |
124 | void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; |
121 | void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; |
125 | |
122 | |
126 | int rxvt_Str_match (const char *s1, const char *s2) NOTHROW; |
|
|
127 | const char * rxvt_Str_skip_space (const char *str) NOTHROW; |
|
|
128 | char * rxvt_Str_trim (char *str) NOTHROW; |
123 | char * rxvt_Str_trim (char *str) NOTHROW; |
129 | int rxvt_Str_escaped (char *str) NOTHROW; |
124 | int rxvt_Str_escaped (char *str) NOTHROW; |
130 | char ** rxvt_splitcommastring (const char *cs) NOTHROW; |
125 | char ** rxvt_splitcommastring (const char *cs) NOTHROW; |
131 | void rxvt_freecommastring (char **cs) NOTHROW; |
126 | void rxvt_freecommastring (char **cs) NOTHROW; |
132 | |
127 | |
… | |
… | |
134 | |
129 | |
135 | // temporarily replace the process environment |
130 | // temporarily replace the process environment |
136 | extern char **environ; |
131 | extern char **environ; |
137 | extern char **rxvt_environ; // the original environ pointer |
132 | extern char **rxvt_environ; // the original environ pointer |
138 | |
133 | |
139 | inline void set_environ (stringvec *envv) |
134 | static inline void set_environ (stringvec *envv) |
140 | { |
135 | { |
141 | #if ENABLE_PERL |
136 | #if ENABLE_PERL |
142 | assert (envv); |
137 | assert (envv); |
143 | #else |
138 | #else |
144 | if (envv) |
139 | if (envv) |
145 | #endif |
140 | #endif |
146 | environ = (char **)envv->begin (); |
141 | environ = (char **)envv->begin (); |
147 | } |
142 | } |
148 | |
143 | |
149 | inline void set_environ (char **envv) |
144 | static inline void set_environ (char **envv) |
150 | { |
145 | { |
151 | #if ENABLE_PERL |
146 | #if ENABLE_PERL |
152 | assert (envv); |
147 | assert (envv); |
153 | #else |
148 | #else |
154 | if (envv) |
149 | if (envv) |
… | |
… | |
181 | propScale = (1UL<<1), |
176 | propScale = (1UL<<1), |
182 | geometryFlags = (geometrySet|propScale), |
177 | geometryFlags = (geometrySet|propScale), |
183 | |
178 | |
184 | tintSet = (1UL<<8), |
179 | tintSet = (1UL<<8), |
185 | tintNeeded = (1UL<<9), |
180 | tintNeeded = (1UL<<9), |
|
|
181 | tintWholesome = (1UL<<10), |
186 | tintServerSide = (1UL<<10), |
182 | tintServerSide = (1UL<<11), |
187 | tintFlags = (tintSet|tintServerSide|tintNeeded), |
183 | tintFlags = (tintSet|tintServerSide|tintNeeded|tintWholesome), |
188 | blurNeeded = (1UL<<11), |
184 | blurNeeded = (1UL<<12), |
189 | |
185 | |
190 | isTransparent = (1UL<<16), |
186 | isTransparent = (1UL<<16), |
191 | isInvalid = (1UL<<17) |
187 | isInvalid = (1UL<<17) |
192 | }; |
188 | }; |
193 | |
189 | |
… | |
… | |
698 | #define PrivMode_LFNL (1UL<<19) |
694 | #define PrivMode_LFNL (1UL<<19) |
699 | /* too annoying to implement X11 highlight tracking */ |
695 | /* too annoying to implement X11 highlight tracking */ |
700 | /* #define PrivMode_MouseX11Track (1LU<<20) */ |
696 | /* #define PrivMode_MouseX11Track (1LU<<20) */ |
701 | |
697 | |
702 | #define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11) |
698 | #define PrivMode_mouse_report (PrivMode_MouseX10|PrivMode_MouseX11) |
703 | #define PrivMode(test,bit) \ |
|
|
704 | if (test) \ |
|
|
705 | priv_modes |= (bit); \ |
|
|
706 | else \ |
|
|
707 | priv_modes &= ~(bit) |
|
|
708 | |
699 | |
709 | #ifdef ALLOW_132_MODE |
700 | #ifdef ALLOW_132_MODE |
710 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
701 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor|PrivMode_132OK) |
711 | #else |
702 | #else |
712 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
703 | # define PrivMode_Default (PrivMode_Autowrap|PrivMode_ShiftKeys|PrivMode_VisibleCursor) |
… | |
… | |
1397 | { |
1388 | { |
1398 | if (set) |
1389 | if (set) |
1399 | options[opt >> 3] |= (1 << (opt & 7)); |
1390 | options[opt >> 3] |= (1 << (opt & 7)); |
1400 | else |
1391 | else |
1401 | 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; |
1402 | } |
1401 | } |
1403 | |
1402 | |
1404 | 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; |
1405 | 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; |
1406 | int scr_scroll_text (int row1, int row2, int count) NOTHROW; |
1405 | int scr_scroll_text (int row1, int row2, int count) NOTHROW; |
… | |
… | |
1516 | // xpm.C |
1515 | // xpm.C |
1517 | void get_window_origin (int &x, int &y); |
1516 | void get_window_origin (int &x, int &y); |
1518 | Pixmap get_pixmap_property (int prop_id); |
1517 | Pixmap get_pixmap_property (int prop_id); |
1519 | }; |
1518 | }; |
1520 | |
1519 | |
1521 | /* |
|
|
1522 | ***************************************************************************** |
|
|
1523 | * PROTOTYPES |
|
|
1524 | ***************************************************************************** |
|
|
1525 | */ |
|
|
1526 | #ifdef PROTOTYPES |
|
|
1527 | # define __PROTO(p) p |
|
|
1528 | #else |
|
|
1529 | # define __PROTO(p) () |
|
|
1530 | #endif |
|
|
1531 | |
|
|
1532 | #endif /* _RXVT_H_ */ |
1520 | #endif /* _RXVT_H_ */ |
1533 | |
1521 | |