diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-09-01 21:47:25 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2025-09-01 21:47:25 +0100 |
commit | 030a289497db1fcbd22eafb99d7d8827bca94563 (patch) | |
tree | d07e486230092ab10e3b13680c72d21afc4907ca /main.c | |
parent | 1aa01d2a893350d979f1c763f0216ba2dcf501bc (diff) | |
download | alisp-030a289497db1fcbd22eafb99d7d8827bca94563.tar.gz alisp-030a289497db1fcbd22eafb99d7d8827bca94563.tar.bz2 alisp-030a289497db1fcbd22eafb99d7d8827bca94563.zip |
Some changes to how streams work, clean up alisp.orgmaster
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -33,11 +33,11 @@ int main(void) // stream_init_file(&stream, "stdin", stdin); /// test 1 - while (!stream_eoc(&stream)) + do { printf("%s[%lu]: `%c`\n", stream.name, stream.position, stream_next(&stream)); - } + } while (!stream_eoc(&stream)); printf("%lu/%lu\n", stream.position, stream_size(&stream)); /// test 2 @@ -61,7 +61,6 @@ int main(void) c_.size == d_.size && strncmp(c_.data, d_.data, c_.size) == 0 ? "yes" : "no"); - printf("eos?=%s\n", stream_eos(&stream) ? "yes" : "no"); printf("eoc?=%s\n", stream_eoc(&stream) ? "yes" : "no"); stream_stop(&stream); |