summaryrefslogtreecommitdiff
path: root/6
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-09-18 02:05:13 -0700
committerOri Bernstein <ori@eigenstate.org>2015-09-18 02:06:35 -0700
commitda45fcd5ccafb05f813c989a379dd6920e517c53 (patch)
tree8119203ca06efebb524c0487fdfa2c2c3f8e207d /6
parent96f7ecd57ed79995544a125e752c9711aeedbcb8 (diff)
downloadmc-da45fcd5ccafb05f813c989a379dd6920e517c53.tar.gz
Remove 'long' type.
It wasn't ever actually used.
Diffstat (limited to '6')
-rw-r--r--6/simp.c12
-rw-r--r--6/typeinfo.c8
2 files changed, 9 insertions, 11 deletions
diff --git a/6/simp.c b/6/simp.c
index 81b0a53..f0a9cd9 100644
--- a/6/simp.c
+++ b/6/simp.c
@@ -562,7 +562,7 @@ static void matchpattern(Simp *s, Node *pat, Node *val, Type *t, Node *iftrue, N
case Tybool: case Tychar: case Tybyte:
case Tyint8: case Tyint16: case Tyint32: case Tyint:
case Tyuint8: case Tyuint16: case Tyuint32: case Tyuint:
- case Tyint64: case Tyuint64: case Tylong: case Tyulong:
+ case Tyint64: case Tyuint64:
case Tyflt32: case Tyflt64:
case Typtr: case Tyfunc:
v = mkexpr(pat->loc, Oeq, pat, val, NULL);
@@ -904,8 +904,7 @@ static Node *simpcast(Simp *s, Node *val, Type *to)
case Tybool:
case Tyint8: case Tyint16: case Tyint32: case Tyint64:
case Tyuint8: case Tyuint16: case Tyuint32: case Tyuint64:
- case Tyint: case Tyuint: case Tylong: case Tyulong:
- case Tychar: case Tybyte:
+ case Tyint: case Tyuint: case Tychar: case Tybyte:
case Typtr:
t = tybase(exprtype(val));
switch (t->type) {
@@ -918,13 +917,13 @@ static Node *simpcast(Simp *s, Node *val, Type *to)
break;
/* signed conversions */
case Tyint8: case Tyint16: case Tyint32: case Tyint64:
- case Tyint: case Tylong:
+ case Tyint:
r = intconvert(s, val, to, 1);
break;
/* unsigned conversions */
case Tybool:
case Tyuint8: case Tyuint16: case Tyuint32: case Tyuint64:
- case Tyuint: case Tyulong: case Tychar: case Tybyte:
+ case Tyuint: case Tychar: case Tybyte:
case Typtr:
case Tyfunc:
r = intconvert(s, val, to, 0);
@@ -946,8 +945,7 @@ static Node *simpcast(Simp *s, Node *val, Type *to)
switch (t->type) {
case Tyint8: case Tyint16: case Tyint32: case Tyint64:
case Tyuint8: case Tyuint16: case Tyuint32: case Tyuint64:
- case Tyint: case Tyuint: case Tylong: case Tyulong:
- case Tychar: case Tybyte:
+ case Tyint: case Tyuint: case Tychar: case Tybyte:
r = mkexpr(val->loc, Oint2flt, rval(s, val, NULL), NULL);
r->expr.type = to;
break;
diff --git a/6/typeinfo.c b/6/typeinfo.c
index f6e6219..8af84bf 100644
--- a/6/typeinfo.c
+++ b/6/typeinfo.c
@@ -125,8 +125,8 @@ Blob *tydescsub(Type *ty)
/* atomic types -- nothing else to do */
case Tyvoid: case Tychar: case Tybool: case Tyint8:
case Tyint16: case Tyint: case Tyint32: case Tyint64:
- case Tylong: case Tybyte: case Tyuint8: case Tyuint16:
- case Tyuint: case Tyuint32: case Tyuint64: case Tyulong:
+ case Tybyte: case Tyuint8: case Tyuint16:
+ case Tyuint: case Tyuint32: case Tyuint64:
case Tyflt32: case Tyflt64: case Tyvalist:
break;
@@ -250,8 +250,8 @@ size_t tysize(Type *t)
case Tyvalist: /* ptr to first element of valist */
return Ptrsz;
- case Tyint64: case Tylong:
- case Tyuint64: case Tyulong:
+ case Tyint64:
+ case Tyuint64:
return 8;
/*end integer types*/