1290001Sglebius/*
2290001Sglebius * Copyright (C) 2004-2007  Internet Systems Consortium, Inc. ("ISC")
3290001Sglebius * Copyright (C) 1998-2001  Internet Software Consortium.
4290001Sglebius *
5290001Sglebius * Permission to use, copy, modify, and/or distribute this software for any
6290001Sglebius * purpose with or without fee is hereby granted, provided that the above
7290001Sglebius * copyright notice and this permission notice appear in all copies.
8290001Sglebius *
9290001Sglebius * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10290001Sglebius * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11290001Sglebius * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12290001Sglebius * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13290001Sglebius * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14290001Sglebius * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15290001Sglebius * PERFORMANCE OF THIS SOFTWARE.
16290001Sglebius */
17290001Sglebius
18290001Sglebius/* $Id: boolean.h,v 1.19 2007/06/19 23:47:18 tbox Exp $ */
19290001Sglebius
20290001Sglebius#ifndef ISC_BOOLEAN_H
21290001Sglebius#define ISC_BOOLEAN_H 1
22290001Sglebius
23290001Sglebius/*! \file isc/boolean.h */
24290001Sglebius
25290001Sglebiustypedef enum { isc_boolean_false = 0, isc_boolean_true = 1 } isc_boolean_t;
26290001Sglebius
27290001Sglebius#define ISC_FALSE isc_boolean_false
28290001Sglebius#define ISC_TRUE isc_boolean_true
29290001Sglebius#define ISC_TF(x) ((x) ? ISC_TRUE : ISC_FALSE)
30290001Sglebius
31290001Sglebius#endif /* ISC_BOOLEAN_H */
32