aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-06-18 20:56:21 +1200
committerDavid Phillips <david@sighup.nz>2018-06-18 20:56:21 +1200
commitcd9ad9b08d150535a511cdb91ba6e8139d5b6e81 (patch)
tree7a4b5ed26f739c8de0191192f3da3dfa93372de6
parentf2e3e195c28c4ab5a4605981f8779fa9a1ef6a06 (diff)
downloadsand-leek-cd9ad9b08d150535a511cdb91ba6e8139d5b6e81.tar.xz
Move unit_label struct into header file
-rw-r--r--unit_label.c8
-rw-r--r--unit_label.h5
2 files changed, 4 insertions, 9 deletions
diff --git a/unit_label.c b/unit_label.c
index 22043ee..d163404 100644
--- a/unit_label.c
+++ b/unit_label.c
@@ -1,13 +1,5 @@
#include <unistd.h>
-struct unit_label {
- /* number of times this unit fits into the immediate larger one */
- double count;
-
- /* label for the unit*/
- char *label;
-};
-
double make_unit_whatsit(const struct unit_label l[], char **unit, double value) {
size_t i = 0;
diff --git a/unit_label.h b/unit_label.h
index 7fe1f2b..8f6220c 100644
--- a/unit_label.h
+++ b/unit_label.h
@@ -1,5 +1,8 @@
struct unit_label {
- double lower_bound;
+ /* number of times this unit fits into the immediate larger one */
+ double count;
+
+ /* label for the unit*/
char *label;
};