From 9901c8ab10c9a82bbd98b8ddbe155133fed89ff7 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Mon, 8 Jun 2009 10:42:18 -0500 Subject: [PATCH] Make it compilable with a c++ compiler --- include/cloog/ppl_backend.h | 8 ++++---- source/ppl/domain.c | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/cloog/ppl_backend.h b/include/cloog/ppl_backend.h index 6f83f98..72d83bd 100644 --- a/include/cloog/ppl_backend.h +++ b/include/cloog/ppl_backend.h @@ -170,7 +170,7 @@ extern "C" free (vector); } - typedef struct polyhedron + typedef struct polyhedron_s { unsigned Dimension; unsigned NbConstraints; @@ -187,10 +187,10 @@ extern "C" return p->NbConstraints; } - typedef struct polyhedra_union + typedef struct polyhedra_union_s { polyhedron _polyhedron; - struct polyhedra_union *_next; + struct polyhedra_union_s *_next; } *polyhedra_union; extern polyhedra_union cloog_new_upol (polyhedron); @@ -234,7 +234,7 @@ extern "C" typedef struct cloogdomain { - struct polyhedra_union *_union; + struct polyhedra_union_s *_union; int _references; } CloogDomain; diff --git a/source/ppl/domain.c b/source/ppl/domain.c index 929e52a..64dc94f 100644 --- a/source/ppl/domain.c +++ b/source/ppl/domain.c @@ -3525,7 +3525,7 @@ debug_values (Value *p, int length) polyhedra_union cloog_new_upol (polyhedron p) { polyhedra_union ppl = - (polyhedra_union) malloc (sizeof (struct polyhedra_union)); + (polyhedra_union) malloc (sizeof (struct polyhedra_union_s)); ppl->_polyhedron = p; ppl->_next = NULL; return ppl; @@ -3548,7 +3548,7 @@ Vector *Vector_Alloc (unsigned length) polyhedron cloog_new_pol (int dim, int nrows) { int i; - polyhedron res = (polyhedron) malloc (sizeof (struct polyhedron)); + polyhedron res = (polyhedron) malloc (sizeof (struct polyhedron_s)); int ncolumns = dim + 2; int n = nrows * ncolumns; Value *p = (Value *) malloc (n * sizeof (Value)); -- 2.11.4.GIT