We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb4c34b commit f37ea8cCopy full SHA for f37ea8c
platform/platform_unix.c
@@ -83,6 +83,7 @@ char *PlatformReadFile(const char *FileName)
83
char *ReadText;
84
FILE *InFile;
85
int BytesRead;
86
+ char *p;
87
88
if (stat(FileName, &FileInfo))
89
ProgramFail(NULL, "can't read file %s\n", FileName);
@@ -102,6 +103,14 @@ char *PlatformReadFile(const char *FileName)
102
103
ReadText[BytesRead] = '\0';
104
fclose(InFile);
105
106
+ if ((ReadText[0] == '#') && (ReadText[1] == '!'))
107
+ {
108
+ for (*p = ReadText; (*p != '\r') && (*p != '\n'); ++p)
109
110
+ *p = ' ';
111
+ }
112
113
+
114
return ReadText;
115
}
116
0 commit comments