summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2018-01-14 13:57:54 -0800
committerOri Bernstein <ori@eigenstate.org>2018-01-14 13:57:54 -0800
commit72958419b4fb70531051e05e2ca56ecccc524b6b (patch)
tree44057d5a8ee4ed777a2296ba462f502cf52a1bfe /parse/gram.y
parente7ebda38777e5251b3479c3fdced4cb108f252e4 (diff)
downloadmc-72958419b4fb70531051e05e2ca56ecccc524b6b.tar.gz
Update language spec for new trait syntax.
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y18
1 files changed, 12 insertions, 6 deletions
diff --git a/parse/gram.y b/parse/gram.y
index f9fa892..5c73295 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -1114,7 +1114,8 @@ label : Tcolon Tident {
%%
-static void setupinit(Node *n)
+static void
+setupinit(Node *n)
{
char name[1024];
char *p, *s;
@@ -1136,7 +1137,8 @@ static void setupinit(Node *n)
n->decl.name->name.name = strdup(s);
}
-static Node *mkpseudodecl(Srcloc l, Type *t)
+static Node *
+mkpseudodecl(Srcloc l, Type *t)
{
static int nextpseudoid;
char buf[128];
@@ -1145,7 +1147,8 @@ static Node *mkpseudodecl(Srcloc l, Type *t)
return mkdecl(l, mkname(l, buf), t);
}
-static void setattrs(Node *dcl, char **attrs, size_t nattrs)
+static void
+setattrs(Node *dcl, char **attrs, size_t nattrs)
{
size_t i;
@@ -1159,7 +1162,8 @@ static void setattrs(Node *dcl, char **attrs, size_t nattrs)
}
}
-static void setwith(Type *ty, Traitspec **ts, size_t nts)
+static void
+setwith(Type *ty, Traitspec **ts, size_t nts)
{
size_t i, j;
@@ -1201,7 +1205,8 @@ static void setwith(Type *ty, Traitspec **ts, size_t nts)
}
}
-static void installucons(Stab *st, Type *t)
+static void
+installucons(Stab *st, Type *t)
{
Type *b;
size_t i;
@@ -1227,7 +1232,8 @@ static void installucons(Stab *st, Type *t)
}
-static Op binop(int tt)
+static Op
+binop(int tt)
{
Op o;