diff options
| author | Steven Tamm | 2004-02-26 17:46:48 +0000 |
|---|---|---|
| committer | Steven Tamm | 2004-02-26 17:46:48 +0000 |
| commit | e35644615b2a506daa457cbc5613ba8d16a46be6 (patch) | |
| tree | c9a8a5555b8bffd7808612c10958a1cd96a7a75f /src/macgui.h | |
| parent | af617d0febe392e1d55978df89a73f6c2fca74d4 (diff) | |
| download | emacs-e35644615b2a506daa457cbc5613ba8d16a46be6.tar.gz emacs-e35644615b2a506daa457cbc5613ba8d16a46be6.zip | |
Inserting Yamomotosan's changes for MacOSX image support, better support
of Asian fonts, and some long awaited header cleanup and centralization.
Diffstat (limited to 'src/macgui.h')
| -rw-r--r-- | src/macgui.h | 36 |
1 files changed, 32 insertions, 4 deletions
diff --git a/src/macgui.h b/src/macgui.h index 34f5913d5df..2bb346e9d30 100644 --- a/src/macgui.h +++ b/src/macgui.h | |||
| @@ -23,9 +23,6 @@ Boston, MA 02111-1307, USA. */ | |||
| 23 | #ifndef EMACS_MACGUI_H | 23 | #ifndef EMACS_MACGUI_H |
| 24 | #define EMACS_MACGUI_H | 24 | #define EMACS_MACGUI_H |
| 25 | 25 | ||
| 26 | typedef int Pixmap; | ||
| 27 | typedef int Bitmap; | ||
| 28 | |||
| 29 | typedef int Display; /* fix later */ | 26 | typedef int Display; /* fix later */ |
| 30 | 27 | ||
| 31 | typedef char * XrmDatabase; /* fix later */ | 28 | typedef char * XrmDatabase; /* fix later */ |
| @@ -33,12 +30,43 @@ typedef char * XrmDatabase; /* fix later */ | |||
| 33 | typedef unsigned long Time; | 30 | typedef unsigned long Time; |
| 34 | 31 | ||
| 35 | #if MAC_OSX | 32 | #if MAC_OSX |
| 33 | #undef mktime | ||
| 34 | #undef DEBUG | ||
| 35 | #undef Z | ||
| 36 | #undef free | ||
| 37 | #undef malloc | ||
| 38 | #undef realloc | ||
| 39 | /* Macros max and min defined in lisp.h conflict with those in | ||
| 40 | precompiled header Carbon.h. */ | ||
| 41 | #undef max | ||
| 42 | #undef min | ||
| 43 | #undef init_process | ||
| 44 | #include <Carbon/Carbon.h> | ||
| 45 | #undef Z | ||
| 46 | #define Z (current_buffer->text->z) | ||
| 47 | #undef free | ||
| 48 | #define free unexec_free | ||
| 49 | #undef malloc | ||
| 50 | #define malloc unexec_malloc | ||
| 51 | #undef realloc | ||
| 52 | #define realloc unexec_realloc | ||
| 53 | #undef min | ||
| 54 | #define min(a, b) ((a) < (b) ? (a) : (b)) | ||
| 55 | #undef max | ||
| 56 | #define max(a, b) ((a) > (b) ? (a) : (b)) | ||
| 57 | #undef init_process | ||
| 58 | #define init_process emacs_init_process | ||
| 59 | #undef INFINITY | ||
| 36 | typedef struct OpaqueWindowPtr* Window; | 60 | typedef struct OpaqueWindowPtr* Window; |
| 37 | #else | 61 | #else |
| 38 | #include <QuickDraw.h> | 62 | #include <QuickDraw.h> /* for WindowPtr */ |
| 63 | #include <QDOffscreen.h> /* for GWorldPtr */ | ||
| 64 | #include <Controls.h> /* for ControlHandle in xdisp.c */ | ||
| 39 | typedef WindowPtr Window; | 65 | typedef WindowPtr Window; |
| 40 | #endif | 66 | #endif |
| 41 | 67 | ||
| 68 | typedef GWorldPtr Pixmap; | ||
| 69 | |||
| 42 | #define FACE_DEFAULT (~0) | 70 | #define FACE_DEFAULT (~0) |
| 43 | 71 | ||
| 44 | 72 | ||