Add AUTOFLUSH compile-time option; use in Amiga build (untested).
Chris Pressey
4 years ago
6 | 6 |
;
|
7 | 7 |
; or you can simply type the following commands into the shell:
|
8 | 8 |
;
|
9 | |
dcc src/stringie.c -o bin/stringie
|
|
9 |
dcc -DAUTOFLUSH src/stringie.c -o bin/stringie
|
1 | 1 |
* stringie.c -- a brain-freezingly pedantic implementation of Underload in C
|
2 | 2 |
* (with all the limitations that that implies)
|
3 | 3 |
* Chris Pressey, September 2010
|
4 | |
* Bug fix, August 2017: avoid memory overrun in (). Thanks to @stasoid for finding and suggesting fix.
|
|
4 |
* August 2017: bug fix to avoid memory overrun in (). Thanks to @stasoid for finding and suggesting fix.
|
|
5 |
* Summer 2018: own implementation of strdup to avoid warnings; ability to read from file; AUTOFLUSH; 1.0.
|
5 | 6 |
* This work is in the public domain.
|
6 | 7 |
*/
|
7 | 8 |
|
|
96 | 97 |
char *e;
|
97 | 98 |
e = pop();
|
98 | 99 |
printf("%s", e);
|
|
100 |
#ifdef AUTOFLUSH
|
|
101 |
fflush(stdout);
|
|
102 |
#endif
|
99 | 103 |
free(e);
|
100 | 104 |
}
|
101 | 105 |
|