summaryrefslogtreecommitdiff
path: root/parse/tok.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-02-14 10:50:09 -0800
committerOri Bernstein <ori@markovcorp.com>2017-02-14 10:51:46 -0800
commitc819f3a197d66c0f7c7c49aaffdf045bd4a46123 (patch)
tree5509338390af7dd061d217f6548019abf4d6e73c /parse/tok.c
parent4a30425e39b5126c8950b933ea8df08164125e9b (diff)
downloadmc-c819f3a197d66c0f7c7c49aaffdf045bd4a46123.tar.gz
Remove unused token type.
Diffstat (limited to 'parse/tok.c')
-rw-r--r--parse/tok.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parse/tok.c b/parse/tok.c
index 34bab2f..4723368 100644
--- a/parse/tok.c
+++ b/parse/tok.c
@@ -484,6 +484,7 @@ static Tok *oper(void)
int tt;
char c;
+ tt = 0;
c = next();
switch (c) {
case '{': tt = Tobrace; break;
@@ -616,7 +617,6 @@ static Tok *oper(void)
tt = Tlnot;
break;
default:
- tt = Terror;
lfatal(curloc, "Junk character %c", c);
break;
}
@@ -806,7 +806,7 @@ static Tok *toknext(void)
t = oper();
}
- if (!t || t->type == Terror)
+ if (!t)
lfatal(curloc, "Unable to parse token starting with %c", c);
return t;
}