19 #include "dict_group.h"
20 #include "dict_chain.h"
24 dict_chain->count = 0;
25 dict_chain->config = config;
29 void dict_chain_delete(
DictChain* dict_chain) {
31 for (i = 0; i < dict_chain->count; i++) {
32 dict_group_delete(dict_chain->groups[i]);
38 if (dict_chain->count + 1 == DICTIONARY_GROUP_MAX_COUNT) {
41 DictGroup* group = dict_group_new(dict_chain);
42 dict_chain->groups[dict_chain->count++] = group;
47 if (index >= dict_chain->count) {
50 return dict_chain->groups[index];