From a4a50055dc52c86cab350561d2cb62a284b5ece5 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Sun, 6 Jun 2021 13:51:02 -0400 Subject: 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`. --- config.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- cgit v1.2.3-13-gbd6f