Exemplo n.º 1
0
int main(int argc, char **argv)
{
    struct mystruct ms;

    ms = retstruct();

    passstruct(ms);

    printf("%d %d %d\n", ms.e1, ms.e2, ms.e3);
}
Exemplo n.º 2
0
/*
 * Called with a function call with arguments as argument.
 * This is done early in buildtree() and only done once.
 */
NODE *
funcode(NODE *p)
{
	int reg = R0;

	if (p->n_type == STRTY+FTN || p->n_type == UNIONTY+FTN) {
		p = retstruct(p);
		reg = R1;
	}

	p->n_right = moveargs(p->n_right, &reg);

	if (p->n_right == NULL)
		p->n_op += (UCALL - CALL);

	return p;
}