1 | /* $Id$ $Revision$ */ |
2 | /* vim:set shiftwidth=4 ts=8: */ |
3 | |
4 | /************************************************************************* |
5 | * Copyright (c) 2011 AT&T Intellectual Property |
6 | * All rights reserved. This program and the accompanying materials |
7 | * are made available under the terms of the Eclipse Public License v1.0 |
8 | * which accompanies this distribution, and is available at |
9 | * http://www.eclipse.org/legal/epl-v10.html |
10 | * |
11 | * Contributors: See CVS logs. Details at http://www.graphviz.org/ |
12 | *************************************************************************/ |
13 | |
14 | #ifndef GV_LOGIC_H |
15 | #define GV_LOGIC_H |
16 | |
17 | #ifdef __cplusplus |
18 | extern "C" { |
19 | #endif |
20 | |
21 | #include <stdbool.h> |
22 | |
23 | #ifndef NOT |
24 | #define NOT(v) (!(v)) |
25 | #endif |
26 | |
27 | #ifndef FALSE |
28 | #define FALSE (0) |
29 | #endif |
30 | #ifndef TRUE |
31 | #define TRUE (!FALSE) |
32 | #endif |
33 | |
34 | #ifndef NOTUSED |
35 | #define NOTUSED(var) (void) var |
36 | #endif |
37 | |
38 | #ifndef NULL |
39 | #define NULL (void *)0 |
40 | #endif |
41 | |
42 | #ifndef NIL |
43 | #define NIL(type) ((type)0) |
44 | #endif |
45 | |
46 | #ifdef __cplusplus |
47 | } |
48 | #endif |
49 | |
50 | #endif |
51 | |
52 | |