… | |
… | |
79 | # define STDIN_FILENO 0 |
79 | # define STDIN_FILENO 0 |
80 | # define STDOUT_FILENO 1 |
80 | # define STDOUT_FILENO 1 |
81 | # define STDERR_FILENO 2 |
81 | # define STDERR_FILENO 2 |
82 | #endif |
82 | #endif |
83 | |
83 | |
|
|
84 | #if !defined (EACCESS) && defined(EAGAIN) |
|
|
85 | # define EACCESS EAGAIN |
|
|
86 | #endif |
|
|
87 | |
|
|
88 | #ifndef EXIT_SUCCESS /* missing from <stdlib.h> */ |
|
|
89 | # define EXIT_SUCCESS 0 /* exit function success */ |
|
|
90 | # define EXIT_FAILURE 1 /* exit function failure */ |
|
|
91 | #endif |
|
|
92 | |
|
|
93 | #ifndef PATH_MAX |
|
|
94 | # define PATH_MAX 16384 |
|
|
95 | #endif |
|
|
96 | |
84 | /****************************************************************************/ |
97 | /****************************************************************************/ |
85 | |
98 | |
86 | // exception thrown on fatal (per-instance) errors |
99 | // exception thrown on fatal (per-instance) errors |
87 | class rxvt_failure_exception { }; |
100 | class rxvt_failure_exception { }; |
88 | |
101 | |
… | |
… | |
210 | # define TERMENV "rxvt-unicode" |
223 | # define TERMENV "rxvt-unicode" |
211 | #endif |
224 | #endif |
212 | |
225 | |
213 | #if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR) |
226 | #if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR) |
214 | # define NO_MOUSE_REPORT_SCROLLBAR 1 |
227 | # define NO_MOUSE_REPORT_SCROLLBAR 1 |
215 | #endif |
|
|
216 | |
|
|
217 | /* now look for other badly set stuff */ |
|
|
218 | |
|
|
219 | #if !defined (EACCESS) && defined(EAGAIN) |
|
|
220 | # define EACCESS EAGAIN |
|
|
221 | #endif |
|
|
222 | |
|
|
223 | #ifndef EXIT_SUCCESS /* missing from <stdlib.h> */ |
|
|
224 | # define EXIT_SUCCESS 0 /* exit function success */ |
|
|
225 | # define EXIT_FAILURE 1 /* exit function failure */ |
|
|
226 | #endif |
228 | #endif |
227 | |
229 | |
228 | #define scrollBar_esc 30 |
230 | #define scrollBar_esc 30 |
229 | |
231 | |
230 | #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR) |
232 | #if defined(RXVT_SCROLLBAR) || defined(NEXT_SCROLLBAR) || defined(XTERM_SCROLLBAR) || defined(PLAIN_SCROLLBAR) |
… | |
… | |
594 | #define IMBUFSIZ 128 // input modifier buffer sizes |
596 | #define IMBUFSIZ 128 // input modifier buffer sizes |
595 | #define KBUFSZ 512 // size of keyboard mapping buffer |
597 | #define KBUFSZ 512 // size of keyboard mapping buffer |
596 | #define CBUFSIZ 2048 // size of command buffer |
598 | #define CBUFSIZ 2048 // size of command buffer |
597 | #define UBUFSIZ 2048 // character buffer |
599 | #define UBUFSIZ 2048 // character buffer |
598 | |
600 | |
599 | #ifndef PATH_MAX |
|
|
600 | # define PATH_MAX 16384 |
|
|
601 | #endif |
|
|
602 | |
|
|
603 | #if ENABLE_FRILLS |
601 | #if ENABLE_FRILLS |
604 | # include <X11/Xmd.h> |
602 | # include <X11/Xmd.h> |
605 | typedef struct _mwmhints { |
603 | typedef struct _mwmhints { |
606 | CARD32 flags; |
604 | CARD32 flags; |
607 | CARD32 functions; |
605 | CARD32 functions; |