home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / g / gs241j11.zip / INCLUDE.PCF / FONTMISC.H < prev    next >
C/C++ Source or Header  |  1992-04-02  |  2KB  |  61 lines

  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. #include <X11/Xfuncs.h>
  30.  
  31. typedef unsigned char    *pointer;
  32. typedef int        Bool;
  33. #ifndef X_PROTOCOL
  34. typedef unsigned long    Atom;
  35. typedef unsigned long    XID;
  36. #endif
  37. #ifndef LSBFirst
  38. #define LSBFirst    0
  39. #define MSBFirst    1
  40. #endif
  41.  
  42. #ifndef None
  43. #define None    0l
  44. #endif
  45.  
  46. #ifndef TRUE
  47. #define TRUE 1
  48. #define FALSE 0
  49. #endif
  50.  
  51. extern char        *NameForAtom ();
  52.  
  53. #define xalloc(n)   Xalloc ((unsigned) n)
  54. #define xfree(p)    Xfree ((pointer) p)
  55. #define xrealloc(p,n)    Xrealloc ((pointer)p,n)
  56. #define lowbit(x) ((x) & (~(x) + 1))
  57.  
  58. #define assert(x)
  59.  
  60. #endif /* _FONTMISC_H_ */
  61.