Lines Matching refs:sec
115 section_t* sec = static_cast<section_t*>(list_node(node));
117 for (const list_node_t* node_entry = list_begin(sec->entries);
118 node_entry != list_end(sec->entries);
122 config_set_string(ret, sec->name, entry->key, entry->value);
215 section_t* sec = section_find(config, section);
216 if (!sec) {
217 sec = section_new(section);
218 list_append(config->sections, sec);
231 for (const list_node_t* node = list_begin(sec->entries);
232 node != list_end(sec->entries); node = list_next(node)) {
242 list_append(sec->entries, entry);
249 section_t* sec = section_find(config, section);
250 if (!sec) return false;
252 return list_remove(config->sections, sec);
260 section_t* sec = section_find(config, section);
262 if (!sec || !entry) return false;
264 return list_remove(sec->entries, entry);
492 section_t* sec = static_cast<section_t*>(list_node(node));
493 if (!strcmp(sec->name, section)) return sec;
518 section_t* sec = section_find(config, section);
519 if (!sec) return NULL;
521 for (const list_node_t* node = list_begin(sec->entries);
522 node != list_end(sec->entries); node = list_next(node)) {