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