diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-08-30 22:44:05 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-08-30 22:44:05 -0700 |
commit | f5e4e0c1816a83c06ff4d57ee1c5272b055a54f4 (patch) | |
tree | d427bcd9c116d2e6c78f7cc7b8874aea06dfb9ff /src/til_settings.c | |
parent | 7e7db8eb8e8f73f04ca3acdfc2078a7122932fd2 (diff) |
til_settings: privatize til_settings_get_and_describe_value()
This function is effectively deprecated, but
til_settings_apply_desc_generators() still makes use of it.
So for now just making it private until I feel like either
refactoring the desc generators to not use it, or maybe just
moving a simpler open-coded form into
til_settings_apply_desc_generators().
Diffstat (limited to 'src/til_settings.c')
-rw-r--r-- | src/til_settings.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/til_settings.c b/src/til_settings.c index fb21af7..068a550 100644 --- a/src/til_settings.c +++ b/src/til_settings.c @@ -376,13 +376,16 @@ int til_settings_get_and_describe_setting(const til_settings_t *settings, const } +/* FIXME TODO: this is deprecated, but kept around just for til_settings_apply_desc_generators() use, + * hence static. + */ /* helper for the common setup case of describing a setting when absent or not yet described. * returns: * -1 on error, res_* will be untouched in this case. * 0 when setting is present and described, res_value and res_setting will be populated w/non-NULL, and res_desc NULL in this case. * 1 when setting is either present but undescribed, or absent (and undescribed), res_* will be populated but res_{value,setting} may be NULL if absent and simply described. */ -int til_settings_get_and_describe_value(const til_settings_t *settings, const til_setting_spec_t *spec, const char **res_value, til_setting_t **res_setting, const til_setting_desc_t **res_desc) +static int til_settings_get_and_describe_value(const til_settings_t *settings, const til_setting_spec_t *spec, const char **res_value, til_setting_t **res_setting, const til_setting_desc_t **res_desc) { til_setting_t *setting; const char *value; |