Mercurial > hg > xemacs-beta
comparison src/xmu.h @ 412:697ef44129c6 r21-2-14
Import from CVS: tag r21-2-14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:20:41 +0200 |
parents | 74fd4e045ea6 |
children | 11054d720c21 |
comparison
equal
deleted
inserted
replaced
411:12e008d41344 | 412:697ef44129c6 |
---|---|
1 /* Compatibility routines based on code from the MIT Xmu library */ | 1 /* Compatibility routines based on code from the MIT Xmu library */ |
2 | 2 |
3 /* Synched up with: Not in FSF. */ | 3 /* Synched up with: Not in FSF. */ |
4 | |
5 #ifndef INCLUDED_xmu_h_ | |
6 #define INCLUDED_xmu_h_ | |
7 | 4 |
8 #ifdef HAVE_XMU | 5 #ifdef HAVE_XMU |
9 | 6 |
10 # include <X11/Xmu/CharSet.h> | 7 # include <X11/Xmu/CharSet.h> |
11 # include <X11/Xmu/Converters.h> | 8 # include <X11/Xmu/Converters.h> |
12 # include <X11/Xmu/CurUtil.h> | 9 # include <X11/Xmu/CurUtil.h> |
13 # include <X11/Xmu/Drawing.h> | 10 # include <X11/Xmu/Drawing.h> |
14 # include <X11/Xmu/Error.h> | 11 # include <X11/Xmu/Error.h> |
15 # include <X11/Xmu/Misc.h> | |
16 | 12 |
17 /* Do the EDITRES protocol if running X11R5 (or later) version */ | 13 /* Do the EDITRES protocol if running X11R5 (or later) version */ |
18 #if (XtSpecificationRelease >= 5) | 14 #if (XtSpecificationRelease >= 5) |
19 /* #### No dice if we don't have XMU until someone ports | 15 /* #### No dice if we don't have XMU until someone ports |
20 _XEditResCheckMessages to xmu.c */ | 16 _XEditResCheckMessages to xmu.c */ |
22 #include <X11/Xmu/Editres.h> | 18 #include <X11/Xmu/Editres.h> |
23 #endif /* R5+ */ | 19 #endif /* R5+ */ |
24 | 20 |
25 #else | 21 #else |
26 | 22 |
27 int XmuCursorNameToIndex (const char *name); | 23 int XmuCursorNameToIndex (CONST char *name); |
28 int XmuReadBitmapDataFromFile (const char *filename, unsigned int *width, | 24 int XmuReadBitmapDataFromFile (CONST char *filename, unsigned int *width, |
29 unsigned int *height, unsigned char **datap, | 25 unsigned int *height, unsigned char **datap, |
30 int *x_hot, int *y_hot); | 26 int *x_hot, int *y_hot); |
31 int XmuPrintDefaultErrorMessage (Display *dpy, XErrorEvent *event, FILE *fp); | 27 int XmuPrintDefaultErrorMessage (Display *dpy, XErrorEvent *event, FILE *fp); |
32 void XmuCopyISOLatin1Lowered (char *, const char *); | 28 void XmuCopyISOLatin1Lowered (char *, CONST char *); |
33 | 29 |
34 #define Max(x, y) (((x) > (y)) ? (x) : (y)) | 30 #endif |
35 #define Min(x, y) (((x) < (y)) ? (x) : (y)) | |
36 #define AssignMax(x, y) {if ((y) > (x)) x = (y);} | |
37 #define AssignMin(x, y) {if ((y) < (x)) x = (y);} | |
38 typedef enum {XtorientHorizontal, XtorientVertical} XtOrientation; | |
39 | 31 |
40 #endif /* HAVE_XMU */ | |
41 | |
42 #endif /* INCLUDED_xmu_h_ */ |