Lines Matching refs:sec
221 section_t *sec = section_find(config, section); in config_set_string() local
222 if (!sec) { in config_set_string()
223 sec = section_new(section); in config_set_string()
225 list_append(config->sections, sec); in config_set_string()
227 list_prepend(config->sections, sec); in config_set_string()
231 …for (const list_node_t *node = list_begin(sec->entries); node != list_end(sec->entries); node = li… in config_set_string()
241 list_append(sec->entries, entry); in config_set_string()
249 section_t *sec = section_find(config, section); in config_remove_section() local
250 if (!sec) { in config_remove_section()
254 return list_remove(config->sections, sec); in config_remove_section()
272 section_t *sec = list_node(node); in config_update_newest_section() local
273 if (strcmp(sec->name, section) == 0) { in config_update_newest_section()
274 list_delete(config->sections, sec); in config_update_newest_section()
275 list_prepend(config->sections, sec); in config_update_newest_section()
290 section_t *sec = section_find(config, section); in config_remove_key() local
292 if (!sec || !entry) { in config_remove_key()
296 ret = list_remove(sec->entries, entry); in config_remove_key()
297 if (list_length(sec->entries) == 0) { in config_remove_key()
692 section_t *sec = list_node(node); in section_find() local
693 if (!strcmp(sec->name, section)) { in section_find()
694 return sec; in section_find()
727 section_t *sec = section_find(config, section); in entry_find() local
728 if (!sec) { in entry_find()
732 …for (const list_node_t *node = list_begin(sec->entries); node != list_end(sec->entries); node = li… in entry_find()