| 1 |
/* |
| 2 |
* $XConsortium: fontmisc.h,v 1.5 91/05/12 16:15:48 rws Exp $ |
| 3 |
* |
| 4 |
* Copyright 1991 Massachusetts Institute of Technology |
| 5 |
* |
| 6 |
* Permission to use, copy, modify, distribute, and sell this software and its |
| 7 |
* documentation for any purpose is hereby granted without fee, provided that |
| 8 |
* the above copyright notice appear in all copies and that both that |
| 9 |
* copyright notice and this permission notice appear in supporting |
| 10 |
* documentation, and that the name of M.I.T. not be used in advertising or |
| 11 |
* publicity pertaining to distribution of the software without specific, |
| 12 |
* written prior permission. M.I.T. makes no representations about the |
| 13 |
* suitability of this software for any purpose. It is provided "as is" |
| 14 |
* without express or implied warranty. |
| 15 |
* |
| 16 |
* M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL |
| 17 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T. |
| 18 |
* BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES |
| 19 |
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION |
| 20 |
* OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN |
| 21 |
* CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
| 22 |
* |
| 23 |
* Author: Keith Packard, MIT X Consortium |
| 24 |
*/ |
| 25 |
|
| 26 |
#ifndef _FONTMISC_H_ |
| 27 |
#define _FONTMISC_H_ |
| 28 |
|
| 29 |
#ifdef XSERVER |
| 30 |
#include "Xfuncs.h" |
| 31 |
#endif |
| 32 |
|
| 33 |
typedef unsigned char *pointer; |
| 34 |
typedef int Bool; |
| 35 |
#ifndef X_PROTOCOL |
| 36 |
typedef unsigned long Atom; |
| 37 |
typedef unsigned long XID; |
| 38 |
#endif |
| 39 |
#ifndef LSBFirst |
| 40 |
#define LSBFirst 0 |
| 41 |
#define MSBFirst 1 |
| 42 |
#endif |
| 43 |
|
| 44 |
#ifndef None |
| 45 |
#define None 0l |
| 46 |
#endif |
| 47 |
|
| 48 |
#ifndef TRUE |
| 49 |
#define TRUE 1 |
| 50 |
#define FALSE 0 |
| 51 |
#endif |
| 52 |
|
| 53 |
extern char *NameForAtom (); |
| 54 |
|
| 55 |
#define lowbit(x) ((x) & (~(x) + 1)) |
| 56 |
|
| 57 |
#if defined(assert) |
| 58 |
#undef assert |
| 59 |
#endif |
| 60 |
|
| 61 |
#define assert(x) |
| 62 |
|
| 63 |
#endif /* _FONTMISC_H_ */ |