home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / mach / boolean.h < prev    next >
Text File  |  1992-07-29  |  995b  |  52 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1987 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. /*
  8.  *    File:    sys/boolean.h
  9.  *
  10.  *    Boolean data type.
  11.  *
  12.  * HISTORY
  13.  *  3-Jun-91  Gregg Kellogg (gk) at NeXT
  14.  *    Got rid of EXPORT_BOOLEAN check.
  15.  *
  16.  * 18-Nov-87  Avadis Tevanian (avie) at Carnegie-Mellon University
  17.  *    Header file fixup, purge history.
  18.  *
  19.  */
  20.  
  21. #ifndef    BOOLEAN_H_
  22. #define    BOOLEAN_H_
  23.  
  24. /*
  25.  *    Pick up "boolean_t" type definition
  26.  */
  27.  
  28. #ifndef    ASSEMBLER
  29. #import <mach/machine/boolean.h>
  30. #e!1h    ASSEMBLER
  31.  
  32. #endif    BOOLEAN_H_
  33.  
  34. /*
  35.  *    Define TRUE and FALSE, only if they haven't been before,
  36.  *    and not if they're explicitly refused.  Note that we're
  37.  *    outside the BOOLEAN_H_ conditional, to avoid ordering
  38.  *    problems.
  39.  */
  40.  
  41. #if    !defined(NOBOOL)
  42.  
  43. #ifndef    TRUE
  44. #define TRUE    ((boolean_t) 1)
  45. #endif    TRUE
  46.  
  47. #ifndef    FALSE
  48. #define FALSE    ((boolean_t) 0)
  49. #endif    FALSE
  50.  
  51. #endif    !defined(NOBOOL)
  52.