00001 /* 00002 * Copyright (c) 2010, Boris Popov <popov.b@gmail.com> 00003 * 00004 * Permission to use, copy, modify, and/or distribute 00005 * this software for any purpose with or without fee 00006 * is hereby granted, provided that the above copyright 00007 * notice and this permission notice appear in all copies. 00008 * 00009 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS 00010 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL 00011 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. 00012 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00013 * DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 00014 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 00015 * WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 00016 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH 00017 * THE USE OR PERFORMANCE OF THIS SOFTWARE. 00018 */ 00019 00020 #ifdef HAVE_CONFIG_H 00021 #include <config.h> 00022 #endif 00023 00024 #ifndef __bool__h__ 00025 #define __bool__h__ 00026 00027 #ifdef __cplusplus 00028 extern "C" { 00029 #endif /* __cplusplus */ 00030 00031 00036 enum _bool { 00037 00038 Bool_TRUE = 1, 00039 Bool_FALSE = 0, 00040 }; 00041 typedef enum _bool Bool; 00042 00043 #define SUCCESS (Bool_TRUE) 00044 #define FAULT (Bool_FALSE) 00045 00048 #ifdef __cplusplus 00049 } 00050 #endif /* __cplusplus */ 00051 #endif /* __bool__h__ */