|
Graphviz
2.29.20120524.0446
|
00001 /* $Id$ $Revision$ */ 00002 /* vim:set shiftwidth=4 ts=8: */ 00003 00004 /************************************************************************* 00005 * Copyright (c) 2011 AT&T Intellectual Property 00006 * All rights reserved. This program and the accompanying materials 00007 * are made available under the terms of the Eclipse Public License v1.0 00008 * which accompanies this distribution, and is available at 00009 * http://www.eclipse.org/legal/epl-v10.html 00010 * 00011 * Contributors: See CVS logs. Details at http://www.graphviz.org/ 00012 *************************************************************************/ 00013 00014 #ifndef GV_LOGIC_H 00015 #define GV_LOGIC_H 00016 00017 #ifdef __cplusplus 00018 extern "C" { 00019 #endif 00020 00021 #if defined HAVE_STDBOOL_H && ! defined __cplusplus 00022 #include <stdbool.h> 00023 #endif 00024 00025 #ifndef NOT 00026 #define NOT(v) (!(v)) 00027 #endif 00028 00029 #if 0 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 #endif 00037 00038 #ifndef FALSE 00039 #define FALSE (0) 00040 #endif 00041 #ifndef TRUE 00042 #define TRUE (!FALSE) 00043 #endif 00044 00045 #ifndef NOTUSED 00046 #define NOTUSED(var) (void) var 00047 #endif 00048 00049 #ifndef NULL 00050 #define NULL (void *)0 00051 #endif 00052 00053 #ifndef NIL 00054 #define NIL(type) ((type)0) 00055 #endif 00056 00057 #ifdef __cplusplus 00058 } 00059 #endif 00060 00061 #endif 00062
1.7.5