summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-06-06 13:51:02 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-06-06 13:51:02 -0400
commita4a50055dc52c86cab350561d2cb62a284b5ece5 (patch)
treec119c5c52b0296b7b4cdb902099cb0b8ca9925b6 /config.h
parenta27bd3293a00e2a00fedfda5bffedb03a87f591b (diff)
Moved `TYPE_NONE` to the start of `config_type`, and
added `TYPE_COUNT` at the end of `config_type`. This is to allow for any iterators that need to count upto the total number of types to just to count up to `TYPE_COUNT`.
Diffstat (limited to 'config.h')
-rw-r--r--config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.h b/config.h
index 244077b..9835033 100644
--- a/config.h
+++ b/config.h
@@ -7,11 +7,12 @@ typedef enum config_type config_type;
typedef void (*config_func)(config_opt *, config_val);
enum config_type {
+ TYPE_NONE,
TYPE_INT,
TYPE_STRING,
TYPE_FLOAT,
TYPE_BOOL,
- TYPE_NONE,
+ TYPE_COUNT,
};
struct config_opt {