aboutsummaryrefslogtreecommitdiffstats
path: root/src/s
diff options
context:
space:
mode:
authorDan Nicolaescu2008-07-27 18:24:48 +0000
committerDan Nicolaescu2008-07-27 18:24:48 +0000
commit9e2a2647758db83b490e2993aa31cd4607305a82 (patch)
tree9c3d41b47bcd316c60d56bef8d7fd32789e59411 /src/s
parent7f19297073b2dd6c28987bf5663933591f59e91e (diff)
downloademacs-9e2a2647758db83b490e2993aa31cd4607305a82.tar.gz
emacs-9e2a2647758db83b490e2993aa31cd4607305a82.zip
Remove support for Mac Carbon.
* mactoolbox.c: * macterm.h: * macterm.c: * macselect.c: * macmenu.c: * macgui.h: * macfns.c: * mac.c: Remove file. * s/darwin.h: * m/intel386.h: * xfaces.c: * xdisp.c: * window.c: * tparam.c: * termhooks.h: * termcap.c: * term.c: * syssignal.h: * sysselect.h: * sysdep.c: * process.c: * lread.c: * lisp.h: * keyboard.c: * image.c: * fringe.c: * frame.h: * frame.c: * fontset.c: * font.h: * font.c: * fns.c: * fileio.c: * emacs.c: * dispnew.c: * dispextern.h: * config.in: * atimer.c: * Makefile.in: Remove code for Carbon * erc.el: Remove code for Carbon. Remove support for Mac Carbon. * term/mac-win.el: Remove file * international/mule-cmds.el: * version.el: * startup.el: * simple.el: * mwheel.el: * mouse.el: * loadup.el: * isearch.el: * info.el: * frame.el: * faces.el: * disp-table.el: * cus-start.el: * cus-face.el: * cus-edit.el: * Makefile.in: Remove code for Carbon. Remove support for Mac Carbon. * makefile.w32-in: * emacsclient.c: Remove code for Carbon. * PROBLEMS: * MACHINES: Remove mentions of Mac Carbon. * ns-emacs.texi: * faq.texi: Remove mentions of Mac Carbon. * os.texi: * frames.texi: * display.texi: Remove mentions of Mac Carbon. * xresources.texi: Remove mentions of Mac Carbon. * make-tarball.txt: * admin.el: * FOR-RELEASE: * CPP-DEFINES: Remove mentions of Mac Carbon. Remove support for Mac Carbon. * mac: Remove directory. * make-dist: * configure.in: * README: * Makefile.in: * INSTALL: Remove code for Carbon. * configure: Regenerate.
Diffstat (limited to 'src/s')
-rw-r--r--src/s/darwin.h61
1 files changed, 4 insertions, 57 deletions
diff --git a/src/s/darwin.h b/src/s/darwin.h
index 3c227afe621..42406a4d559 100644
--- a/src/s/darwin.h
+++ b/src/s/darwin.h
@@ -27,14 +27,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
27/* BSD4_3 and BSD4_4 are already defined in sys/param.h */ 27/* BSD4_3 and BSD4_4 are already defined in sys/param.h */
28#define BSD_SYSTEM 28#define BSD_SYSTEM
29 29
30/* MAC_OS is used to conditionally compile code common to both MAC_OS8
31 and MAC_OSX. */
32#ifdef MAC_OSX
33#ifdef HAVE_CARBON
34#define MAC_OS
35#endif
36#endif
37
38/* SYSTEM_TYPE should indicate the kind of system you are using. 30/* SYSTEM_TYPE should indicate the kind of system you are using.
39 It sets the Lisp variable system-type. */ 31 It sets the Lisp variable system-type. */
40 32
@@ -133,20 +125,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
133/* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */ 125/* Define HAVE_SOCKETS if system supports 4.2-compatible sockets. */
134#define HAVE_SOCKETS 126#define HAVE_SOCKETS
135 127
136/* In Carbon, asynchronous I/O (using SIGIO) can't be used for window
137 events because they don't come from sockets, even though it works
138 fine on tty's. */
139/* This seems to help in Ctrl-G detection under Cocoa, however at the cost 128/* This seems to help in Ctrl-G detection under Cocoa, however at the cost
140 of some quirks that may or may not bother a given user. */ 129 of some quirks that may or may not bother a given user. */
141#if defined (HAVE_CARBON) || defined (COCOA_EXPERIMENTAL_CTRL_G) 130#if defined (COCOA_EXPERIMENTAL_CTRL_G)
142#define NO_SOCK_SIGIO 131#define NO_SOCK_SIGIO
143#endif 132#endif
144 133
145/* Extra initialization calls in main for Mac OS X system type. */
146#ifdef HAVE_CARBON
147#define SYMS_SYSTEM syms_of_mac()
148#endif
149
150/* Definitions for how to dump. Copied from nextstep.h. */ 134/* Definitions for how to dump. Copied from nextstep.h. */
151 135
152#define UNEXEC unexmacosx.o 136#define UNEXEC unexmacosx.o
@@ -158,7 +142,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
158 142
159/* Definitions for how to compile & link. */ 143/* Definitions for how to compile & link. */
160 144
161/* Link in the Carbon or AppKit lib. */ 145/* Link in the AppKit lib. */
162#ifdef HAVE_NS 146#ifdef HAVE_NS
163/* PENDING: can this target be specified in a clearer way? */ 147/* PENDING: can this target be specified in a clearer way? */
164#define OTHER_FILES ns-app 148#define OTHER_FILES ns-app
@@ -170,49 +154,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
170#else /* !HAVE_NS */ 154#else /* !HAVE_NS */
171#define HEADERPAD_EXTRA 690 155#define HEADERPAD_EXTRA 690
172 156
173/* This is for the Carbon port. Under the NeXTstep port, this is still picked 157/* FIXME: Is this needed?
158 This is for the Carbon port. Under the NeXTstep port, this is still picked
174 up during preprocessing, but is undone in config.in. */ 159 up during preprocessing, but is undone in config.in. */
175#define C_SWITCH_SYSTEM -fpascal-strings -DMAC_OSX 160#define C_SWITCH_SYSTEM -fpascal-strings -DMAC_OSX
176 161
177#ifdef HAVE_CARBON
178
179/* We need a little extra space, see ../../lisp/loadup.el. */
180#define SYSTEM_PURESIZE_EXTRA 30000
181
182/* Link in the Carbon lib. */
183#define LIBS_MACGUI -framework Carbon LIBS_IMAGE
184
185#ifdef HAVE_AVAILABILITYMACROS_H
186#include <AvailabilityMacros.h>
187#endif
188/* Tell src/Makefile.in to create files in the Mac OS X application
189 bundle mac/Emacs.app. */
190#define OTHER_FILES macosx-app
191
192/* Whether to use the Image I/O framework for reading images. */
193#ifndef USE_MAC_IMAGE_IO
194#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 && (MAC_OS_X_VERSION_MIN_REQUIRED >= 1040 || MAC_OS_X_VERSION_MIN_REQUIRED < 1020)
195#define USE_MAC_IMAGE_IO 1
196#endif
197#endif
198
199/* If the Image I/O framework is not used, fall back on QuickTime. */
200#if USE_MAC_IMAGE_IO
201#define LIBS_IMAGE
202#else
203#define LIBS_IMAGE -framework QuickTime
204#endif
205
206/* Reroute calls to SELECT to the version defined in mac.c to fix the
207 problem of Emacs requiring an extra return to be typed to start
208 working when started from the command line. */
209#if defined (emacs) || defined (temacs)
210#define select sys_select
211#endif
212
213#else /* !HAVE_CARBON */
214#define LIBS_MACGUI 162#define LIBS_MACGUI
215#endif /* HAVE_CARBON */
216 163
217#endif /* !HAVE_NS */ 164#endif /* !HAVE_NS */
218 165