home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 4 / hacker04 / 04_HACK04.ISO / darwin / darwinx86.iso / usr / include / mach / boolean.h next >
Encoding:
C/C++ Source or Header  |  2001-09-30  |  4.0 KB  |  148 lines

  1. /*
  2.  * Copyright (c) 2000 Apple Computer, Inc. All rights reserved.
  3.  *
  4.  * @APPLE_LICENSE_HEADER_START@
  5.  * 
  6.  * The contents of this file constitute Original Code as defined in and
  7.  * are subject to the Apple Public Source License Version 1.1 (the
  8.  * "License").  You may not use this file except in compliance with the
  9.  * License.  Please obtain a copy of the License at
  10.  * http://www.apple.com/publicsource and read it before using this file.
  11.  * 
  12.  * This Original Code and all software distributed under the License are
  13.  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
  14.  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
  15.  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
  16.  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
  17.  * License for the specific language governing rights and limitations
  18.  * under the License.
  19.  * 
  20.  * @APPLE_LICENSE_HEADER_END@
  21.  */
  22. /*
  23.  * @OSF_COPYRIGHT@
  24.  */
  25. /*
  26.  * HISTORY
  27.  * 
  28.  * Revision 1.1.1.1  1998/09/22 21:05:31  wsanchez
  29.  * Import of Mac OS X kernel (~semeria)
  30.  *
  31.  * Revision 1.1.1.1  1998/03/07 02:25:45  wsanchez
  32.  * Import of OSF Mach kernel (~mburg)
  33.  *
  34.  * Revision 1.2.6.1  1994/09/23  02:34:07  ezf
  35.  *     change marker to not FREE
  36.  *     [1994/09/22  21:39:00  ezf]
  37.  *
  38.  * Revision 1.2.2.3  1993/08/03  18:22:11  gm
  39.  *     CR9598: Remove unneeded EXPORT_BOOLEAN and KERNEL ifdefs.  Move
  40.  *     the code inside the include protection and remove the boolean_t
  41.  *     casts from TRUE and FALSE.
  42.  *     [1993/08/02  17:49:29  gm]
  43.  * 
  44.  * Revision 1.2.2.2  1993/06/09  02:39:27  gm
  45.  *     Added to OSF/1 R1.3 from NMK15.0.
  46.  *     [1993/06/02  21:15:31  jeffc]
  47.  * 
  48.  * Revision 1.2  1993/04/19  16:31:43  devrcs
  49.  *     ansi C conformance changes
  50.  *     [1993/02/02  18:52:46  david]
  51.  * 
  52.  * Revision 1.1  1992/09/30  02:30:33  robert
  53.  *     Initial revision
  54.  * 
  55.  * $EndLog$
  56.  */
  57. /* CMU_HIST */
  58. /*
  59.  * Revision 2.3  91/05/14  16:51:06  mrt
  60.  *     Correcting copyright
  61.  * 
  62.  * Revision 2.2  91/02/05  17:31:38  mrt
  63.  *     Changed to new Mach copyright
  64.  *     [91/02/01  17:16:36  mrt]
  65.  * 
  66.  * Revision 2.1  89/08/03  15:59:35  rwd
  67.  * Created.
  68.  * 
  69.  * Revision 2.4  89/02/25  18:12:08  gm0w
  70.  *     Changes for cleanup.
  71.  * 
  72.  * Revision 2.3  89/02/07  00:51:34  mwyoung
  73.  * Relocated from sys/boolean.h
  74.  * 
  75.  * Revision 2.2  88/08/24  02:23:06  mwyoung
  76.  *     Adjusted include file references.
  77.  *     [88/08/17  02:09:46  mwyoung]
  78.  * 
  79.  *
  80.  * 18-Nov-87  Avadis Tevanian (avie) at Carnegie-Mellon University
  81.  *    Header file fixup, purge history.
  82.  *
  83.  */
  84. /* CMU_ENDHIST */
  85. /* 
  86.  * Mach Operating System
  87.  * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
  88.  * All Rights Reserved.
  89.  * 
  90.  * Permission to use, copy, modify and distribute this software and its
  91.  * documentation is hereby granted, provided that both the copyright
  92.  * notice and this permission notice appear in all copies of the
  93.  * software, derivative works or modified versions, and any portions
  94.  * thereof, and that both notices appear in supporting documentation.
  95.  * 
  96.  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  97.  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  98.  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  99.  * 
  100.  * Carnegie Mellon requests users of this software to return to
  101.  * 
  102.  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  103.  *  School of Computer Science
  104.  *  Carnegie Mellon University
  105.  *  Pittsburgh PA 15213-3890
  106.  * 
  107.  * any improvements or extensions that they make and grant Carnegie Mellon
  108.  * the rights to redistribute these changes.
  109.  */
  110. /*
  111.  */
  112. /*
  113.  *    File:    mach/boolean.h
  114.  *
  115.  *    Boolean data type.
  116.  *
  117.  */
  118.  
  119. #ifndef    BOOLEAN_H_
  120. #define    BOOLEAN_H_
  121.  
  122. /*
  123.  *    Pick up "boolean_t" type definition
  124.  */
  125.  
  126. #ifndef    ASSEMBLER
  127. #include <mach/machine/boolean.h>
  128. #endif    /* ASSEMBLER */
  129.  
  130. /*
  131.  *    Define TRUE and FALSE, only if they haven't been before,
  132.  *    and not if they're explicitly refused.
  133.  */
  134.  
  135. #ifndef    NOBOOL
  136.  
  137. #ifndef    TRUE
  138. #define TRUE    1
  139. #endif    /* TRUE */
  140.  
  141. #ifndef    FALSE
  142. #define FALSE    0
  143. #endif    /* FALSE */
  144.  
  145. #endif    /* !defined(NOBOOL) */
  146.  
  147. #endif    /* BOOLEAN_H_ */
  148.