From f5e4e0c1816a83c06ff4d57ee1c5272b055a54f4 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 30 Aug 2023 22:44:05 -0700 Subject: 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(). --- src/til_settings.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/til_settings.c') 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; -- cgit v1.2.1