summaryrefslogtreecommitdiff
path: root/6/asm.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-01-25 14:35:28 -0800
committerOri Bernstein <ori@eigenstate.org>2015-01-25 14:35:28 -0800
commit063b2a4e134589a8a1d635708eb0eb39d5a76bfb (patch)
tree75bb6fc8c0393f624fe76c5edd5377fc867378ba /6/asm.h
parentbd0724eccecfb0ea9651cf8d5b5f8d6bfaca6e4c (diff)
downloadmc-063b2a4e134589a8a1d635708eb0eb39d5a76bfb.tar.gz
Clear structs.
When creating stack structs, clear them. TODO: only clear uninitialized values.
Diffstat (limited to '6/asm.h')
-rw-r--r--6/asm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/6/asm.h b/6/asm.h
index c228a04..50fe20a 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -241,8 +241,8 @@ Rclass rclass(Loc *l);
/* useful functions */
size_t tysize(Type *t);
size_t size(Node *n);
-size_t tyoffset(Type *ty, Node *memb);
-size_t offset(Node *aggr, Node *memb);
+ssize_t tyoffset(Type *ty, Node *memb);
+ssize_t offset(Node *aggr, Node *memb);
int stacktype(Type *t);
int floattype(Type *t);
int stacknode(Node *n);