Commit | Line | Data |
---|---|---|
aa5fea59 SM |
1 | Here are some of the cpp macros used, together with some short explanation |
2 | of their use. Feel free to add more macros and more categories. | |
3 | ||
4 | ** Distinguishing OSes ** | |
5 | ||
9536288f | 6 | MAC_OS Compiling for the `mac' window-system. |
04338634 | 7 | MAC_OS8 Compiling for Mac OS Classic (v8 or v9). No longer supported, all code using it can be removed. |
9536288f | 8 | MAC_OSX Compiling for Mac OS X. Not bare Darwin. |
aa5fea59 | 9 | CYGWIN Compiling the Cygwin port. |
077e3aa8 EZ |
10 | __CYGWIN__ Ditto |
11 | MSDOS Compiling the MS-DOS port. | |
12 | __MSDOS__ Ditto. | |
13 | __DJGPP__ Major version number of the DJGPP library for the DOS port. | |
14 | __DJGPP_MINOR__ Minor version number of the DJGPP library. | |
15 | __GO32__ Compiling the DOS port with DJGPP v1.x (obsolete). | |
16 | DOS_NT Compiling for either the MS-DOS or native MS-Windows port. | |
17 | WINDOWSNT Compiling the native MS-Windows (W32) port. | |
18 | __MINGW32__ Compiling the W32 port with the MinGW port of GCC. | |
19 | _MSC_VER Compiling the W32 port with the Microsoft C compiler. | |
b7bfcc8a | 20 | IRIX6_5 Compiling on Irix-6.5 |
aa5fea59 SM |
21 | |
22 | ** Distinguishing GUIs ** | |
23 | ||
077e3aa8 | 24 | HAVE_NTGUI Use the native W32 GUI for windows, frames, menus&scrollbars. |
aa5fea59 SM |
25 | HAVE_CARBON Compile support for the Carbon GUI. Requires MAC_OS? |
26 | HAVE_X11 Compile support for the X11 GUI. | |
077e3aa8 | 27 | HAVE_X_WINDOWS Compile support for X Window system |
aa5fea59 SM |
28 | X11 ?? Makefile.in suggests it's equivalent to HAVE_X11 |
29 | USE_LUCID Use the Lucid toolkit for menus&scrollbars. Requires HAVE_X11. | |
30 | USE_MOTIF Use the Motif toolkit for menus&scrollbars. Requires HAVE_X11. | |
31 | USE_GTK Use the Gtk toolkit for menus&scrollbars. Requires HAVE_X11. | |
32 | ||
077e3aa8 EZ |
33 | ** Frame types ** |
34 | ||
35 | FRAME_TERMCAP_P A tty (character terminal) frame. | |
36 | FRAME_X_P A frame on X Window system. | |
37 | FRAME_MSDOS_P An MS-DOS frame (used only by the DOS port). | |
38 | FRAME_MAC_P A Mac frame. | |
39 | FRAME_W32_P A frame using native MS-Windows GUI. | |
40 | FRAME_WINDOW_P A GUI frame (like X, w32, etc.) | |
41 | ||
42 | ** Compile-time options ** | |
43 | REL_ALLOC Compile in the relocatable memory allocator ralloc.c. | |
44 | SYSTEM_MALLOC Use the system library's malloc. | |
45 | ||
4624371d | 46 | ** Replace, the definition is trivial: SWITCH_ENUM_CAST |
d35e1cd7 | 47 | |
f3041af1 | 48 | ** Temporarily put defines from removed files here, check if these macros need to be documented or removed because they are not used anymore. ** |
d35e1cd7 | 49 | |
f3041af1 | 50 | ADDR_CORRECT |
f3041af1 DN |
51 | ADJUST_TEXT_SCNHDR_SIZE |
52 | A_TEXT_OFFSET | |
53 | A_TEXT_SEEK | |
54 | BAUD_CONVERT | |
55 | BROKEN_FIONREAD | |
f3041af1 | 56 | BROKEN_SIGIO |
f3041af1 DN |
57 | BROKEN_TIOCGETC |
58 | BROKEN_TIOCGWINSZ | |
f3041af1 DN |
59 | BSD4_3 |
60 | BSD4_4 | |
d35e1cd7 DN |
61 | BSD_PGRPS |
62 | BSD_SYSTEM | |
63 | BSTRING | |
64 | CANNOT_DUMP | |
65 | CLASH_DETECTION | |
66 | COFF | |
f3041af1 | 67 | COFF_BSD_SYMBOLS |
d35e1cd7 | 68 | CRT0_DUMMIES |
f3041af1 | 69 | C_DEBUG_SWITCH |
f3041af1 DN |
70 | C_SWITCH_MACHINE |
71 | C_SWITCH_SYSTEM | |
72 | DATA_END | |
73 | DATA_SECTION_ALIGNMENT | |
74 | DATA_SEG_BITS | |
75 | DATA_START | |
76 | DEBUG | |
77 | DECLARE_GETPWUID_WITH_UID_T | |
78 | DEFAULT_ENTRY_ADDRESS | |
f3041af1 DN |
79 | DOT_GLOBAL_START |
80 | DUMMIES | |
f3041af1 | 81 | ELF |
f3041af1 | 82 | EXEC_PAGESIZE |
d35e1cd7 DN |
83 | EXPLICIT_SIGN_EXTEND |
84 | FIRST_PTY_LETTER | |
f3041af1 | 85 | FSCALE |
f3041af1 DN |
86 | GC_MARK_STACK |
87 | GC_SETJMP_WORKS | |
88 | GETPGRP_NO_ARG | |
89 | GNU_MALLOC | |
90 | HAVE_ALLOCA | |
f3041af1 DN |
91 | HAVE_CLOSEDIR |
92 | HAVE_CONFIG_H | |
93 | HAVE_CRTN | |
94 | HAVE_GETTIMEOFDAY | |
95 | HAVE_INET_SOCKETS | |
96 | HAVE_LIBDNET | |
97 | HAVE_LIBINTL | |
98 | HAVE_LIBRESOLV | |
d35e1cd7 | 99 | HAVE_PTYS |
f3041af1 | 100 | HAVE_SELECT |
d35e1cd7 | 101 | HAVE_SOCKETS |
f2a77c3a | 102 | HAVE_STRING_H |
d35e1cd7 | 103 | HAVE_SYSVIPC |
f3041af1 DN |
104 | HAVE_SYSV_SIGPAUSE |
105 | HAVE_SYS_WAIT_H | |
106 | HAVE_TCATTR | |
d35e1cd7 | 107 | HAVE_TERMIO |
f3041af1 DN |
108 | HAVE_TERMIOS |
109 | HAVE_TEXT_START | |
d35e1cd7 | 110 | HAVE_UNION_WAIT |
f3041af1 | 111 | HAVE_UNISTD_H |
f3041af1 DN |
112 | HAVE_UTIMES |
113 | HAVE_WAIT_HEADER | |
114 | HAVE_X11R6 | |
f3041af1 DN |
115 | HAVE_XSCREENNUMBEROFSCREEN |
116 | HAVE_X_WINDOWS | |
f3041af1 | 117 | INHIBIT_X11R6_XIM |
f3041af1 | 118 | INTEL386 |
d35e1cd7 | 119 | INTERRUPT_INPUT |
f3041af1 DN |
120 | IRIS |
121 | IRIS_4D | |
d35e1cd7 DN |
122 | KERNEL_FILE |
123 | LDAV_SYMBOL | |
f3041af1 DN |
124 | LD_SWITCH_MACHINE |
125 | LD_SWITCH_SYSTEM | |
126 | LD_SWITCH_SYSTEM_TEMACS | |
d35e1cd7 | 127 | LIBS_DEBUG |
f3041af1 DN |
128 | LIBS_MACHINE |
129 | LIBS_SYSTEM | |
130 | LIBS_TERMCAP | |
f3041af1 DN |
131 | LIBX11_SYSTEM |
132 | LIBXMU | |
133 | LIB_GCC | |
134 | LIB_MOTIF | |
135 | LIB_STANDARD | |
136 | LIB_X11_LIB | |
137 | LINKER | |
d35e1cd7 DN |
138 | LOAD_AVE_CVT |
139 | LOAD_AVE_TYPE | |
f2a77c3a | 140 | MACH |
d35e1cd7 | 141 | MAIL_USE_FLOCK |
f3041af1 DN |
142 | MKDIR_PROTOTYPE |
143 | MOTIF | |
f3041af1 | 144 | NARROWPROTO |
f2a77c3a | 145 | NEED_BSDTTY |
f3041af1 | 146 | NEED_ERRNO |
f3041af1 DN |
147 | NEED_PTEM_H |
148 | NEED_SIOCTL | |
f2a77c3a | 149 | NEED_UNISTD_H |
f3041af1 | 150 | NLIST_STRUCT |
d35e1cd7 DN |
151 | NOMULTIPLEJOBS |
152 | NONSYSTEM_DIR_LIBRARY | |
f3041af1 | 153 | NOT_C_CODE |
f2a77c3a | 154 | NO_ABORT |
d35e1cd7 DN |
155 | NO_ARG_ARRAY |
156 | NO_REMAP | |
f3041af1 | 157 | NO_SIOCTL_H |
f40f5dc3 | 158 | NO_SOCK_SIGIO |
f3041af1 | 159 | NO_TERMIO |
d35e1cd7 | 160 | NO_UNION_TYPE |
f3041af1 DN |
161 | NSIG |
162 | NSIG_MINIMUM | |
163 | OBJECTS_MACHINE | |
f3041af1 | 164 | ORDINARY_LINK |
f3041af1 | 165 | O_NDELAY |
f3041af1 DN |
166 | PENDING_OUTPUT_COUNT |
167 | PERROR | |
168 | PNTR_COMPARISON_TYPE | |
169 | POSIX_SIGNALS | |
170 | PREFER_VSUSP | |
f2a77c3a | 171 | PREFER_VSUSP |
f3041af1 | 172 | PTY_ITERATION |
d35e1cd7 | 173 | PTY_NAME_SPRINTF |
f3041af1 | 174 | PTY_OPEN |
d35e1cd7 | 175 | PTY_TTY_NAME_SPRINTF |
f3041af1 DN |
176 | PURESIZE |
177 | READ | |
178 | REL_ALLOC | |
f3041af1 DN |
179 | RUN_TIME_REMAP |
180 | SECTION_ALIGNMENT | |
181 | SEEK | |
182 | SEGMENT_MASK | |
183 | SEGSIZ | |
184 | SETUP_SLAVE_PTY | |
f3041af1 DN |
185 | SIGMASKTYPE |
186 | SIGNALS_VIA_CHARACTERS | |
187 | SIGN_EXTEND_CHAR | |
188 | SIGTYPE | |
f3041af1 | 189 | START_FILES |
f3041af1 | 190 | SVR4 |
f3041af1 | 191 | SYSTEM_MALLOC |
d35e1cd7 | 192 | SYSTEM_TYPE |
f3041af1 DN |
193 | SYSV_PTYS |
194 | SYSV_SYSTEM_DIR | |
195 | S_IEXEC | |
196 | S_IFDIR | |
197 | S_IFLNK | |
198 | S_IFMT | |
199 | S_IREAD | |
200 | S_IWRITE | |
f2a77c3a DN |
201 | TAB3 |
202 | TABDLY | |
f3041af1 DN |
203 | TERMCAP |
204 | TERMINFO | |
205 | TEXT_END | |
206 | TEXT_START | |
f3041af1 | 207 | THIS_IS_MAKEFILE |
f3041af1 | 208 | ULIMIT_BREAK_VALUE |
f3041af1 | 209 | UNEXEC |
f3041af1 | 210 | USE_MMAP_FOR_BUFFERS |
f3041af1 DN |
211 | USG |
212 | USG5 | |
f3041af1 DN |
213 | USG5_4 |
214 | USG_JOBCTRL | |
215 | USG_SHARED_LIBRARIES | |
d35e1cd7 | 216 | VIRT_ADDR_VARIES |
f2a77c3a | 217 | WCOREDUMP |
d35e1cd7 | 218 | WORDS_BIG_ENDIAN |
f2a77c3a DN |
219 | X11R5_INHIBIT_I18N |
220 | XOS_NEEDS_TIME_H | |
f3041af1 DN |
221 | X_DEFAULT_FONT |
222 | _ABIN32 | |
f3041af1 DN |
223 | _MIPS_SZLONG |
224 | _POSIX_SOURCE | |
f3041af1 DN |
225 | _longjmp |
226 | _setjmp | |
f3041af1 | 227 | alloca |
f3041af1 DN |
228 | data_start |
229 | drem | |
f3041af1 DN |
230 | emacs |
231 | entry | |
232 | etext | |
233 | fatal | |
234 | fchmod | |
235 | getpgrp | |
f3041af1 DN |
236 | hp9000s800 |
237 | index | |
f3041af1 DN |
238 | jmp_buf |
239 | longjmp | |
d35e1cd7 | 240 | m68000 |
f3041af1 | 241 | m68k |
f3041af1 DN |
242 | magic |
243 | mc68000 | |
244 | mips | |
f2a77c3a | 245 | prep |
f3041af1 | 246 | sel |
d35e1cd7 | 247 | subprocesses |
f3041af1 | 248 | sun |
f3041af1 | 249 | text_start |
d35e1cd7 | 250 | |
aa5fea59 | 251 | # arch-tag: bc80061a-1168-4911-9766-46aaf2640250 |