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