… | |
… | |
27 | #else |
27 | #else |
28 | // stdlib.h might provide it |
28 | // stdlib.h might provide it |
29 | #endif |
29 | #endif |
30 | |
30 | |
31 | using namespace std; |
31 | using namespace std; |
|
|
32 | |
|
|
33 | // we assume that Xlib.h defines XPointer, and it does since at least 1994... |
32 | |
34 | |
33 | extern "C" { |
35 | extern "C" { |
34 | #include <X11/Xlib.h> |
36 | #include <X11/Xlib.h> |
35 | #include <X11/Xutil.h> |
37 | #include <X11/Xutil.h> |
36 | #include <X11/Xresource.h> |
38 | #include <X11/Xresource.h> |
… | |
… | |
97 | /* |
99 | /* |
98 | ***************************************************************************** |
100 | ***************************************************************************** |
99 | * SYSTEM HACKS |
101 | * SYSTEM HACKS |
100 | ***************************************************************************** |
102 | ***************************************************************************** |
101 | */ |
103 | */ |
102 | |
|
|
103 | #ifndef HAVE_XPOINTER |
|
|
104 | typedef char *XPointer; |
|
|
105 | #endif |
|
|
106 | |
104 | |
107 | #include <termios.h> |
105 | #include <termios.h> |
108 | |
106 | |
109 | #include "background.h" |
107 | #include "background.h" |
110 | |
108 | |
… | |
… | |
155 | void rxvt_warn (const char *fmt,...) NOTHROW; |
153 | void rxvt_warn (const char *fmt,...) NOTHROW; |
156 | void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; |
154 | void rxvt_fatal (const char *fmt, ...) THROW ((class rxvt_failure_exception)) NORETURN; |
157 | void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; |
155 | void rxvt_exit_failure () THROW ((class rxvt_failure_exception)) NORETURN; |
158 | |
156 | |
159 | char * rxvt_strtrim (char *str) NOTHROW; |
157 | char * rxvt_strtrim (char *str) NOTHROW; |
160 | char ** rxvt_splitcommastring (const char *cs) NOTHROW; |
158 | char ** rxvt_strsplit (char delim, const char *str) NOTHROW; |
161 | void rxvt_freecommastring (char **cs) NOTHROW; |
159 | |
|
|
160 | static inline void |
|
|
161 | rxvt_free_strsplit (char **ptr) NOTHROW |
|
|
162 | { |
|
|
163 | free (ptr[0]); |
|
|
164 | free (ptr); |
|
|
165 | } |
162 | |
166 | |
163 | void * rxvt_malloc (size_t size); |
167 | void * rxvt_malloc (size_t size); |
164 | void * rxvt_calloc (size_t number, size_t size); |
168 | void * rxvt_calloc (size_t number, size_t size); |
165 | void * rxvt_realloc (void *ptr, size_t size); |
169 | void * rxvt_realloc (void *ptr, size_t size); |
166 | |
170 | |
… | |
… | |
1334 | void set_colorfgbg (); |
1338 | void set_colorfgbg (); |
1335 | bool set_color (rxvt_color &color, const char *name); |
1339 | bool set_color (rxvt_color &color, const char *name); |
1336 | void alias_color (int dst, int src); |
1340 | void alias_color (int dst, int src); |
1337 | void set_widthheight (unsigned int newwidth, unsigned int newheight); |
1341 | void set_widthheight (unsigned int newwidth, unsigned int newheight); |
1338 | void get_window_origin (int &x, int &y); |
1342 | void get_window_origin (int &x, int &y); |
1339 | Pixmap get_pixmap_property (int prop_id); |
1343 | Pixmap get_pixmap_property (Atom property); |
1340 | |
1344 | |
1341 | // screen.C |
1345 | // screen.C |
1342 | |
1346 | |
1343 | void lalloc (line_t &l) const |
1347 | void lalloc (line_t &l) const |
1344 | { |
1348 | { |