From b045dacdf25dbd8d66ac5be26acca1c6827d2151 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Mon, 9 Jun 2008 13:22:07 -0500 Subject: [PATCH] never use ->references, make functions accessing it static to domain.c --- include/cloog/domain.h | 12 +----------- source/polylib/domain.c | 9 +++++++++ 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/include/cloog/domain.h b/include/cloog/domain.h index 6e51fba..dd799a2 100644 --- a/include/cloog/domain.h +++ b/include/cloog/domain.h @@ -72,7 +72,7 @@ extern "C" */ struct cloogdomain { Polyhedron * polyhedron ; /**< The polyhedral domain. */ - int references ; /**< Number of references to this structure. */ + int _references ; /**< Number of references to this structure. */ } ; typedef struct cloogdomain CloogDomain ; @@ -118,16 +118,6 @@ static inline Polyhedron * cloog_domain_polyhedron_set (CloogDomain *d, return d->polyhedron = p ; } -static inline int cloog_domain_references (CloogDomain *d) -{ - return d->references; -} - -static inline void cloog_domain_set_references (CloogDomain *d, int i) -{ - d->references = i; -} - static inline Polyhedron * cloog_polyhedron_next (Polyhedron *p) { return p->next ; diff --git a/source/polylib/domain.c b/source/polylib/domain.c index 9913489..149ecae 100644 --- a/source/polylib/domain.c +++ b/source/polylib/domain.c @@ -151,6 +151,15 @@ static CloogMatrix * cloog_domain_domain2matrix(CloogDomain * domain) return cloog_matrix_matrix(Polyhedron2Constraints(cloog_domain_polyhedron (domain))); } +static inline int cloog_domain_references (CloogDomain *d) +{ + return d->_references; +} + +static inline void cloog_domain_set_references (CloogDomain *d, int i) +{ + d->_references = i; +} /** * cloog_domain_print function: -- 2.11.4.GIT