aboutsummaryrefslogtreecommitdiff
path: root/sys/cmd/cc/cc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/cmd/cc/cc.c')
-rw-r--r--sys/cmd/cc/cc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cmd/cc/cc.c b/sys/cmd/cc/cc.c
index 24bc9e0..da4c4ed 100644
--- a/sys/cmd/cc/cc.c
+++ b/sys/cmd/cc/cc.c
@@ -94,6 +94,7 @@ END:
// -----------------------------------------------------------------------
// type interning
+/* TODO: intern types for memory savings */
int
type()
{
@@ -263,6 +264,8 @@ initlx(Lexer *lx)
lx->new = lx->iostk;
lx->new->link = nil;
memset(lx->iostk, 0, sizeof(lx->iostk));
+
+ lx->sym = (SymTab){ 0 };
}
void