/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/common/logic.h

Go to the documentation of this file.
00001 /* $Id: logic.h,v 1.5 2006/01/28 00:20:45 ellson Exp $ $Revision: 1.5 $ */
00002 /* vim:set shiftwidth=4 ts=8: */
00003 
00004 /**********************************************************
00005 *      This software is part of the graphviz package      *
00006 *                http://www.graphviz.org/                 *
00007 *                                                         *
00008 *            Copyright (c) 1994-2004 AT&T Corp.           *
00009 *                and is licensed under the                *
00010 *            Common Public License, Version 1.0           *
00011 *                      by AT&T Corp.                      *
00012 *                                                         *
00013 *        Information and Software Systems Research        *
00014 *              AT&T Research, Florham Park NJ             *
00015 **********************************************************/
00016 
00017 #ifndef GV_LOGIC_H
00018 #define GV_LOGIC_H
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00024 #if defined HAVE_STDBOOL_H && ! defined __cplusplus
00025 #include <stdbool.h>
00026 #endif
00027 
00028 #define NOT(v) (!(v))
00029 
00030 /* HAVE_BOOL only tested the CC compiler, we know C++ must define bool */
00031 #if ! defined HAVE_BOOL && ! defined __cplusplus
00032 typedef unsigned char bool;
00033 #define false 0
00034 #define true NOT(false)
00035 #endif
00036 
00037 #ifndef FALSE
00038 #define FALSE false
00039 #endif
00040 #ifndef TRUE
00041 #define TRUE true
00042 #endif
00043 
00044 #ifndef NOTUSED
00045 #define NOTUSED(var) (void) var
00046 #endif
00047 
00048 #ifndef NULL
00049 #define NULL (void *)0
00050 #endif
00051 
00052 #ifndef NIL
00053 #define NIL(type) ((type)0)
00054 #endif
00055 
00056 #ifdef __cplusplus
00057 }
00058 #endif
00059 
00060 #endif
00061 

Generated on Mon Mar 31 19:03:24 2008 for Graphviz by  doxygen 1.5.1