Home | History | Annotate | Download | only in src

Lines Matching defs:depth

2225 static int __cil_fill_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *expr, int *depth);
2227 static int __cil_fill_expr_helper(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *expr, int *depth)
2232 if (flavor == CIL_BOOL && *depth > COND_EXPR_MAXDEPTH) {
2233 cil_log(CIL_ERR, "Max depth of %d exceeded for boolean expression\n", COND_EXPR_MAXDEPTH);
2250 (*depth)++;
2254 rc = __cil_fill_expr(current, flavor, expr, depth);
2260 (*depth)--;
2268 static int __cil_fill_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list *expr, int *depth)
2282 rc = __cil_fill_expr_helper(current->cl_head, flavor, sub_expr, depth);
2299 int depth = 0;
2304 rc = __cil_fill_expr(current, flavor, *expr, &depth);
2306 rc = __cil_fill_expr_helper(current->cl_head, flavor, *expr, &depth);
2414 static int __cil_fill_constraint_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **expr, int *depth)
2426 if (*depth > CEXPR_MAXDEPTH) {
2427 cil_log(CIL_ERR, "Max depth of %d exceeded for constraint expression\n", CEXPR_MAXDEPTH);
2445 (*depth)++;
2452 rc = __cil_fill_constraint_expr(current->next->cl_head, flavor, &lexpr, depth);
2461 rc = __cil_fill_constraint_expr(current->next->cl_head, flavor, &lexpr, depth);
2465 rc = __cil_fill_constraint_expr(current->next->next->cl_head, flavor, &rexpr, depth);
2476 (*depth)--;
2487 int depth = 0;
2493 rc = __cil_fill_constraint_expr(current->cl_head, flavor, expr, &depth);