aboutsummaryrefslogtreecommitdiff
path: root/stmt.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-03-14 11:59:09 -0700
committerMichael Forney <mforney@mforney.org>2019-03-14 12:20:40 -0700
commit6a00f53cd34e33c12a91942015a3dc5dbcb44bf2 (patch)
tree22697da00604707958828d0903d1c0c452dac64f /stmt.c
parent1bc3f5f9bdf956e50cb38046f41bf5f61b49d306 (diff)
Abbreviate tag names
Diffstat (limited to 'stmt.c')
-rw-r--r--stmt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/stmt.c b/stmt.c
index d732c31..262f6a8 100644
--- a/stmt.c
+++ b/stmt.c
@@ -15,7 +15,7 @@
#include "type.h"
static bool
-gotolabel(struct function *f)
+gotolabel(struct func *f)
{
char *name;
struct gotolabel *g;
@@ -33,10 +33,10 @@ gotolabel(struct function *f)
/* 6.8 Statements and blocks */
void
-stmt(struct function *f, struct scope *s)
+stmt(struct func *f, struct scope *s)
{
char *name;
- struct expression *e;
+ struct expr *e;
struct type *t;
struct value *v, *label[4];
struct switchcases swtch = {0};
@@ -54,7 +54,7 @@ stmt(struct function *f, struct scope *s)
funclabel(f, label[0]);
i = intconstexpr(s, true);
switchcase(s->switchcases, i, label[0]);
- expect(TCOLON, "after case expression");
+ expect(TCOLON, "after case expr");
stmt(f, s);
break;
case TDEFAULT: