|
@ -207,6 +207,12 @@ int main(int argc, char* argv[]) |
|
|
int length = 0; |
|
|
int length = 0; |
|
|
char *buffer = LoadFileText(inFileName, &length); |
|
|
char *buffer = LoadFileText(inFileName, &length); |
|
|
|
|
|
|
|
|
|
|
|
if (buffer == NULL) |
|
|
|
|
|
{ |
|
|
|
|
|
printf("Could not read input file: %s\n", inFileName); |
|
|
|
|
|
return 1; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// Preprocess buffer to get separate lines |
|
|
// Preprocess buffer to get separate lines |
|
|
// NOTE: GetTextLines() also removes leading spaces/tabs |
|
|
// NOTE: GetTextLines() also removes leading spaces/tabs |
|
|
int linesCount = 0; |
|
|
int linesCount = 0; |
|
|