Lines Matching refs:expr

1373 	struct cil_list_item *expr = NULL;
1384 expr = attr->expr_list->head;
1385 while (expr != NULL) {
1386 next = expr->next;
1387 cil_list_item_destroy(&expr, CIL_FALSE);
1388 expr = next;
2012 struct cil_list_item *expr = attr->expr_list->head;
2013 while (expr != NULL) {
2014 struct cil_list_item *next = expr->next;
2015 cil_list_item_destroy(&expr, CIL_FALSE);
2016 expr = next;
2451 struct cil_list_item *expr = attr->expr_list->head;
2452 while (expr != NULL) {
2453 struct cil_list_item *next = expr->next;
2454 cil_list_item_destroy(&expr, CIL_FALSE);
2455 expr = next;
2603 static int __cil_fill_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *expr);
2605 static int __cil_fill_expr_helper(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *expr)
2618 cil_list_append(expr, CIL_OP, (void *)op);
2623 rc = __cil_fill_expr(current, flavor, expr);
2635 static int __cil_fill_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *expr)
2645 cil_list_append(expr, CIL_STRING, current->data);
2654 cil_list_append(expr, CIL_LIST, sub_expr);
2664 int cil_gen_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **expr)
2668 cil_list_init(expr, flavor);
2671 rc = __cil_fill_expr(current, flavor, *expr);
2673 rc = __cil_fill_expr_helper(current->cl_head, flavor, *expr);
2677 cil_list_destroy(expr, CIL_TRUE);
2785 static int __cil_fill_constraint_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **expr)
2810 rc = __cil_fill_constraint_leaf_expr(current, flavor, op, expr);
2820 cil_list_init(expr, flavor);
2821 cil_list_append(*expr, CIL_OP, (void *)op);
2822 cil_list_append(*expr, CIL_LIST, lexpr);
2834 cil_list_init(expr, flavor);
2835 cil_list_append(*expr, CIL_OP, (void *)op);
2836 cil_list_append(*expr, CIL_LIST, lexpr);
2837 cil_list_append(*expr, CIL_LIST, rexpr);
2847 static int cil_gen_constraint_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **expr)
2855 rc = __cil_fill_constraint_expr(current->cl_head, flavor, expr);
2904 /* Destroying expr tree */
2971 /* Destroying expr tree */