Commit 1850b29d authored by Russ Cox's avatar Russ Cox

struct annotations in imports.

distribute tag across multiple names.

R=ken
OCL=18178
CL=18178
parent f27aaf48
......@@ -1892,10 +1892,11 @@ hidden_dcl:
}
hidden_structdcl:
sym1 hidden_type
sym1 hidden_type oliteral
{
$$ = nod(ODCLFIELD, newname($1), N);
$$->type = $2;
$$->val = $3;
}
| '?' hidden_type
{
......
......@@ -2192,8 +2192,10 @@ cleanidlist(Node *na)
if(last->type == T)
fatal("cleanidlist: no type");
for(n=na; n->op == OLIST; n=n->right)
for(n=na; n->op == OLIST; n=n->right) {
n->left->type = last->type;
n->left->val = last->val;
}
return na;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment