Merging from trunk
[ardour.git] / libs / cassowary / cassowary / Cassowary.h
1 // $Id$
2 //
3 // Cassowary Incremental Constraint Solver
4 // Original Smalltalk Implementation by Alan Borning
5 // This C++ Implementation by Greg J. Badros, <gjb@cs.washington.edu>
6 // http://www.cs.washington.edu/homes/gjb
7 // (C) 1998, 1999 Greg J. Badros and Alan Borning
8 // See ../LICENSE for legal details regarding this software
9 //
10 // Cassowary.h
11
12 #ifndef Cassowary_H
13 #define Cassowary_H
14
15 #if defined(HAVE_CONFIG_H) && !defined(CONFIG_H_INCLUDED) && !defined(CONFIG_INLINE_H_INCLUDED)
16         #include <cassowary/config-inline.h>
17         #define CONFIG_INLINE_H_INCLUDED
18 #endif
19
20 #ifndef CL_PTR_HASH_DIVISOR
21         #define CL_PTR_HASH_DIVISOR 4
22 #endif
23
24 #include "ClConstraintHash.h"
25 #include <climits>
26
27 #include <string>
28 #include <cassert>
29 #include <iostream>
30
31 typedef double Number;
32
33 typedef long FDNumber;
34
35 enum { FDN_NOTSET = LONG_MIN };
36
37 #define NEWVAR(x) do { cerr << "line " << __LINE__ << ": new " << x << endl; } while (0)
38 #define DELVAR(x) do { cerr << "line " << __LINE__ << ": del " << x << endl; } while (0)
39
40 #endif // Cassowary_H