Lines Matching refs:org
67 struct expr *expr_copy(const struct expr *org) in expr_copy() argument
71 if (!org) in expr_copy()
74 e = malloc(sizeof(*org)); in expr_copy()
75 memcpy(e, org, sizeof(*org)); in expr_copy()
76 switch (org->type) { in expr_copy()
78 e->left = org->left; in expr_copy()
81 e->left.expr = expr_copy(org->left.expr); in expr_copy()
85 e->left.sym = org->left.sym; in expr_copy()
86 e->right.sym = org->right.sym; in expr_copy()
91 e->left.expr = expr_copy(org->left.expr); in expr_copy()
92 e->right.expr = expr_copy(org->right.expr); in expr_copy()