mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Fix whitespace
Replace spaces by tabs for consistency. The rest of the codebase uses tabs, so the linkerscript parser has to change. Removed trailing tabs in all codebase. Signed-off-by: AntonioND <antonio_nd@outlook.com>
This commit is contained in:
@@ -61,18 +61,18 @@ SLONG
|
||||
readasciiz(char **dest, FILE *f)
|
||||
{
|
||||
size_t r = 0;
|
||||
|
||||
|
||||
size_t bufferLength = 16;
|
||||
char *start = malloc(bufferLength);
|
||||
char *s = start;
|
||||
|
||||
|
||||
if (!s) {
|
||||
err(1, NULL);
|
||||
}
|
||||
|
||||
|
||||
while (((*s++) = fgetc(f)) != 0) {
|
||||
r += 1;
|
||||
|
||||
|
||||
if (r >= bufferLength) {
|
||||
bufferLength *= 2;
|
||||
start = realloc(start, bufferLength);
|
||||
@@ -82,7 +82,7 @@ readasciiz(char **dest, FILE *f)
|
||||
s = start + r;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
*dest = start;
|
||||
return (r + 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user