aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/cc/cc.c
diff options
context:
space:
mode:
authorNicholas Noll <nbnoll@eml.cc>2020-05-19 22:04:05 -0700
committerNicholas Noll <nbnoll@eml.cc>2020-05-19 22:04:05 -0700
commit480611c452e8b4dc18654545e2de4d6dde2d7b4d (patch)
tree272d7dbe89a7ea84f3a1ed9d031653c35175074f /sys/cmd/cc/cc.c
parent74ccc8cc01d365f30a502dd42825de19c05c3743 (diff)
fix: macro expansion works! also fixed issue with iopop
Diffstat (limited to 'sys/cmd/cc/cc.c')
-rw-r--r--sys/cmd/cc/cc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/cmd/cc/cc.c b/sys/cmd/cc/cc.c
index d7bb12c..2a61e89 100644
--- a/sys/cmd/cc/cc.c
+++ b/sys/cmd/cc/cc.c
@@ -155,10 +155,12 @@ freeio(Io *io)
if (io->kind & IOfile) {
io·close(io->f);
}
- io->kind = 0;
- io->link = nil;
- io->path = nil;
- io->store = (Pos){ 0 };
+
+ io->buf.state = 0;
+ io->kind = 0;
+ io->link = nil;
+ io->path = nil;
+ io->store = (Pos){ 0 };
}
void