pull/74/head
parent 8b3f971ca9
commit 3b8e78386e

@ -481,8 +481,10 @@ config_str yon_char_parsed_new (int *size, ...){
void yon_char_parsed_free(config_str source, int size){
if (source&&size>0){
for (int i=0;i<size;i++){
if (source[i]){
free(source[i]);
}
}
free(source);
}
}

@ -30,7 +30,7 @@ config_str yon_file_open(char *file_path, int *size){
char str_loaded[4098];
config_str final_string = NULL;
while (fgets(str_loaded,4098,file)){
final_string = final_string ? yon_char_parsed_append(final_string,size,str_loaded) : yon_char_parsed_new(size,str_loaded,NULL);
yon_char_parsed_add_or_create_if_exists(final_string,size,str_loaded);
}
fclose(file);
return final_string;

@ -1513,7 +1513,8 @@ enum YON_LOCALE_PARAMETER{
YON_LOCALE_TERRITORY,
YON_LOCALE_LANG_AB,
YON_LOCALE_TITLE,
YON_LOCALE_CODE
YON_LOCALE_CODE,
YON_LOCALE_CODESET
};
typedef struct yon_hash_element{

Loading…
Cancel
Save