formats/ini/m_ini_reader.c
/* section_name should be in internal format. */
section_name should be in internal format.
section_name should be in internal format .
static M_bool M_ini_reader_parse_str_handle_section(const char *section_name, const M_ini_settings_t *info, M_ini_t *ini, M_ini_element_t *elem, M_ini_elements_t *section)
{
	const char *name;
	(void)info;
	(void)section;
	name = M_ini_element_section_get_name(elem);
	if (M_ini_section_get(ini, name, NULL)) {
		M_ini_element_destroy(elem);
	} else {
		M_ini_section_insert(ini, name);
		M_ini_element_section_set_name(elem, section_name);
		M_ini_elements_insert(ini->elements, elem);
	}
	return M_FALSE;
}
static M_bool M_ini_reader_parse_str_handle_section ( const char * section_name , const M_ini_settings_t * info , M_ini_t * ini , M_ini_element_t * elem , M_ini_elements_t * section ) { const char * name ; ( void ) info ; ( void ) section ; name = M_ini_element_section_get_name ( elem ) ; if ( M_ini_section_get ( ini , name , NULL ) ) { M_ini_element_destroy ( elem ) ; } else { M_ini_section_insert ( ini , name ) ; M_ini_element_section_set_name ( elem , section_name ) ; M_ini_elements_insert ( ini -> elements , elem ) ; } return M_FALSE ; }
section_name should be in internal format.
section_name should be in internal format .
/* Don't add the section if it already exists. */ /* Change the name to use the internal name. */ /* Already added the section (if necessary) directly to the root list of elements. */