formats/ini/m_ini_kvs.c
/*! Ensure that the key exists in the dictionary.
 * \param dict The kv store.
 * \param key The key
 */
Ensure that the key exists in the dictionary.
\param dict The kv store.
\param key The key
Ensure that the key exists in the dictionary . \ param dict The kv store . \ param key The key
static void M_ini_kvs_ensure_key(M_ini_kvs_t *dict, const char *key)
{
	if (!M_ini_kvs_has_key(dict, key)) {
		M_hash_strvp_insert(dict->dict, key, M_list_str_create(M_LIST_STR_CASECMP));
		M_list_str_insert(dict->keys, key);
	}
}
static void M_ini_kvs_ensure_key ( M_ini_kvs_t * dict , const char * key ) { if ( ! M_ini_kvs_has_key ( dict , key ) ) { M_hash_strvp_insert ( dict -> dict , key , M_list_str_create ( M_LIST_STR_CASECMP ) ) ; M_list_str_insert ( dict -> keys , key ) ; } }
Ensure that the key exists in the dictionary.
Ensure that the key exists in the dictionary .