Fix parser
Compare changes
+ 54
− 14
@@ -258,6 +258,7 @@ void parser_set_param(struct swift_params *params, const char *namevalue) {
@@ -451,6 +452,7 @@ static void parse_value(char *line, struct swift_params *params) {
@@ -511,6 +513,7 @@ static void parse_section_param(char *line, int *isFirstParam,
@@ -523,7 +526,7 @@ static void parse_section_param(char *line, int *isFirstParam,
@@ -534,12 +537,20 @@ static void parse_section_param(char *line, int *isFirstParam,
@@ -553,6 +564,7 @@ static void parse_section_param(char *line, int *isFirstParam,
@@ -575,7 +587,7 @@ PARSER_SAVE_VALUE(string, const char *, "%s");
@@ -588,7 +600,7 @@ int parser_get_param_int(struct swift_params *params, const char *name) {
@@ -601,7 +613,7 @@ char parser_get_param_char(struct swift_params *params, const char *name) {
@@ -614,7 +626,7 @@ float parser_get_param_float(struct swift_params *params, const char *name) {
@@ -630,6 +642,9 @@ void parser_get_param_string(struct swift_params *params, const char *name,
@@ -651,8 +666,9 @@ void parser_get_param_string(struct swift_params *params, const char *name,
@@ -667,8 +683,9 @@ int parser_get_opt_param_int(struct swift_params *params, const char *name,
@@ -683,8 +700,9 @@ char parser_get_opt_param_char(struct swift_params *params, const char *name,
@@ -699,8 +717,9 @@ float parser_get_opt_param_float(struct swift_params *params, const char *name,
@@ -719,12 +738,18 @@ void parser_get_opt_param_string(struct swift_params *params, const char *name,
@@ -743,6 +768,9 @@ void parser_get_opt_param_string(struct swift_params *params, const char *name,
@@ -761,13 +789,19 @@ void parser_get_opt_param_string(struct swift_params *params, const char *name,
@@ -798,6 +832,7 @@ void parser_get_opt_param_string(struct swift_params *params, const char *name,
@@ -839,6 +874,7 @@ int parser_get_opt_param_char_array(struct swift_params *params,
@@ -872,6 +908,7 @@ int parser_get_opt_param_int_array(struct swift_params *params,
@@ -906,6 +943,7 @@ int parser_get_opt_param_float_array(struct swift_params *params,
@@ -940,6 +978,7 @@ int parser_get_opt_param_double_array(struct swift_params *params,
@@ -1041,6 +1080,8 @@ int parser_get_opt_param_string_array(struct swift_params *params,
@@ -1052,7 +1093,6 @@ int parser_get_opt_param_string_array(struct swift_params *params,