|
|
|
@ -908,7 +908,7 @@ int yon_config_set_ignore(char *key){
|
|
|
|
int yon_config_remove_ignore(char *key){
|
|
|
|
int yon_config_remove_ignore(char *key){
|
|
|
|
dictionary *dict = yon_dictionary_get(&__yon_config_ignored,key);
|
|
|
|
dictionary *dict = yon_dictionary_get(&__yon_config_ignored,key);
|
|
|
|
if (dict) {
|
|
|
|
if (dict) {
|
|
|
|
yon_dictionary_free(yon_dictionary_rip(dict));
|
|
|
|
__yon_config_ignored=yon_dictionary_rip(dict);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ -959,6 +959,11 @@ int yon_config_load_register_no_cleaning(YON_CONFIG_TYPE config_type,char *secti
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
__yon__config__strings->data=final_str;
|
|
|
|
__yon__config__strings->data=final_str;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
yon_config_remove_ignore(key);
|
|
|
|
|
|
|
|
if (config_type==YON_CONFIG_DEFAULT){
|
|
|
|
|
|
|
|
__yon__config__strings->flag1=-2;
|
|
|
|
|
|
|
|
yon_config_set_ignore(key);
|
|
|
|
|
|
|
|
}
|
|
|
|
__yon__config__strings->data_type=DICTIONARY_CHAR_TYPE;
|
|
|
|
__yon__config__strings->data_type=DICTIONARY_CHAR_TYPE;
|
|
|
|
__yon__config__strings->section=dict->key;
|
|
|
|
__yon__config__strings->section=dict->key;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -1008,6 +1013,7 @@ int yon_config_load_register(YON_CONFIG_TYPE config_type,char *section,char *par
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
__yon__config__strings->data=final_str;
|
|
|
|
__yon__config__strings->data=final_str;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
yon_config_remove_ignore(key);
|
|
|
|
if (config_type==YON_CONFIG_DEFAULT){
|
|
|
|
if (config_type==YON_CONFIG_DEFAULT){
|
|
|
|
__yon__config__strings->flag1=-2;
|
|
|
|
__yon__config__strings->flag1=-2;
|
|
|
|
yon_config_set_ignore(key);
|
|
|
|
yon_config_set_ignore(key);
|
|
|
|
@ -1210,7 +1216,7 @@ void yon_config_register(char *key, char *config_section, void *data){
|
|
|
|
__yon__config__strings->data=yon_char_new(data);
|
|
|
|
__yon__config__strings->data=yon_char_new(data);
|
|
|
|
__yon__config__strings->flag1=1;
|
|
|
|
__yon__config__strings->flag1=1;
|
|
|
|
if (yon_dictionary_get(&__yon_config_ignored, __yon__config__strings->key)){
|
|
|
|
if (yon_dictionary_get(&__yon_config_ignored, __yon__config__strings->key)){
|
|
|
|
__yon_config_ignored = yon_dictionary_rip(__yon_config_ignored);
|
|
|
|
yon_dictionary_rip(__yon_config_ignored);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|