mirror of
https://github.com/sigmasternchen/macrofuck
synced 2025-03-15 07:08:56 +00:00
fix(bf): set stdout unbuffered + formating
This commit is contained in:
parent
5346b91cc2
commit
3021ff6f4a
1 changed files with 4 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
char band[BAND_LENGTH];
|
char band[BAND_LENGTH];
|
||||||
long long position = 0; // signed
|
long long position = 0; // signed
|
||||||
|
|
||||||
void init_band() {
|
void init_band(void) {
|
||||||
memset(band, 0, BAND_LENGTH);
|
memset(band, 0, BAND_LENGTH);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -153,6 +153,8 @@ int main(int argc, char** argv) {
|
||||||
input = fopen(argv[1], "r");
|
input = fopen(argv[1], "r");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setvbuf(stdout, NULL, _IONBF, 0);
|
||||||
|
|
||||||
init_band();
|
init_band();
|
||||||
|
|
||||||
char* program = read_to_string(input);
|
char* program = read_to_string(input);
|
||||||
|
@ -165,4 +167,4 @@ int main(int argc, char** argv) {
|
||||||
free(program);
|
free(program);
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue