|
|
|
@ -781,7 +781,7 @@ void *yon_config_get_by_key(char *key){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
char *yon_config_default_get_by_key(char *key){
|
|
|
|
char *yon_config_default_get_by_key(char *key){
|
|
|
|
check_config{
|
|
|
|
check_default_config{
|
|
|
|
dictionary *dict = NULL;
|
|
|
|
dictionary *dict = NULL;
|
|
|
|
for_dictionaries(dict, (dictionary*)__yon__config__default__strings){
|
|
|
|
for_dictionaries(dict, (dictionary*)__yon__config__default__strings){
|
|
|
|
if (strcmp(dict->key,key)==0&&((yon_config_parameter*)dict)->flag1!=-1){
|
|
|
|
if (strcmp(dict->key,key)==0&&((yon_config_parameter*)dict)->flag1!=-1){
|
|
|
|
@ -971,11 +971,13 @@ int yon_config_clean(){
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int yon_config_default_remove(char *key){
|
|
|
|
int yon_config_default_remove(char *key){
|
|
|
|
|
|
|
|
check_default_config{
|
|
|
|
yon_config_parameter *default_parameter = (yon_config_parameter*)yon_dictionary_get((dictionary**)&__yon__config__default__strings,key);
|
|
|
|
yon_config_parameter *default_parameter = (yon_config_parameter*)yon_dictionary_get((dictionary**)&__yon__config__default__strings,key);
|
|
|
|
if (default_parameter){
|
|
|
|
if (default_parameter){
|
|
|
|
__yon__config__default__strings = (yon_config_parameter*)yon_dictionary_rip((dictionary*)default_parameter);
|
|
|
|
__yon__config__default__strings = (yon_config_parameter*)yon_dictionary_rip((dictionary*)default_parameter);
|
|
|
|
return 1;
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|