From 1c65b4c4a73292892c5017e9977c5bb184e892c2 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 8 Aug 2024 12:04:46 -0400 Subject: Finish type hinting implementation * ini_getval_* functions now able to affect rendering mode using INI_READ_RAW and INI_READ_RENDER * Created pointers to deeply nested structures to increase readability * Output from ini_write() is more consistent, with fewer errant spaces and line feeds * Fixes accidental regression in #19. INIVAL_TYPE_STR_ARRAY never produced an array of pointers to char. This needs to be corrected in the future. i.e. It has always generated a new-line delimited string, not a StrList, or array. --- include/ini.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ini.h') diff --git a/include/ini.h b/include/ini.h index 5d301a8..2992a37 100644 --- a/include/ini.h +++ b/include/ini.h @@ -252,7 +252,7 @@ char ini_getval_char(struct INIFILE *ini, char *section_name, char *key, int fla unsigned char ini_getval_uchar(struct INIFILE *ini, char *section_name, char *key, int flags, int *state); char *ini_getval_char_p(struct INIFILE *ini, char *section_name, char *key, int flags, int *state); char *ini_getval_str(struct INIFILE *ini, char *section_name, char *key, int flags, int *state); -char **ini_getval_char_array_p(struct INIFILE *ini, char *section_name, char *key, int flags, int *state); -char **ini_getval_str_array(struct INIFILE *ini, char *section_name, char *key, int flags, int *state); +char *ini_getval_char_array_p(struct INIFILE *ini, char *section_name, char *key, int flags, int *state); +char *ini_getval_str_array(struct INIFILE *ini, char *section_name, char *key, int flags, int *state); struct StrList *ini_getval_strlist(struct INIFILE *ini, char *section_name, char *key, char *tok, int flags, int *state); #endif //STASIS_INI_H -- cgit