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