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