aboutsummaryrefslogtreecommitdiff
path: root/src/mtx_qhull/list.h
diff options
context:
space:
mode:
authorFranz Zotter <fzotter@users.sourceforge.net>2012-08-25 22:51:30 +0000
committerFranz Zotter <fzotter@users.sourceforge.net>2012-08-25 22:51:30 +0000
commit04be907cbba161af7eda231f8a6a1856fc3a6042 (patch)
treec66978c79165fb745297856da9f50b51db6d56b9 /src/mtx_qhull/list.h
parent547a9740506d30ddd2f0dc3fe70b436423bc7a43 (diff)
improved deterministic behavior of [mtx_qhull], however planar polygons
do not fully work yet. svn path=/trunk/externals/iem/iemmatrix/; revision=16172
Diffstat (limited to 'src/mtx_qhull/list.h')
-rw-r--r--src/mtx_qhull/list.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mtx_qhull/list.h b/src/mtx_qhull/list.h
index dfccede..1a98256 100644
--- a/src/mtx_qhull/list.h
+++ b/src/mtx_qhull/list.h
@@ -1,16 +1,18 @@
#ifndef QHULL_LIST_H
#define QHULL_LIST_H
+#include <stdio.h>
+#include <stdlib.h>
#include <sys/types.h>
typedef long int entry_t;
typedef long int index_t;
-
typedef struct list_ {
entry_t *entries;
size_t length;
} list_t;
+
// memory things:
list_t emptyList(void);
void freeList(list_t *list);
@@ -38,6 +40,7 @@ int inList(const entry_t entry, const list_t list);
int notInList(const entry_t entry, const list_t list);
list_t findValueListInList(const list_t value_list, const list_t list);
entry_t findValueInList(const entry_t entry, const list_t list);
+void uniquefyListEntries(list_t *list);
void printList(const list_t list);
#endif /* QHULL_LIST_H */