From 801a7f6fd4e9da0957426ca01cdd8f649c70f051 Mon Sep 17 00:00:00 2001 From: ellson Date: Fri, 28 Apr 2006 20:33:44 +0000 Subject: [PATCH] Hook up IPSEPCOLA into GNU build process. To enable use "./configure --with-ipsepcola" Changes include minor C++ source changes to work with latest gcc csolve_VPSC.cpp - add "#include " constraint.h - remove classname prefix in declaration of slack() variable.h - remove classname prefix in declaration of position() --- lib/vpsc/block.h | 3 +++ lib/vpsc/blocks.h | 3 +++ lib/vpsc/constraint.h | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/vpsc/block.h b/lib/vpsc/block.h index 52927457c..093abfc27 100644 --- a/lib/vpsc/block.h +++ b/lib/vpsc/block.h @@ -1,3 +1,6 @@ +/* $Id$ $Revision$ */ +/* vim:set shiftwidth=4 ts=8: */ + /** * \brief A block is a group of variables that must be moved together to improve * the goal function without violating already active constraints. diff --git a/lib/vpsc/blocks.h b/lib/vpsc/blocks.h index b23995eeb..4e3a428c3 100644 --- a/lib/vpsc/blocks.h +++ b/lib/vpsc/blocks.h @@ -1,3 +1,6 @@ +/* $Id$ $Revision$ */ +/* vim:set shiftwidth=4 ts=8: */ + /** * \brief A block structure defined over the variables * diff --git a/lib/vpsc/constraint.h b/lib/vpsc/constraint.h index 00c0076de..0f99e5da2 100644 --- a/lib/vpsc/constraint.h +++ b/lib/vpsc/constraint.h @@ -1,3 +1,6 @@ +/* $Id$ $Revision$ */ +/* vim:set shiftwidth=4 ts=8: */ + /** * \brief A constraint determines a minimum or exact spacing required between * two variables. @@ -32,7 +35,7 @@ public: double lm; Constraint(Variable *left, Variable *right, double gap, bool equality=false); ~Constraint(); - inline double Constraint::slack() const { return right->position() - gap - left->position(); } + inline double slack() const { return right->position() - gap - left->position(); } long timeStamp; bool active; bool visited; -- 2.40.0