123a0898aSmrg/* 223a0898aSmrg 323a0898aSmrgCopyright 1991, 1998 The Open Group 423a0898aSmrg 523a0898aSmrgPermission to use, copy, modify, distribute, and sell this software and its 623a0898aSmrgdocumentation for any purpose is hereby granted without fee, provided that 723a0898aSmrgthe above copyright notice appear in all copies and that both that 823a0898aSmrgcopyright notice and this permission notice appear in supporting 923a0898aSmrgdocumentation. 1023a0898aSmrg 1123a0898aSmrgThe above copyright notice and this permission notice shall be included in 1223a0898aSmrgall copies or substantial portions of the Software. 1323a0898aSmrg 1423a0898aSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 1523a0898aSmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 1623a0898aSmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 1723a0898aSmrgOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN 1823a0898aSmrgAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 1923a0898aSmrgCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2023a0898aSmrg 2123a0898aSmrgExcept as contained in this notice, the name of The Open Group shall not be 2223a0898aSmrgused in advertising or otherwise to promote the sale, use or other dealings 2323a0898aSmrgin this Software without prior written authorization from The Open Group. 2423a0898aSmrg 2523a0898aSmrg*/ 2623a0898aSmrg 2723a0898aSmrg/* 2823a0898aSmrg * Author: Keith Packard, MIT X Consortium 2923a0898aSmrg */ 3023a0898aSmrg 3123a0898aSmrg#ifndef _FONTMISC_H_ 3223a0898aSmrg#define _FONTMISC_H_ 3323a0898aSmrg 3423a0898aSmrg#include <X11/Xfuncs.h> 3523a0898aSmrg#include <stdlib.h> 3623a0898aSmrg#include <stdio.h> 3723a0898aSmrg#include <unistd.h> 3823a0898aSmrg#include <X11/Xdefs.h> 3923a0898aSmrg 4023a0898aSmrg 4123a0898aSmrg#ifndef LSBFirst 4223a0898aSmrg#define LSBFirst 0 4323a0898aSmrg#define MSBFirst 1 4423a0898aSmrg#endif 4523a0898aSmrg 4623a0898aSmrg#ifndef None 4723a0898aSmrg#define None 0l 4823a0898aSmrg#endif 4923a0898aSmrg 5023a0898aSmrg#ifndef TRUE 5123a0898aSmrg#define TRUE 1 5223a0898aSmrg#define FALSE 0 5323a0898aSmrg#endif 5423a0898aSmrg 5541c30155Smrgextern Atom MakeAtom ( const char *string, unsigned len, int makeit ); 5623a0898aSmrgextern int ValidAtom ( Atom atom ); 5723a0898aSmrgextern char *NameForAtom (Atom atom); 5823a0898aSmrg 5923a0898aSmrg#define lowbit(x) ((x) & (~(x) + 1)) 6023a0898aSmrg 6123a0898aSmrg#undef assert 6223a0898aSmrg#define assert(x) ((void)0) 6323a0898aSmrg 6423a0898aSmrgextern void 6523a0898aSmrgBitOrderInvert( 6623a0898aSmrg register unsigned char *, 6723a0898aSmrg register int 6823a0898aSmrg); 6923a0898aSmrg 7023a0898aSmrgextern void 7123a0898aSmrgTwoByteSwap( 7223a0898aSmrg register unsigned char *, 7323a0898aSmrg register int 7423a0898aSmrg); 7523a0898aSmrg 7623a0898aSmrgextern void 7723a0898aSmrgFourByteSwap( 7823a0898aSmrg register unsigned char *, 7923a0898aSmrg register int 8023a0898aSmrg); 8123a0898aSmrg 8223a0898aSmrgextern int 8323a0898aSmrgRepadBitmap ( 8423a0898aSmrg char*, 8541c30155Smrg char*, 8641c30155Smrg unsigned, 8723a0898aSmrg unsigned, 8841c30155Smrg int, 8923a0898aSmrg int 9023a0898aSmrg); 9123a0898aSmrg 9223a0898aSmrgextern void CopyISOLatin1Lowered( 9323a0898aSmrg char * /*dest*/, 940145ab54Ssnj const char * /*source*/, 9523a0898aSmrg int /*length*/ 9623a0898aSmrg); 9723a0898aSmrg 9823a0898aSmrgextern void register_fpe_functions(void); 9923a0898aSmrg 10023a0898aSmrg#endif /* _FONTMISC_H_ */ 101