summaryrefslogtreecommitdiff
path: root/parse/types.def
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-07-31 00:36:23 -0400
committerOri Bernstein <ori@eigenstate.org>2012-07-31 00:36:23 -0400
commitdc27d590d3a3f1ee4ec055c50c7829303ac72af9 (patch)
tree4b3d79467b2cec37d911d027911184bbce74f599 /parse/types.def
parent03ac35586687e146835216f8339dbe31ead84d98 (diff)
downloadmc-dc27d590d3a3f1ee4ec055c50c7829303ac72af9.tar.gz
Make struct returns work.
Diffstat (limited to 'parse/types.def')
-rw-r--r--parse/types.def12
1 files changed, 8 insertions, 4 deletions
diff --git a/parse/types.def b/parse/types.def
index e32746a..b702a33 100644
--- a/parse/types.def
+++ b/parse/types.def
@@ -27,16 +27,20 @@ Ty(Tyfloat32, "float32")
Ty(Tyfloat64, "float64")
Ty(Tyvalist, NULL)
-/*end atomic types*/
+/* end atomic types */
Ty(Typtr, NULL)
+Ty(Tyfunc, NULL)
+
+/* these types live on the stack */
Ty(Tyslice, NULL)
Ty(Tyarray, NULL)
-Ty(Tyfunc, NULL)
Ty(Tytuple, NULL)
+Ty(Tystruct, NULL)
+Ty(Tyunion, NULL)
+
+/* these have no memory repr */
Ty(Tyvar, NULL)
Ty(Typaram, NULL)
Ty(Tyname, NULL)
-Ty(Tystruct, NULL)
-Ty(Tyunion, NULL)
Ty(Tyalias, NULL)
Ty(Ntypes, NULL)