FreeBSD/Linux Kernel Cross Reference
sys/mach/boolean.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991,1990,1989,1988,1987 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: boolean.h,v $
29 * Revision 2.4 93/01/14 17:41:23 danner
30 * Standardized include symbol name.
31 * [92/06/10 pds]
32 *
33 * Revision 2.3 91/05/14 16:51:06 mrt
34 * Correcting copyright
35 *
36 * Revision 2.2 91/02/05 17:31:38 mrt
37 * Changed to new Mach copyright
38 * [91/02/01 17:16:36 mrt]
39 *
40 * Revision 2.1 89/08/03 15:59:35 rwd
41 * Created.
42 *
43 * Revision 2.4 89/02/25 18:12:08 gm0w
44 * Changes for cleanup.
45 *
46 * Revision 2.3 89/02/07 00:51:34 mwyoung
47 * Relocated from sys/boolean.h
48 *
49 * Revision 2.2 88/08/24 02:23:06 mwyoung
50 * Adjusted include file references.
51 * [88/08/17 02:09:46 mwyoung]
52 *
53 *
54 * 18-Nov-87 Avadis Tevanian (avie) at Carnegie-Mellon University
55 * Header file fixup, purge history.
56 *
57 */
58 /*
59 * File: mach/boolean.h
60 *
61 * Boolean data type.
62 *
63 */
64
65 #ifndef _MACH_BOOLEAN_H_
66 #define _MACH_BOOLEAN_H_
67
68 /*
69 * Pick up "boolean_t" type definition
70 */
71
72 #ifndef ASSEMBLER
73 #include <mach/machine/boolean.h>
74 #endif /* ASSEMBLER */
75
76 #endif /* _MACH_BOOLEAN_H_ */
77
78 /*
79 * Define TRUE and FALSE, only if they haven't been before,
80 * and not if they're explicitly refused. Note that we're
81 * outside the BOOLEAN_H_ conditional, to avoid ordering
82 * problems.
83 */
84
85 #if (defined(KERNEL) || defined(EXPORT_BOOLEAN)) && !defined(NOBOOL)
86
87 #ifndef TRUE
88 #define TRUE ((boolean_t) 1)
89 #endif /* TRUE */
90
91 #ifndef FALSE
92 #define FALSE ((boolean_t) 0)
93 #endif /* FALSE */
94
95 #endif /* (defined(KERNEL) || defined(EXPORT_BOOLEAN)) && !defined(NOBOOL) */
Cache object: 61dbcbe44321e64d62efc8b43ad47df5
|