aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/strlist.h8
-rw-r--r--tests/test_strlist.c4
2 files changed, 4 insertions, 8 deletions
diff --git a/include/strlist.h b/include/strlist.h
index f887643..e236473 100644
--- a/include/strlist.h
+++ b/include/strlist.h
@@ -5,20 +5,12 @@
#ifndef SPM_STRLIST_H
#define SPM_STRLIST_H
-#if !defined(MAXFLOAT)
-#include <math.h>
-#endif
-
typedef struct {
size_t num_alloc;
size_t num_inuse;
char **data;
} StrList;
-#define STRLIST_DEFAULT 1 << 0
-#define STRLIST_ASC 1 << 1
-#define STRLIST_DSC 1 << 2
-
StrList *strlist_init();
long double strlist_item_as_long_double(StrList *pStrList, size_t index);
double strlist_item_as_double(StrList *pStrList, size_t index);
diff --git a/tests/test_strlist.c b/tests/test_strlist.c
index a4ea647..fc1ec4b 100644
--- a/tests/test_strlist.c
+++ b/tests/test_strlist.c
@@ -1,6 +1,10 @@
#include "spm.h"
#include "framework.h"
+#if !defined(MAXFLOAT)
+#define MAXFLOAT 3.40282347e+38F
+#endif
+
static const char *story_truth = "The quick brown fox jumps over the lazy dog.";
static const char *story_truth_rev = "dog. jumps over the lazy fox The quick brown";
static const char *story_truth_sort_asc = "fox dog. The quick brown jumps over the lazy";