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 | |
56 | HAVE_TERMIO | |
57 | HAVE_TERMIOS | |
58 | INTERRUPT_INPUT | |
0f21c005 | 59 | NARROWPROTO |
0f21c005 DN |
60 | SEPCHAR |
61 | SIGTYPE | |
62 | SYSTEM_TYPE | |
0f21c005 DN |
63 | |
64 | ** Machine specific macros, decribed in detail in src/m/template.h | |
0f21c005 | 65 | VIRT_ADDR_VARIES |
0f21c005 | 66 | |
2b5b9582 EZ |
67 | ** Misc macros |
68 | USER_FULL_NAME If defined, overrides the default pw->pw_gecos for getting at the full user name. Only MSDOS overrides the default. | |
69 | ||
4624371d | 70 | ** Replace, the definition is trivial: SWITCH_ENUM_CAST |
d35e1cd7 | 71 | |
a0ce9ab7 DN |
72 | ** 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. |
73 | ||
d35e1cd7 | 74 | |
a0ce9ab7 DN |
75 | AIX |
76 | AMPERSAND_FULL_NAME | |
a0ce9ab7 DN |
77 | BITS_PER_EMACS_INT |
78 | BITS_PER_LONG | |
97560d35 GM |
79 | BITS_PER_CHAR |
80 | BITS_PER_SHORT | |
81 | BITS_PER_INT | |
a0ce9ab7 | 82 | BROKEN_DATAGRAM_SOCKETS |
f3041af1 | 83 | BROKEN_FIONREAD |
a0ce9ab7 DN |
84 | BROKEN_GET_CURRENT_DIR_NAME |
85 | BROKEN_NON_BLOCKING_CONNECT | |
86 | BROKEN_PTY_READ_AFTER_EAGAIN | |
87 | BROKEN_SA_RESTART | |
88 | BROKEN_SIGAIO | |
f3041af1 | 89 | BROKEN_SIGIO |
a0ce9ab7 DN |
90 | BROKEN_SIGPOLL |
91 | BROKEN_SIGPTY | |
a0ce9ab7 | 92 | BSD4_2 |
f3041af1 | 93 | BSD4_3 |
d35e1cd7 | 94 | BSD_SYSTEM |
d35e1cd7 | 95 | CLASH_DETECTION |
f3041af1 DN |
96 | DATA_SEG_BITS |
97 | DATA_START | |
a0ce9ab7 | 98 | DBL_MIN_REPLACEMENT |
a0ce9ab7 DN |
99 | DEFAULT_SOUND_DEVICE |
100 | DEVICE_SEP | |
101 | DIRECTORY_SEP | |
102 | DONT_REOPEN_PTY | |
a0ce9ab7 DN |
103 | DOUG_LEA_MALLOC |
104 | DebPrint | |
105 | EMACSDEBUG | |
106 | EMACS_CONFIGURATION | |
107 | EMACS_CONFIG_OPTIONS | |
108 | EMACS_INT | |
109 | EMACS_UINT | |
a0ce9ab7 | 110 | FILE_SYSTEM_CASE |
a0ce9ab7 | 111 | FLOAT_CHECK_DOMAIN |
a0ce9ab7 DN |
112 | GC_LISP_OBJECT_ALIGNMENT |
113 | GC_MARK_SECONDARY_STACK | |
f3041af1 DN |
114 | GC_MARK_STACK |
115 | GC_SETJMP_WORKS | |
a0ce9ab7 DN |
116 | GMALLOC_INHIBIT_VALLOC |
117 | GNU_LIBRARY_PENDING_OUTPUT_COUNT | |
118 | GNU_LINUX | |
f3041af1 | 119 | GNU_MALLOC |
a0ce9ab7 | 120 | HAVE_AIX_SMT_EXP |
a0ce9ab7 | 121 | HAVE_CBRT |
f3041af1 | 122 | HAVE_CLOSEDIR |
a0ce9ab7 DN |
123 | HAVE_DUP2 |
124 | HAVE_EUIDACCESS | |
a0ce9ab7 DN |
125 | HAVE_FMOD |
126 | HAVE_FPATHCONF | |
127 | HAVE_FREXP | |
128 | HAVE_FSYNC | |
129 | HAVE_FTIME | |
130 | HAVE_GETCWD | |
131 | HAVE_GETDOMAINNAME | |
132 | HAVE_GETHOSTNAME | |
133 | HAVE_GETLOADAVG | |
134 | HAVE_GETPAGESIZE | |
135 | HAVE_GETPT | |
f3041af1 | 136 | HAVE_GETTIMEOFDAY |
a0ce9ab7 DN |
137 | HAVE_GETWD |
138 | HAVE_H_ERRNO | |
f3041af1 | 139 | HAVE_INET_SOCKETS |
a0ce9ab7 | 140 | HAVE_INVERSE_HYPERBOLIC |
a0ce9ab7 | 141 | HAVE_LIBKSTAT |
a0ce9ab7 DN |
142 | HAVE_LIMITS_H |
143 | HAVE_LINUX_VERSION_H | |
144 | HAVE_LOGB | |
145 | HAVE_LONG_FILE_NAMES | |
146 | HAVE_LRAND48 | |
147 | HAVE_MENUS | |
148 | HAVE_MKDIR | |
149 | HAVE_MKTIME | |
150 | HAVE_MOUSE | |
151 | HAVE_PERROR | |
152 | HAVE_PSTAT_GETDYNAMIC | |
a0ce9ab7 DN |
153 | HAVE_PWD_H |
154 | HAVE_RANDOM | |
155 | HAVE_RENAME | |
156 | HAVE_RES_INIT | |
a0ce9ab7 DN |
157 | HAVE_RINT |
158 | HAVE_RMDIR | |
f3041af1 | 159 | HAVE_SELECT |
a0ce9ab7 DN |
160 | HAVE_SETLOCALE |
161 | HAVE_SETPGID | |
162 | HAVE_SETRLIMIT | |
163 | HAVE_SETSID | |
164 | HAVE_SHUTDOWN | |
d35e1cd7 | 165 | HAVE_SOCKETS |
a0ce9ab7 DN |
166 | HAVE_SOUND |
167 | HAVE_STDLIB_H | |
168 | HAVE_STRERROR | |
169 | HAVE_STRFTIME | |
f2a77c3a | 170 | HAVE_STRING_H |
a0ce9ab7 DN |
171 | HAVE_STRUCT_UTIMBUF |
172 | HAVE_SYSINFO | |
f3041af1 | 173 | HAVE_SYSV_SIGPAUSE |
a0ce9ab7 DN |
174 | HAVE_SYS_SELECT_H |
175 | HAVE_SYS_SYSTEMINFO_H | |
176 | HAVE_SYS_TIMEB_H | |
177 | HAVE_SYS_TIME_H | |
f3041af1 | 178 | HAVE_TCATTR |
a0ce9ab7 | 179 | HAVE_TERMIOS_H |
a0ce9ab7 DN |
180 | HAVE_TIMEVAL |
181 | HAVE_TM_ZONE | |
182 | HAVE_TZSET | |
f3041af1 | 183 | HAVE_UNISTD_H |
f3041af1 | 184 | HAVE_UTIMES |
a0ce9ab7 | 185 | HAVE_UTIME_H |
a0ce9ab7 DN |
186 | HAVE_WINDOW_SYSTEM |
187 | HAVE_WORKING_VFORK | |
188 | HAVE_XRMSETDATABASE | |
189 | HPUX | |
a0ce9ab7 | 190 | INTERNAL_TERMINAL |
a0ce9ab7 DN |
191 | IS_ANY_SEP |
192 | IS_DIRECTORY_SEP | |
f3041af1 | 193 | LINKER |
0176a259 | 194 | LINUX_VERSION_CODE |
a0ce9ab7 DN |
195 | LISP_FLOAT_TYPE |
196 | LNOFLSH | |
a0ce9ab7 | 197 | LOCALTIME_CACHE |
1495e2fc | 198 | MAIL_USE_FLOCK |
a0ce9ab7 DN |
199 | MAIL_USE_LOCKF |
200 | MAIL_USE_POP | |
201 | MAIL_USE_SYSTEM_LOCK | |
202 | MAXPATHLEN | |
c5e7567d | 203 | MIN_PTY_KERNEL_VERSION -- only used on Mac |
a0ce9ab7 | 204 | MODE_LINE_BINARY_TEXT |
a0ce9ab7 | 205 | MUST_UNDEF__STDC__ |
f3041af1 | 206 | NLIST_STRUCT |
f2a77c3a | 207 | NO_ABORT |
a0ce9ab7 | 208 | NO_EDITRES |
a0ce9ab7 | 209 | NO_MATHERR |
f3041af1 | 210 | NO_TERMIO |
f3041af1 DN |
211 | NSIG |
212 | NSIG_MINIMUM | |
a0ce9ab7 DN |
213 | NULL |
214 | NULL_DEVICE | |
f3041af1 | 215 | ORDINARY_LINK |
a0ce9ab7 | 216 | O_APPEND |
a0ce9ab7 DN |
217 | O_RDONLY |
218 | O_RDWR | |
a0ce9ab7 | 219 | PAGESIZE |
f3041af1 | 220 | PENDING_OUTPUT_COUNT |
a0ce9ab7 | 221 | POSIX |
f3041af1 DN |
222 | PREFER_VSUSP |
223 | PTY_ITERATION | |
d35e1cd7 | 224 | PTY_NAME_SPRINTF |
f3041af1 | 225 | PTY_OPEN |
d35e1cd7 | 226 | PTY_TTY_NAME_SPRINTF |
f3041af1 | 227 | PURESIZE |
f3041af1 | 228 | RUN_TIME_REMAP |
a0ce9ab7 | 229 | SA_RESTART |
f3041af1 | 230 | SEGMENT_MASK |
a0ce9ab7 | 231 | SETPGRP_RELEASES_CTTY |
f3041af1 | 232 | SETUP_SLAVE_PTY |
a0ce9ab7 DN |
233 | SIGALRM |
234 | SIGCHLD | |
235 | SIGHUP | |
236 | SIGKILL | |
f3041af1 | 237 | SIGNALS_VIA_CHARACTERS |
a0ce9ab7 DN |
238 | SIGPIPE |
239 | SIGQUIT | |
240 | SIGTRAP | |
f3041af1 | 241 | SIGTYPE |
a0ce9ab7 | 242 | SOLARIS2 |
a0ce9ab7 | 243 | STDC_HEADERS |
a0ce9ab7 | 244 | SYSTEM_PURESIZE_EXTRA |
bbbac910 | 245 | SYSTEM_MALLOC |
f3041af1 | 246 | SYSV_SYSTEM_DIR |
f2a77c3a DN |
247 | TAB3 |
248 | TABDLY | |
a0ce9ab7 | 249 | TERM |
a0ce9ab7 DN |
250 | TIME_WITH_SYS_TIME |
251 | TIOCSIGSEND | |
252 | TM_IN_SYS_TIME | |
f3041af1 | 253 | ULIMIT_BREAK_VALUE |
a0ce9ab7 DN |
254 | UNIX98_PTYS |
255 | USE_CRT_DLL | |
a0ce9ab7 | 256 | USE_TOOLKIT_SCROLL_BARS |
f3041af1 DN |
257 | USG |
258 | USG5 | |
f3041af1 | 259 | USG5_4 |
a0ce9ab7 DN |
260 | USG_SUBTTY_WORKS |
261 | VALBITS | |
a0ce9ab7 | 262 | WRETCODE |
a0ce9ab7 | 263 | XINT |
f2a77c3a | 264 | XOS_NEEDS_TIME_H |
a0ce9ab7 DN |
265 | XPNTR |
266 | XSET | |
267 | XUINT | |
a0ce9ab7 DN |
268 | _AIX |
269 | _ARCH_PPC64 | |
270 | _CALLBACK_ | |
271 | _FILE_OFFSET_BITS | |
a0ce9ab7 DN |
272 | _LP64 |
273 | _MALLOC_INTERNAL | |
274 | _NAIVE_DOS_REGS | |
275 | _VARARGS_ | |
276 | _WINSOCKAPI_ | |
277 | _WINSOCK_H | |
278 | __ELF__ | |
279 | __FreeBSD__ | |
a0ce9ab7 | 280 | __GNUC__ |
bbbac910 | 281 | __GNU_LIBRARY__ |
0176a259 | 282 | __GNUC_MINOR__ |
a0ce9ab7 DN |
283 | __NetBSD__ |
284 | __OpenBSD__ | |
285 | __STDC__ | |
286 | __arch64__ | |
287 | __cplusplus | |
288 | __hpux | |
289 | __ia64__ | |
290 | __linux__ | |
291 | __mc68000__ | |
292 | __mips__ | |
f3041af1 DN |
293 | _longjmp |
294 | _setjmp | |
a0ce9ab7 DN |
295 | _start |
296 | abort | |
297 | access | |
f3041af1 | 298 | alloca |
a0ce9ab7 | 299 | brk |
a0ce9ab7 DN |
300 | calloc |
301 | chdir | |
302 | chmod | |
303 | chown | |
304 | close | |
305 | const | |
306 | creat | |
307 | ctime | |
a0ce9ab7 DN |
308 | dup |
309 | dup2 | |
310 | edata | |
f3041af1 | 311 | emacs |
f3041af1 | 312 | etext |
a0ce9ab7 DN |
313 | execlp |
314 | execvp | |
a0ce9ab7 | 315 | fdopen |
a0ce9ab7 | 316 | fileno |
a0ce9ab7 | 317 | fopen |
a0ce9ab7 DN |
318 | free |
319 | fsync | |
320 | ftruncate | |
321 | fwrite | |
322 | getdefdir | |
323 | getdisk | |
324 | getenv | |
325 | getpid | |
326 | getuid | |
a0ce9ab7 DN |
327 | gmtime |
328 | i386 | |
f3041af1 | 329 | index |
a0ce9ab7 DN |
330 | init_process |
331 | isatty | |
332 | kill | |
333 | link | |
334 | linux | |
335 | localtime | |
336 | logb | |
337 | lseek | |
f3041af1 | 338 | m68k |
a0ce9ab7 | 339 | malloc |
a0ce9ab7 DN |
340 | mkdir |
341 | mktemp | |
342 | open | |
343 | pclose | |
344 | pipe | |
345 | popen | |
a0ce9ab7 DN |
346 | random |
347 | read | |
348 | realloc | |
349 | rename | |
350 | rindex | |
351 | rmdir | |
352 | sbrk | |
353 | select | |
354 | sigmask | |
355 | signal | |
356 | sigsetmask | |
357 | sleep | |
358 | spawnve | |
359 | srandom | |
a0ce9ab7 DN |
360 | strdup |
361 | strerror | |
362 | stricmp | |
363 | strnicmp | |
364 | strupr | |
a0ce9ab7 DN |
365 | sys_nerr |
366 | system | |
367 | temacs | |
368 | tzname | |
369 | tzset | |
370 | umask | |
371 | unix | |
372 | unlink | |
373 | utimbuf | |
374 | utime | |
375 | vfork | |
376 | wait | |
377 | write | |
378 | xfree |