Skip to content

Commit

Permalink
Put back warning messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Rangi42 committed Aug 14, 2023
1 parent 86df7be commit 168903c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/scan_includes.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void scan_file(const char *filename, bool strict) {
// Skip comments until the end of the line
ptr = strchr(ptr + 1, '\n');
if (!ptr) {
// No newline at end of file
fprintf(stderr, "%s: no newline at end of file\n", filename);
goto done;
}
break;
Expand All @@ -60,7 +60,7 @@ void scan_file(const char *filename, bool strict) {
if (ptr) {
ptr++;
} else {
// Unterminated string literal at end of file
fprintf(stderr, "%s: unterminated string\n", filename);
goto done;
}
break;
Expand All @@ -81,7 +81,7 @@ void scan_file(const char *filename, bool strict) {
}
ptr = strpbrk(ptr, "\"\n");
if (!ptr) {
// No file path after INCLUDE/INCBIN
fprintf(stderr, "%s: no file path after INC%s\n", filename, is_include ? "LUDE" : "BIN");
goto done;
}
else if (*ptr == '"') {
Expand Down

0 comments on commit 168903c

Please sign in to comment.