* unexnext.c:
[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
9536288f 6MAC_OS Compiling for the `mac' window-system.
04338634 7MAC_OS8 Compiling for Mac OS Classic (v8 or v9). No longer supported, all code using it can be removed.
9536288f 8MAC_OSX Compiling for Mac OS X. Not bare Darwin.
aa5fea59 9CYGWIN Compiling the Cygwin port.
077e3aa8
EZ
10__CYGWIN__ Ditto
11MSDOS Compiling the MS-DOS port.
12__MSDOS__ Ditto.
13__DJGPP__ Major version number of the DJGPP library for the DOS port.
14__DJGPP_MINOR__ Minor version number of the DJGPP library.
15__GO32__ Compiling the DOS port with DJGPP v1.x (obsolete).
16DOS_NT Compiling for either the MS-DOS or native MS-Windows port.
17WINDOWSNT Compiling the native MS-Windows (W32) port.
18__MINGW32__ Compiling the W32 port with the MinGW port of GCC.
19_MSC_VER Compiling the W32 port with the Microsoft C compiler.
b7bfcc8a 20IRIX6_5 Compiling on Irix-6.5
aa5fea59
SM
21
22** Distinguishing GUIs **
23
077e3aa8 24HAVE_NTGUI Use the native W32 GUI for windows, frames, menus&scrollbars.
aa5fea59
SM
25HAVE_CARBON Compile support for the Carbon GUI. Requires MAC_OS?
26HAVE_X11 Compile support for the X11 GUI.
077e3aa8 27HAVE_X_WINDOWS Compile support for X Window system
aa5fea59
SM
28X11 ?? Makefile.in suggests it's equivalent to HAVE_X11
29USE_LUCID Use the Lucid toolkit for menus&scrollbars. Requires HAVE_X11.
30USE_MOTIF Use the Motif toolkit for menus&scrollbars. Requires HAVE_X11.
31USE_GTK Use the Gtk toolkit for menus&scrollbars. Requires HAVE_X11.
32
077e3aa8
EZ
33** Frame types **
34
35FRAME_TERMCAP_P A tty (character terminal) frame.
36FRAME_X_P A frame on X Window system.
37FRAME_MSDOS_P An MS-DOS frame (used only by the DOS port).
38FRAME_MAC_P A Mac frame.
39FRAME_W32_P A frame using native MS-Windows GUI.
40FRAME_WINDOW_P A GUI frame (like X, w32, etc.)
41
42** Compile-time options **
43REL_ALLOC Compile in the relocatable memory allocator ralloc.c.
44SYSTEM_MALLOC Use the system library's malloc.
45
4624371d 46** Replace, the definition is trivial: SWITCH_ENUM_CAST
d35e1cd7 47
f3041af1 48** Temporarily put defines from removed files here, check if these macros need to be documented or removed because they are not used anymore. **
d35e1cd7 49
f3041af1 50ADDR_CORRECT
f3041af1
DN
51ADJUST_TEXTBASE
52ADJUST_TEXT_SCNHDR_SIZE
53A_TEXT_OFFSET
54A_TEXT_SEEK
55BAUD_CONVERT
56BROKEN_FIONREAD
f3041af1 57BROKEN_SIGIO
f3041af1
DN
58BROKEN_TIOCGETC
59BROKEN_TIOCGWINSZ
f3041af1
DN
60BSD4_3
61BSD4_4
d35e1cd7
DN
62BSD_PGRPS
63BSD_SYSTEM
64BSTRING
65CANNOT_DUMP
66CLASH_DETECTION
67COFF
f3041af1 68COFF_BSD_SYMBOLS
d35e1cd7 69CRT0_DUMMIES
f3041af1
DN
70C_DEBUG_SWITCH
71C_OPTIMIZE_SWITCH
f3041af1
DN
72C_SWITCH_MACHINE
73C_SWITCH_SYSTEM
74DATA_END
75DATA_SECTION_ALIGNMENT
76DATA_SEG_BITS
77DATA_START
78DEBUG
79DECLARE_GETPWUID_WITH_UID_T
80DEFAULT_ENTRY_ADDRESS
f3041af1
DN
81DOT_GLOBAL_START
82DUMMIES
f3041af1 83ELF
f3041af1 84EXEC_PAGESIZE
d35e1cd7
DN
85EXPLICIT_SIGN_EXTEND
86FIRST_PTY_LETTER
f3041af1 87FSCALE
f3041af1
DN
88GC_MARK_STACK
89GC_SETJMP_WORKS
90GETPGRP_NO_ARG
91GNU_MALLOC
92HAVE_ALLOCA
f3041af1
DN
93HAVE_CLOSEDIR
94HAVE_CONFIG_H
95HAVE_CRTN
96HAVE_GETTIMEOFDAY
97HAVE_INET_SOCKETS
98HAVE_LIBDNET
99HAVE_LIBINTL
100HAVE_LIBRESOLV
d35e1cd7 101HAVE_PTYS
f3041af1 102HAVE_SELECT
d35e1cd7 103HAVE_SOCKETS
f2a77c3a 104HAVE_STRING_H
d35e1cd7 105HAVE_SYSVIPC
f3041af1
DN
106HAVE_SYSV_SIGPAUSE
107HAVE_SYS_WAIT_H
108HAVE_TCATTR
d35e1cd7 109HAVE_TERMIO
f3041af1
DN
110HAVE_TERMIOS
111HAVE_TEXT_START
d35e1cd7 112HAVE_UNION_WAIT
f3041af1
DN
113HAVE_UNISTD_H
114HAVE_UNIX_DOMAIN
115HAVE_UTIMES
116HAVE_WAIT_HEADER
117HAVE_X11R6
f3041af1
DN
118HAVE_XSCREENNUMBEROFSCREEN
119HAVE_X_WINDOWS
f3041af1 120INHIBIT_X11R6_XIM
f3041af1 121INTEL386
d35e1cd7 122INTERRUPT_INPUT
f3041af1
DN
123IRIS
124IRIS_4D
d35e1cd7
DN
125KERNEL_FILE
126LDAV_SYMBOL
f3041af1
DN
127LD_SWITCH_MACHINE
128LD_SWITCH_SYSTEM
129LD_SWITCH_SYSTEM_TEMACS
d35e1cd7 130LIBS_DEBUG
f3041af1
DN
131LIBS_MACHINE
132LIBS_SYSTEM
133LIBS_TERMCAP
f3041af1
DN
134LIBX11_SYSTEM
135LIBXMU
136LIB_GCC
137LIB_MOTIF
138LIB_STANDARD
139LIB_X11_LIB
140LINKER
d35e1cd7
DN
141LOAD_AVE_CVT
142LOAD_AVE_TYPE
f2a77c3a 143MACH
d35e1cd7 144MAIL_USE_FLOCK
f3041af1
DN
145MKDIR_PROTOTYPE
146MOTIF
f3041af1 147NARROWPROTO
f2a77c3a 148NEED_BSDTTY
f3041af1 149NEED_ERRNO
f3041af1
DN
150NEED_PTEM_H
151NEED_SIOCTL
f2a77c3a 152NEED_UNISTD_H
f3041af1 153NLIST_STRUCT
d35e1cd7
DN
154NOMULTIPLEJOBS
155NONSYSTEM_DIR_LIBRARY
f3041af1 156NOT_C_CODE
f2a77c3a 157NO_ABORT
d35e1cd7
DN
158NO_ARG_ARRAY
159NO_REMAP
f3041af1 160NO_SIOCTL_H
f40f5dc3 161NO_SOCK_SIGIO
f3041af1 162NO_TERMIO
d35e1cd7 163NO_UNION_TYPE
f3041af1
DN
164NSIG
165NSIG_MINIMUM
166OBJECTS_MACHINE
f3041af1 167ORDINARY_LINK
f3041af1 168O_NDELAY
f3041af1
DN
169PENDING_OUTPUT_COUNT
170PERROR
171PNTR_COMPARISON_TYPE
172POSIX_SIGNALS
173PREFER_VSUSP
f2a77c3a 174PREFER_VSUSP
f3041af1 175PTY_ITERATION
d35e1cd7 176PTY_NAME_SPRINTF
f3041af1 177PTY_OPEN
d35e1cd7 178PTY_TTY_NAME_SPRINTF
f3041af1
DN
179PURESIZE
180READ
181REL_ALLOC
f3041af1
DN
182RUN_TIME_REMAP
183SECTION_ALIGNMENT
184SEEK
185SEGMENT_MASK
186SEGSIZ
187SETUP_SLAVE_PTY
f3041af1
DN
188SIGMASKTYPE
189SIGNALS_VIA_CHARACTERS
190SIGN_EXTEND_CHAR
191SIGTYPE
f3041af1 192START_FILES
f3041af1 193SVR4
f3041af1 194SYSTEM_MALLOC
d35e1cd7 195SYSTEM_TYPE
f3041af1
DN
196SYSV_PTYS
197SYSV_SYSTEM_DIR
198S_IEXEC
199S_IFDIR
200S_IFLNK
201S_IFMT
202S_IREAD
203S_IWRITE
f2a77c3a
DN
204TAB3
205TABDLY
f3041af1
DN
206TERMCAP
207TERMINFO
208TEXT_END
209TEXT_START
f3041af1 210THIS_IS_MAKEFILE
f3041af1 211ULIMIT_BREAK_VALUE
f3041af1 212UNEXEC
f3041af1 213USE_MMAP_FOR_BUFFERS
f3041af1
DN
214USG
215USG5
216USG5_3
217USG5_4
218USG_JOBCTRL
219USG_SHARED_LIBRARIES
d35e1cd7 220VIRT_ADDR_VARIES
f2a77c3a 221WCOREDUMP
d35e1cd7
DN
222WORDS_BIG_ENDIAN
223WORD_MACHINE
f2a77c3a
DN
224X11R5_INHIBIT_I18N
225XOS_NEEDS_TIME_H
f3041af1
DN
226X_DEFAULT_FONT
227_ABIN32
f3041af1
DN
228_MIPS_SZLONG
229_POSIX_SOURCE
f3041af1
DN
230_longjmp
231_setjmp
f3041af1 232alloca
f3041af1
DN
233data_start
234drem
f3041af1
DN
235emacs
236entry
237etext
238fatal
239fchmod
240getpgrp
f3041af1
DN
241hp9000s800
242index
f3041af1
DN
243jmp_buf
244longjmp
d35e1cd7 245m68000
f3041af1 246m68k
f3041af1
DN
247magic
248mc68000
249mips
f2a77c3a 250prep
f3041af1 251sel
d35e1cd7 252subprocesses
f3041af1 253sun
f3041af1 254text_start
d35e1cd7 255
aa5fea59 256# arch-tag: bc80061a-1168-4911-9766-46aaf2640250