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