]> git.sesse.net Git - rdpsrv/blob - Xserver/lib/font/include/fontmisc.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / lib / font / include / fontmisc.h
1 /* $TOG: fontmisc.h /main/7 1997/06/10 14:11:11 barstow $ */
2
3 /*
4
5 Copyright (c) 1991  X Consortium
6
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
20 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
21 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24 Except as contained in this notice, the name of the X Consortium shall not be
25 used in advertising or otherwise to promote the sale, use or other dealings
26 in this Software without prior written authorization from the X Consortium.
27
28 */
29 /* $XFree86: xc/lib/font/include/fontmisc.h,v 3.0.4.1 1997/06/11 12:08:42 dawes Exp $ */
30
31 /*
32  * Author:  Keith Packard, MIT X Consortium
33  */
34
35 #ifndef _FONTMISC_H_
36 #define _FONTMISC_H_
37
38 #include <X11/Xfuncs.h>
39
40 typedef unsigned char   *pointer;
41 typedef int             Bool;
42
43 #ifndef X_PROTOCOL
44 #ifndef _XSERVER64
45 typedef unsigned long   Atom;
46 typedef unsigned long   XID;
47 #else
48 #include <X11/Xmd.h>
49 typedef CARD32 XID;
50 typedef CARD32 Atom;
51 #endif 
52 #endif
53
54 #ifndef LSBFirst
55 #define LSBFirst        0
56 #define MSBFirst        1
57 #endif
58
59 #ifndef None
60 #define None    0l
61 #endif
62
63 #ifndef TRUE
64 #define TRUE 1
65 #define FALSE 0
66 #endif
67
68 extern char         *NameForAtom ();
69
70 extern unsigned long *Xalloc();
71 extern unsigned long *Xrealloc();
72
73 #define xalloc(n)   Xalloc ((unsigned) n)
74 #define xfree(p)    Xfree ((pointer) p)
75 #define xrealloc(p,n)   Xrealloc ((pointer)p,n)
76 #define lowbit(x) ((x) & (~(x) + 1))
77
78 #define assert(x)
79
80 #endif /* _FONTMISC_H_ */