From cd9ad9b08d150535a511cdb91ba6e8139d5b6e81 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Mon, 18 Jun 2018 20:56:21 +1200 Subject: Move unit_label struct into header file --- unit_label.c | 8 -------- unit_label.h | 5 ++++- 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 -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; }; -- cgit v1.1