From 1524075828995e14fef035ff5884134997c7479a Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 5 Aug 2024 11:59:45 -0400 Subject: Add handler for space-delimited lists * This needs attention, however. The INI writer has no way to know a list with spaces is a list; this happens in the value conversion functions. * Add type_hint member to INIData structure. At some point support with be added for all INIVAL_TYPE_* defines. Right now it's only used with arrays. * Zero out line buffer in ini_open after each iteration * Do not strip raw INI data. Let the conversion functions handle it * Add spaces to key value pairs in rendered INI output. --- include/ini.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/ini.h') diff --git a/include/ini.h b/include/ini.h index 7167cad..d7cf056 100644 --- a/include/ini.h +++ b/include/ini.h @@ -29,7 +29,7 @@ #define INIVAL_TO_LIST 1 << 1 /*! \union INIVal - * \brief Consolidation possible value types + * \brief Consolidate possible value types */ union INIVal { int as_int; ///< Integer @@ -52,6 +52,7 @@ union INIVal { struct INIData { char *key; ///< INI variable name char *value; ///< INI variable value + unsigned type_hint; }; /*! \struct INISection -- cgit