Skip to content

Commit

Permalink
Braces
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 authored Aug 14, 2023
1 parent d18a000 commit 370fcfd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/scan_includes.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,10 @@ void scan_file(const char *filename, bool strict) {
}
} else {
fprintf(stderr, "%s: no file path after INC%s\n", filename, is_include ? "LUDE" : "BIN");
// Let comments be handled by their switch case
if (*ptr == ';')
// Continue to process a comment
if (*ptr == ';') {
ptr--;
}
}
}
break;
Expand Down

0 comments on commit 370fcfd

Please sign in to comment.