boolean.h revision 290001
1109998Smarkm/* 2296341Sdelphij * Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC") 3296341Sdelphij * Copyright (C) 1998-2001 Internet Software Consortium. 4296341Sdelphij * 5109998Smarkm * Permission to use, copy, modify, and/or distribute this software for any 6109998Smarkm * purpose with or without fee is hereby granted, provided that the above 7160814Ssimon * copyright notice and this permission notice appear in all copies. 8109998Smarkm * 9109998Smarkm * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 10109998Smarkm * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11109998Smarkm * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 12109998Smarkm * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13109998Smarkm * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 14296341Sdelphij * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15109998Smarkm * PERFORMANCE OF THIS SOFTWARE. 16109998Smarkm */ 17109998Smarkm 18109998Smarkm/* $Id: boolean.h,v 1.19 2007/06/19 23:47:18 tbox Exp $ */ 19109998Smarkm 20109998Smarkm#ifndef ISC_BOOLEAN_H 21109998Smarkm#define ISC_BOOLEAN_H 1 22109998Smarkm 23109998Smarkm/*! \file isc/boolean.h */ 24109998Smarkm 25109998Smarkmtypedef enum { isc_boolean_false = 0, isc_boolean_true = 1 } isc_boolean_t; 26109998Smarkm 27109998Smarkm#define ISC_FALSE isc_boolean_false 28109998Smarkm#define ISC_TRUE isc_boolean_true 29109998Smarkm#define ISC_TF(x) ((x) ? ISC_TRUE : ISC_FALSE) 30109998Smarkm 31109998Smarkm#endif /* ISC_BOOLEAN_H */ 32109998Smarkm