fontmisc.h revision 7f7f5e4e
1/* 2 3Copyright 1991, 1998 The Open Group 4 5Permission to use, copy, modify, distribute, and sell this software and its 6documentation for any purpose is hereby granted without fee, provided that 7the above copyright notice appear in all copies and that both that 8copyright notice and this permission notice appear in supporting 9documentation. 10 11The above copyright notice and this permission notice shall be included in 12all copies or substantial portions of the Software. 13 14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 20 21Except as contained in this notice, the name of The Open Group shall not be 22used in advertising or otherwise to promote the sale, use or other dealings 23in this Software without prior written authorization from The Open Group. 24 25*/ 26/* $XFree86: xc/lib/font/include/fontmisc.h,v 3.16 2001/12/14 19:56:54 dawes Exp $ */ 27 28/* 29 * Author: Keith Packard, MIT X Consortium 30 */ 31 32#ifndef _FONTMISC_H_ 33#define _FONTMISC_H_ 34 35#include <X11/Xfuncs.h> 36#include <stdlib.h> 37#include <stdio.h> 38#include <unistd.h> 39#include <X11/Xdefs.h> 40 41 42#ifndef LSBFirst 43#define LSBFirst 0 44#define MSBFirst 1 45#endif 46 47#ifndef None 48#define None 0l 49#endif 50 51#ifndef TRUE 52#define TRUE 1 53#define FALSE 0 54#endif 55 56extern Atom MakeAtom ( char *string, unsigned len, int makeit ); 57extern int ValidAtom ( Atom atom ); 58extern char *NameForAtom (Atom atom); 59 60#define lowbit(x) ((x) & (~(x) + 1)) 61 62#undef assert 63#define assert(x) ((void)0) 64 65extern void 66BitOrderInvert( 67 register unsigned char *, 68 register int 69); 70 71extern void 72TwoByteSwap( 73 register unsigned char *, 74 register int 75); 76 77extern void 78FourByteSwap( 79 register unsigned char *, 80 register int 81); 82 83extern int 84RepadBitmap ( 85 char*, 86 char*, 87 unsigned, 88 unsigned, 89 int, 90 int 91); 92 93extern void CopyISOLatin1Lowered( 94 char * /*dest*/, 95 char * /*source*/, 96 int /*length*/ 97); 98 99extern void register_fpe_functions(void); 100 101#endif /* _FONTMISC_H_ */ 102