Lines Matching refs:new_expr
290 constraint_expr_t *new_expr = NULL; in constraint_node_clone() local
302 if ((new_expr = calloc(1, sizeof(*new_expr))) == NULL) { in constraint_node_clone()
305 if (constraint_expr_init(new_expr) == -1) { in constraint_node_clone()
308 new_expr->expr_type = expr->expr_type; in constraint_node_clone()
309 new_expr->attr = expr->attr; in constraint_node_clone()
310 new_expr->op = expr->op; in constraint_node_clone()
311 if (new_expr->expr_type == CEXPR_NAMES) { in constraint_node_clone()
312 if (new_expr->attr & CEXPR_TYPE) { in constraint_node_clone()
319 &new_expr->type_names->types, in constraint_node_clone()
330 &new_expr-> in constraint_node_clone()
334 } else if (new_expr->attr & CEXPR_ROLE) { in constraint_node_clone()
335 if (map_ebitmap(&expr->names, &new_expr->names, state->rolemap)) { in constraint_node_clone()
338 } else if (new_expr->attr & CEXPR_USER) { in constraint_node_clone()
339 if (map_ebitmap(&expr->names, &new_expr->names, state->usermap)) { in constraint_node_clone()
344 if (ebitmap_cpy(&new_expr->names, in constraint_node_clone()
351 expr_l->next = new_expr; in constraint_node_clone()
353 new_con->expr = new_expr; in constraint_node_clone()
355 expr_l = new_expr; in constraint_node_clone()
356 new_expr = NULL; in constraint_node_clone()
372 constraint_expr_destroy(new_expr); in constraint_node_clone()