Skip to content
Snippets Groups Projects
Commit 5258696e authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Code formatting

parent 14c6987f
No related branches found
No related tags found
1 merge request!140First version of main() using a parameter file to get constants.
......@@ -184,8 +184,8 @@ static void parse_line(char *line, struct swift_params *params) {
static void parse_value(char *line, struct swift_params *params) {
static int inSection = 0;
static char
section[PARSER_MAX_LINE_SIZE]; /* Keeps track of current section name. */
static char section[PARSER_MAX_LINE_SIZE]; /* Keeps track of current section
name. */
static int isFirstParam = 1;
char tmpStr[PARSER_MAX_LINE_SIZE];
......@@ -208,7 +208,7 @@ static void parse_value(char *line, struct swift_params *params) {
/* Check that it is a parameter inside a section.*/
if (*line == ' ' || *line == '\t') {
parse_section_param(line, &isFirstParam, section, params);
} else { /*Else it is the start of a new section or standalone parameter. */
} else {/*Else it is the start of a new section or standalone parameter. */
/* Take first token as the parameter name. */
token = strtok(line, " :\t");
strcpy(tmpStr, token);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment