summaryrefslogtreecommitdiff
path: root/parse
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-03-08 19:59:55 -0700
committerOri Bernstein <ori@eigenstate.org>2015-03-08 19:59:55 -0700
commit131230db88dd460293999628a54e1d3fc2d861bd (patch)
tree38993a1a7e85217b8c3e0d84a12aa28fdc98a750 /parse
parent44c403b682be8f5784b70a17b1f18c47fad55883 (diff)
downloadmc-131230db88dd460293999628a54e1d3fc2d861bd.tar.gz
Add 'tygeneric' specifier.
Diffstat (limited to 'parse')
-rw-r--r--parse/type.c4
-rw-r--r--parse/types.def1
2 files changed, 5 insertions, 0 deletions
diff --git a/parse/type.c b/parse/type.c
index 9550e97..ce15b9b 100644
--- a/parse/type.c
+++ b/parse/type.c
@@ -606,6 +606,8 @@ static int tybfmt(char *buf, size_t len, Type *t)
}
p += snprintf(p, end - p, ")");
break;
+ case Tygeneric:
+ break;
case Tystruct: p += fmtstruct(p, end - p, t); break;
case Tyunion: p += fmtunion(p, end - p, t); break;
case Ntypes:
@@ -827,6 +829,8 @@ size_t tyidfmt(char *buf, size_t sz, Type *ty)
for (i = 0; i < ty->nparam; i++)
p += tyidfmt(p, end - p, ty->param[i]);
break;
+ case Tygeneric:
+ break;
}
return p - buf;
}
diff --git a/parse/types.def b/parse/types.def
index 417c171..a079fbd 100644
--- a/parse/types.def
+++ b/parse/types.def
@@ -44,3 +44,4 @@ Ty(Tyvar, NULL)
Ty(Typaram, NULL)
Ty(Tyunres, NULL) /* unresolved */
Ty(Tyname, NULL)
+Ty(Tygeneric, NULL)