|
|
|
@ -689,6 +689,7 @@ int yon_config_remove_elements(char *key, char *delete_target, char *divider){
|
|
|
|
if (!yon_char_is_empty(temp)){
|
|
|
|
if (!yon_char_is_empty(temp)){
|
|
|
|
if (!yon_char_is_empty((char*)dict->data)) free(dict->data);
|
|
|
|
if (!yon_char_is_empty((char*)dict->data)) free(dict->data);
|
|
|
|
dict->data = temp;
|
|
|
|
dict->data = temp;
|
|
|
|
|
|
|
|
yon_config_set_status(key,1);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
dict->data = NULL;
|
|
|
|
dict->data = NULL;
|
|
|
|
yon_config_set_status(key,-1);
|
|
|
|
yon_config_set_status(key,-1);
|
|
|
|
@ -1098,6 +1099,7 @@ enum YON_CONFIG_SAVED_TYPE yon_config_register_default(char *key,char *config_lo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
config_str yon_config_load(char *command, int *str_len){
|
|
|
|
config_str yon_config_load(char *command, int *str_len){
|
|
|
|
|
|
|
|
(*str_len) = 0;
|
|
|
|
FILE *output = popen(command, "r");
|
|
|
|
FILE *output = popen(command, "r");
|
|
|
|
char **output_strings = NULL;
|
|
|
|
char **output_strings = NULL;
|
|
|
|
output_strings = malloc(sizeof(char));
|
|
|
|
output_strings = malloc(sizeof(char));
|
|
|
|
|