int main(int argc, char **argv) { struct mystruct ms; ms = retstruct(); passstruct(ms); printf("%d %d %d\n", ms.e1, ms.e2, ms.e3); }
/* * 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, ®); if (p->n_right == NULL) p->n_op += (UCALL - CALL); return p; }