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