Get rid of unlocked_stdio functions

Those did not provide a significant speedup, and are not provided by mingw
This commit is contained in:
ISSOtm
2019-11-23 23:00:44 +01:00
parent ceae4a44f3
commit 68410d35d3
2 changed files with 5 additions and 8 deletions

View File

@@ -150,9 +150,8 @@ static void writeBank(struct SortedSection *bankSections, uint16_t baseOffset,
/* Output padding up to the next SECTION */
while (offset + baseOffset < section->org) {
putc_unlocked(overlayFile ? getc_unlocked(overlayFile)
: padValue,
outputFile);
putc(overlayFile ? getc(overlayFile) : padValue,
outputFile);
offset++;
}
@@ -162,7 +161,7 @@ static void writeBank(struct SortedSection *bankSections, uint16_t baseOffset,
if (overlayFile) {
/* Skip bytes even with pipes */
for (uint16_t i = 0; i < section->size; i++)
getc_unlocked(overlayFile);
getc(overlayFile);
}
offset += section->size;
@@ -170,9 +169,7 @@ static void writeBank(struct SortedSection *bankSections, uint16_t baseOffset,
}
while (offset < size) {
putc_unlocked(overlayFile ? getc_unlocked(overlayFile)
: padValue,
outputFile);
putc(overlayFile ? getc(overlayFile) : padValue, outputFile);
offset++;
}
}