git @ Cat's Eye Technologies stringie / develop-1.0
Add AUTOFLUSH compile-time option; use in Amiga build (untested). Chris Pressey 3 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
66 ;
77 ; or you can simply type the following commands into the shell:
88 ;
9 dcc src/stringie.c -o bin/stringie
9 dcc -DAUTOFLUSH src/stringie.c -o bin/stringie
11 * stringie.c -- a brain-freezingly pedantic implementation of Underload in C
22 * (with all the limitations that that implies)
33 * 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.
56 * This work is in the public domain.
67 */
78
9697 char *e;
9798 e = pop();
9899 printf("%s", e);
100 #ifdef AUTOFLUSH
101 fflush(stdout);
102 #endif
99103 free(e);
100104 }
101105