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