Fix parameter file parsing for duplicate names
Compare changes
+ 82
− 16
@@ -47,7 +47,10 @@ static void parse_line(char *line, struct swift_params *params);
@@ -65,7 +68,8 @@ void parser_read_file(const char *file_name, struct swift_params *params) {
@@ -143,11 +147,47 @@ static int is_empty(const char *str) {
@@ -193,6 +233,7 @@ static void parse_value(char *line, struct swift_params *params) {
@@ -223,15 +264,36 @@ static void parse_value(char *line, struct swift_params *params) {
@@ -278,8 +340,12 @@ static void parse_section_param(char *line, int *isFirstParam,
@@ -294,7 +360,7 @@ int parser_get_param_int(const struct swift_params *params, const char *name) {
@@ -326,7 +392,7 @@ char parser_get_param_char(const struct swift_params *params,
@@ -358,7 +424,7 @@ float parser_get_param_float(const struct swift_params *params,
@@ -390,7 +456,7 @@ double parser_get_param_double(const struct swift_params *params,
@@ -417,7 +483,7 @@ double parser_get_param_double(const struct swift_params *params,
@@ -438,7 +504,7 @@ void parser_print_params(const struct swift_params *params) {
@@ -461,7 +527,7 @@ void parser_write_params_to_file(const struct swift_params *params,
@@ -478,7 +544,7 @@ void parser_write_params_to_file(const struct swift_params *params,