… | |
… | |
32 | #if ENABLE_FRILLS |
32 | #if ENABLE_FRILLS |
33 | # include <X11/Xmd.h> |
33 | # include <X11/Xmd.h> |
34 | #endif |
34 | #endif |
35 | |
35 | |
36 | #include "encoding.h" |
36 | #include "encoding.h" |
|
|
37 | #include "rxvtutil.h" |
37 | #include "rxvtfont.h" |
38 | #include "rxvtfont.h" |
38 | #include "rxvttoolkit.h" |
39 | #include "rxvttoolkit.h" |
39 | #include "iom.h" |
40 | #include "iom.h" |
40 | #include "salloc.h" |
41 | #include "salloc.h" |
41 | #include "libptytty.h" |
42 | #include "libptytty.h" |
… | |
… | |
97 | # define STDOUT_FILENO 1 |
98 | # define STDOUT_FILENO 1 |
98 | # define STDERR_FILENO 2 |
99 | # define STDERR_FILENO 2 |
99 | #endif |
100 | #endif |
100 | |
101 | |
101 | /****************************************************************************/ |
102 | /****************************************************************************/ |
102 | |
|
|
103 | #ifndef __attribute__ |
|
|
104 | # if __GNUC__ |
|
|
105 | # if (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (__GNUC__ < 2) |
|
|
106 | # define __attribute__(x) |
|
|
107 | # endif |
|
|
108 | # endif |
|
|
109 | # define __attribute__(x) |
|
|
110 | #endif |
|
|
111 | |
|
|
112 | #define NORETURN __attribute__ ((noreturn)) |
|
|
113 | #define UNUSED __attribute__ ((unused)) |
|
|
114 | |
|
|
115 | // increases code size unless -fno-enforce-eh-specs |
|
|
116 | #if __GNUC__ |
|
|
117 | # define NOTHROW |
|
|
118 | # define THROW(x) |
|
|
119 | #else |
|
|
120 | # define NOTHROW throw() |
|
|
121 | # define THROW(x) throw x |
|
|
122 | #endif |
|
|
123 | |
103 | |
124 | // exception thrown on fatal (per-instance) errors |
104 | // exception thrown on fatal (per-instance) errors |
125 | class rxvt_failure_exception { }; |
105 | class rxvt_failure_exception { }; |
126 | |
106 | |
127 | // exception thrown when the command parser runs out of input data |
107 | // exception thrown when the command parser runs out of input data |