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 | ||
aa5fea59 | 6 | CYGWIN Compiling the Cygwin port. |
077e3aa8 EZ |
7 | __CYGWIN__ Ditto |
8 | MSDOS Compiling the MS-DOS port. | |
9 | __MSDOS__ Ditto. | |
796bb936 | 10 | __DJGPP_MINOR__ Minor version number of the DJGPP library; used only in msdos.c and dosfns.c. |
077e3aa8 EZ |
11 | DOS_NT Compiling for either the MS-DOS or native MS-Windows port. |
12 | WINDOWSNT Compiling the native MS-Windows (W32) port. | |
13 | __MINGW32__ Compiling the W32 port with the MinGW port of GCC. | |
14 | _MSC_VER Compiling the W32 port with the Microsoft C compiler. | |
14145fa3 | 15 | DARWIN_OS Compiling on Mac OS X or pure Darwin (and using s/darwin.h). |
aa5fea59 SM |
16 | |
17 | ** Distinguishing GUIs ** | |
18 | ||
077e3aa8 | 19 | HAVE_NTGUI Use the native W32 GUI for windows, frames, menus&scrollbars. |
14145fa3 | 20 | HAVE_NS Use the NeXT/OpenStep/Cocoa UI under Mac OS X or GNUstep. |
d1a5744d | 21 | NS_IMPL_GNUSTEP Compile support for GNUstep implementation of NS GUI API. |
edfda783 | 22 | NS_IMPL_COCOA Compile support for Cocoa (Apple) implementation of NS GUI API. |
aa5fea59 | 23 | HAVE_X11 Compile support for the X11 GUI. |
077e3aa8 | 24 | HAVE_X_WINDOWS Compile support for X Window system |
3df7b338 GM |
25 | (It looks like, nowadays, if HAVE_X11 is set, HAVE_X_WINDOWS must |
26 | be, and vice versa. At least, this is true for configure, and | |
27 | msdos; not sure about nt.) | |
aa5fea59 SM |
28 | USE_LUCID Use the Lucid toolkit for menus&scrollbars. Requires HAVE_X11. |
29 | USE_MOTIF Use the Motif toolkit for menus&scrollbars. Requires HAVE_X11. | |
30 | USE_GTK Use the Gtk toolkit for menus&scrollbars. Requires HAVE_X11. | |
31 | ||
077e3aa8 EZ |
32 | ** Frame types ** |
33 | ||
34 | FRAME_TERMCAP_P A tty (character terminal) frame. | |
35 | FRAME_X_P A frame on X Window system. | |
36 | FRAME_MSDOS_P An MS-DOS frame (used only by the DOS port). | |
077e3aa8 EZ |
37 | FRAME_W32_P A frame using native MS-Windows GUI. |
38 | FRAME_WINDOW_P A GUI frame (like X, w32, etc.) | |
39 | ||
c3179b06 EZ |
40 | ** Support for accessing other processes on the system ** |
41 | ||
42 | HAVE_PROCFS The /proc filesystem is supported. | |
c3179b06 | 43 | |
077e3aa8 | 44 | ** Compile-time options ** |
c3179b06 | 45 | |
077e3aa8 EZ |
46 | REL_ALLOC Compile in the relocatable memory allocator ralloc.c. |
47 | SYSTEM_MALLOC Use the system library's malloc. | |
bbbac910 | 48 | subprocesses System can use subprocesses (for M-x shell for example). Defined by default, only MSDOS undefines it. |
14145fa3 | 49 | USE_LISP_UNION_TYPE Define it in lisp.h to make Lisp_Object be a union type instead of the default int. |
077e3aa8 | 50 | |
0f21c005 | 51 | ** System specific macros, decribed in detail in src/s/template.h |
0f21c005 DN |
52 | CLASH_DETECTION |
53 | COFF | |
54 | FIRST_PTY_LETTER | |
55 | HAVE_PTYS | |
0f21c005 | 56 | INTERRUPT_INPUT |
0f21c005 | 57 | NARROWPROTO |
0f21c005 | 58 | SEPCHAR |
0f21c005 | 59 | SYSTEM_TYPE |
0f21c005 DN |
60 | |
61 | ** Machine specific macros, decribed in detail in src/m/template.h | |
0f21c005 | 62 | VIRT_ADDR_VARIES |
0f21c005 | 63 | |
2b5b9582 EZ |
64 | ** Misc macros |
65 | USER_FULL_NAME If defined, overrides the default pw->pw_gecos for getting at the full user name. Only MSDOS overrides the default. | |
66 | ||
4624371d | 67 | ** Replace, the definition is trivial: SWITCH_ENUM_CAST |
d35e1cd7 | 68 | |
a0ce9ab7 DN |
69 | ** Defines from src/m/*.h and src/s/*.h. Some of these might not be used in the code anymore, so they can be removed. The HAVE_* definitions are probably handled by autoconf, so it might be possible to just remove them from src/[sm]/*.h. |
70 | ||
d35e1cd7 | 71 | |
a0ce9ab7 DN |
72 | AIX |
73 | AMPERSAND_FULL_NAME | |
a0ce9ab7 DN |
74 | BITS_PER_EMACS_INT |
75 | BITS_PER_LONG | |
97560d35 GM |
76 | BITS_PER_CHAR |
77 | BITS_PER_SHORT | |
78 | BITS_PER_INT | |
a0ce9ab7 | 79 | BROKEN_DATAGRAM_SOCKETS |
f3041af1 | 80 | BROKEN_FIONREAD |
a0ce9ab7 DN |
81 | BROKEN_GET_CURRENT_DIR_NAME |
82 | BROKEN_NON_BLOCKING_CONNECT | |
83 | BROKEN_PTY_READ_AFTER_EAGAIN | |
84 | BROKEN_SA_RESTART | |
85 | BROKEN_SIGAIO | |
f3041af1 | 86 | BROKEN_SIGIO |
a0ce9ab7 DN |
87 | BROKEN_SIGPOLL |
88 | BROKEN_SIGPTY | |
a0ce9ab7 | 89 | BSD4_2 |
f3041af1 | 90 | BSD4_3 |
d35e1cd7 | 91 | BSD_SYSTEM |
d35e1cd7 | 92 | CLASH_DETECTION |
f3041af1 DN |
93 | DATA_SEG_BITS |
94 | DATA_START | |
a0ce9ab7 | 95 | DBL_MIN_REPLACEMENT |
a0ce9ab7 DN |
96 | DEFAULT_SOUND_DEVICE |
97 | DEVICE_SEP | |
98 | DIRECTORY_SEP | |
99 | DONT_REOPEN_PTY | |
a0ce9ab7 DN |
100 | DOUG_LEA_MALLOC |
101 | DebPrint | |
102 | EMACSDEBUG | |
103 | EMACS_CONFIGURATION | |
104 | EMACS_CONFIG_OPTIONS | |
105 | EMACS_INT | |
106 | EMACS_UINT | |
a0ce9ab7 | 107 | FILE_SYSTEM_CASE |
a0ce9ab7 | 108 | FLOAT_CHECK_DOMAIN |
a0ce9ab7 DN |
109 | GC_LISP_OBJECT_ALIGNMENT |
110 | GC_MARK_SECONDARY_STACK | |
f3041af1 DN |
111 | GC_MARK_STACK |
112 | GC_SETJMP_WORKS | |
a0ce9ab7 DN |
113 | GMALLOC_INHIBIT_VALLOC |
114 | GNU_LIBRARY_PENDING_OUTPUT_COUNT | |
115 | GNU_LINUX | |
f3041af1 | 116 | GNU_MALLOC |
a0ce9ab7 | 117 | HAVE_AIX_SMT_EXP |
a0ce9ab7 | 118 | HAVE_CBRT |
f3041af1 | 119 | HAVE_CLOSEDIR |
a0ce9ab7 DN |
120 | HAVE_DUP2 |
121 | HAVE_EUIDACCESS | |
a0ce9ab7 DN |
122 | HAVE_FMOD |
123 | HAVE_FPATHCONF | |
124 | HAVE_FREXP | |
125 | HAVE_FSYNC | |
126 | HAVE_FTIME | |
127 | HAVE_GETCWD | |
128 | HAVE_GETDOMAINNAME | |
129 | HAVE_GETHOSTNAME | |
130 | HAVE_GETLOADAVG | |
131 | HAVE_GETPAGESIZE | |
132 | HAVE_GETPT | |
f3041af1 | 133 | HAVE_GETTIMEOFDAY |
a0ce9ab7 DN |
134 | HAVE_GETWD |
135 | HAVE_H_ERRNO | |
f3041af1 | 136 | HAVE_INET_SOCKETS |
a0ce9ab7 | 137 | HAVE_INVERSE_HYPERBOLIC |
a0ce9ab7 | 138 | HAVE_LIBKSTAT |
a0ce9ab7 DN |
139 | HAVE_LIMITS_H |
140 | HAVE_LINUX_VERSION_H | |
141 | HAVE_LOGB | |
142 | HAVE_LONG_FILE_NAMES | |
143 | HAVE_LRAND48 | |
144 | HAVE_MENUS | |
145 | HAVE_MKDIR | |
146 | HAVE_MKTIME | |
147 | HAVE_MOUSE | |
148 | HAVE_PERROR | |
149 | HAVE_PSTAT_GETDYNAMIC | |
a0ce9ab7 DN |
150 | HAVE_PWD_H |
151 | HAVE_RANDOM | |
152 | HAVE_RENAME | |
153 | HAVE_RES_INIT | |
a0ce9ab7 DN |
154 | HAVE_RINT |
155 | HAVE_RMDIR | |
f3041af1 | 156 | HAVE_SELECT |
a0ce9ab7 DN |
157 | HAVE_SETLOCALE |
158 | HAVE_SETPGID | |
159 | HAVE_SETRLIMIT | |
160 | HAVE_SETSID | |
161 | HAVE_SHUTDOWN | |
d35e1cd7 | 162 | HAVE_SOCKETS |
a0ce9ab7 DN |
163 | HAVE_SOUND |
164 | HAVE_STDLIB_H | |
165 | HAVE_STRERROR | |
166 | HAVE_STRFTIME | |
f2a77c3a | 167 | HAVE_STRING_H |
a0ce9ab7 DN |
168 | HAVE_STRUCT_UTIMBUF |
169 | HAVE_SYSINFO | |
f3041af1 | 170 | HAVE_SYSV_SIGPAUSE |
a0ce9ab7 DN |
171 | HAVE_SYS_SELECT_H |
172 | HAVE_SYS_SYSTEMINFO_H | |
173 | HAVE_SYS_TIMEB_H | |
174 | HAVE_SYS_TIME_H | |
f3041af1 | 175 | HAVE_TCATTR |
a0ce9ab7 DN |
176 | HAVE_TIMEVAL |
177 | HAVE_TM_ZONE | |
178 | HAVE_TZSET | |
f3041af1 | 179 | HAVE_UNISTD_H |
f3041af1 | 180 | HAVE_UTIMES |
a0ce9ab7 | 181 | HAVE_UTIME_H |
a0ce9ab7 DN |
182 | HAVE_WINDOW_SYSTEM |
183 | HAVE_WORKING_VFORK | |
184 | HAVE_XRMSETDATABASE | |
185 | HPUX | |
a0ce9ab7 | 186 | INTERNAL_TERMINAL |
a0ce9ab7 DN |
187 | IS_ANY_SEP |
188 | IS_DIRECTORY_SEP | |
f3041af1 | 189 | LINKER |
0176a259 | 190 | LINUX_VERSION_CODE |
a0ce9ab7 DN |
191 | LISP_FLOAT_TYPE |
192 | LNOFLSH | |
a0ce9ab7 | 193 | LOCALTIME_CACHE |
1495e2fc | 194 | MAIL_USE_FLOCK |
a0ce9ab7 DN |
195 | MAIL_USE_LOCKF |
196 | MAIL_USE_POP | |
197 | MAIL_USE_SYSTEM_LOCK | |
198 | MAXPATHLEN | |
c5e7567d | 199 | MIN_PTY_KERNEL_VERSION -- only used on Mac |
a0ce9ab7 | 200 | MODE_LINE_BINARY_TEXT |
a0ce9ab7 | 201 | MUST_UNDEF__STDC__ |
f3041af1 | 202 | NLIST_STRUCT |
f2a77c3a | 203 | NO_ABORT |
a0ce9ab7 | 204 | NO_EDITRES |
a0ce9ab7 | 205 | NO_MATHERR |
f3041af1 | 206 | NO_TERMIO |
f3041af1 DN |
207 | NSIG |
208 | NSIG_MINIMUM | |
a0ce9ab7 DN |
209 | NULL |
210 | NULL_DEVICE | |
f3041af1 | 211 | ORDINARY_LINK |
a0ce9ab7 | 212 | O_APPEND |
a0ce9ab7 DN |
213 | O_RDONLY |
214 | O_RDWR | |
a0ce9ab7 | 215 | PAGESIZE |
f3041af1 | 216 | PENDING_OUTPUT_COUNT |
a0ce9ab7 | 217 | POSIX |
f3041af1 DN |
218 | PREFER_VSUSP |
219 | PTY_ITERATION | |
d35e1cd7 | 220 | PTY_NAME_SPRINTF |
f3041af1 | 221 | PTY_OPEN |
d35e1cd7 | 222 | PTY_TTY_NAME_SPRINTF |
f3041af1 | 223 | PURESIZE |
f3041af1 | 224 | RUN_TIME_REMAP |
a0ce9ab7 | 225 | SA_RESTART |
f3041af1 | 226 | SEGMENT_MASK |
a0ce9ab7 | 227 | SETPGRP_RELEASES_CTTY |
f3041af1 | 228 | SETUP_SLAVE_PTY |
a0ce9ab7 DN |
229 | SIGALRM |
230 | SIGCHLD | |
231 | SIGHUP | |
232 | SIGKILL | |
f3041af1 | 233 | SIGNALS_VIA_CHARACTERS |
a0ce9ab7 DN |
234 | SIGPIPE |
235 | SIGQUIT | |
236 | SIGTRAP | |
a0ce9ab7 | 237 | SOLARIS2 |
a0ce9ab7 | 238 | STDC_HEADERS |
a0ce9ab7 | 239 | SYSTEM_PURESIZE_EXTRA |
bbbac910 | 240 | SYSTEM_MALLOC |
f3041af1 | 241 | SYSV_SYSTEM_DIR |
f2a77c3a DN |
242 | TAB3 |
243 | TABDLY | |
a0ce9ab7 | 244 | TERM |
a0ce9ab7 DN |
245 | TIME_WITH_SYS_TIME |
246 | TIOCSIGSEND | |
247 | TM_IN_SYS_TIME | |
f3041af1 | 248 | ULIMIT_BREAK_VALUE |
a0ce9ab7 DN |
249 | UNIX98_PTYS |
250 | USE_CRT_DLL | |
a0ce9ab7 | 251 | USE_TOOLKIT_SCROLL_BARS |
f3041af1 DN |
252 | USG |
253 | USG5 | |
f3041af1 | 254 | USG5_4 |
a0ce9ab7 DN |
255 | USG_SUBTTY_WORKS |
256 | VALBITS | |
a0ce9ab7 | 257 | WRETCODE |
f2a77c3a | 258 | XOS_NEEDS_TIME_H |
a0ce9ab7 DN |
259 | _AIX |
260 | _ARCH_PPC64 | |
a0ce9ab7 | 261 | _FILE_OFFSET_BITS |
a0ce9ab7 DN |
262 | _LP64 |
263 | _MALLOC_INTERNAL | |
264 | _NAIVE_DOS_REGS | |
265 | _VARARGS_ | |
266 | _WINSOCKAPI_ | |
267 | _WINSOCK_H | |
f3041af1 DN |
268 | _longjmp |
269 | _setjmp | |
a0ce9ab7 DN |
270 | _start |
271 | abort | |
272 | access | |
f3041af1 | 273 | alloca |
a0ce9ab7 | 274 | brk |
a0ce9ab7 DN |
275 | calloc |
276 | chdir | |
277 | chmod | |
278 | chown | |
279 | close | |
280 | const | |
281 | creat | |
282 | ctime | |
a0ce9ab7 DN |
283 | dup |
284 | dup2 | |
285 | edata | |
f3041af1 | 286 | emacs |
f3041af1 | 287 | etext |
a0ce9ab7 DN |
288 | execlp |
289 | execvp | |
a0ce9ab7 | 290 | fdopen |
a0ce9ab7 | 291 | fileno |
a0ce9ab7 | 292 | fopen |
a0ce9ab7 DN |
293 | free |
294 | fsync | |
295 | ftruncate | |
296 | fwrite | |
297 | getdefdir | |
298 | getdisk | |
299 | getenv | |
300 | getpid | |
301 | getuid | |
a0ce9ab7 | 302 | gmtime |
f3041af1 | 303 | index |
a0ce9ab7 DN |
304 | isatty |
305 | kill | |
306 | link | |
307 | linux | |
308 | localtime | |
309 | logb | |
310 | lseek | |
a0ce9ab7 | 311 | malloc |
a0ce9ab7 DN |
312 | mkdir |
313 | mktemp | |
314 | open | |
315 | pclose | |
316 | pipe | |
317 | popen | |
a0ce9ab7 DN |
318 | random |
319 | read | |
320 | realloc | |
321 | rename | |
322 | rindex | |
323 | rmdir | |
324 | sbrk | |
325 | select | |
326 | sigmask | |
327 | signal | |
328 | sigsetmask | |
329 | sleep | |
330 | spawnve | |
331 | srandom | |
a0ce9ab7 DN |
332 | strdup |
333 | strerror | |
334 | stricmp | |
335 | strnicmp | |
336 | strupr | |
a0ce9ab7 DN |
337 | sys_nerr |
338 | system | |
339 | temacs | |
340 | tzname | |
341 | tzset | |
342 | umask | |
343 | unix | |
344 | unlink | |
345 | utimbuf | |
346 | utime | |
347 | vfork | |
348 | wait | |
349 | write | |
350 | xfree |