Lines Matching refs:stack_top
49 static scope_stack_t *stack_top = NULL; variable
93 while (stack_top != NULL) { in define_policy()
111 if (stack_top->type != 1 || stack_top->in_else) { in is_declaration_allowed()
130 avrule_decl_t *decl = stack_top->decl; in declare_symbol()
239 assert(stack_top->type == 1); in declare_role()
240 if (stack_top->parent == NULL) { in declare_role()
244 roles_tab = stack_top->decl->p_roles.table; in declare_role()
444 assert(stack_top->type == 1); in declare_user()
445 if (stack_top->parent == NULL) { in declare_user()
449 users_tab = stack_top->decl->p_users.table; in declare_user()
518 assert(stack_top->type == 1); in get_local_type()
519 if (stack_top->parent == NULL) { in get_local_type()
523 types_tab = stack_top->decl->p_types.table; in get_local_type()
565 assert(stack_top->type == 1); in get_local_role()
567 if (stack_top->parent == NULL) { in get_local_role()
571 roles_tab = stack_top->decl->p_roles.table; in get_local_role()
607 if (stack_top->type == 1 && !stack_top->in_else) { in is_require_allowed()
625 avrule_decl_t *decl = stack_top->decl; in require_symbol()
672 stack_top->require_given = 1; in require_symbol()
690 stack_top->require_given = 1; in require_symbol()
696 avrule_decl_t *decl = stack_top->decl; in add_perm_to_class()
1255 return is_scope_in_stack(scope, stack_top); in is_id_in_scope()
1309 stack_top); in is_perm_in_scope()
1316 avrule_decl_t *decl = stack_top->decl; in get_current_cond_list()
1349 avrule_decl_t *decl = stack_top->decl; in append_avrule()
1356 assert(stack_top->type == 1); in append_avrule()
1358 if (stack_top->last_avrule == NULL) { in append_avrule()
1361 stack_top->last_avrule->next = avrule; in append_avrule()
1363 stack_top->last_avrule = avrule; in append_avrule()
1369 avrule_decl_t *decl = stack_top->decl; in append_role_trans()
1372 assert(stack_top->type == 1); in append_role_trans()
1381 avrule_decl_t *decl = stack_top->decl; in append_role_allow()
1384 assert(stack_top->type == 1); in append_role_allow()
1393 avrule_decl_t *decl = stack_top->decl; in append_filename_trans()
1396 assert(stack_top->type == 1); in append_filename_trans()
1405 avrule_decl_t *decl = stack_top->decl; in append_range_trans()
1408 assert(stack_top->type == 1); in append_range_trans()
1438 stack_top->last_avrule = NULL; in begin_optional()
1458 assert(stack_top->type == 1 && stack_top->in_else == 0); in begin_optional_else()
1466 stack_top->decl->next = decl; in begin_optional_else()
1470 decl = stack_top->decl->next; in begin_optional_else()
1474 stack_top->in_else = 1; in begin_optional_else()
1475 stack_top->decl = decl; in begin_optional_else()
1476 stack_top->last_avrule = NULL; in begin_optional_else()
1477 stack_top->require_given = 0; in begin_optional_else()
1536 avrule_decl_t *decl = stack_top->decl; in end_avrule_block()
1537 assert(stack_top->type == 1); in end_avrule_block()
1541 if (copy_requirements(decl, stack_top->parent) == -1) { in end_avrule_block()
1546 if (!stack_top->in_else && !stack_top->require_given) { in end_avrule_block()
1548 && stack_top->parent != NULL) { in end_avrule_block()
1585 s->parent = stack_top; in push_stack()
1587 stack_top = s; in push_stack()
1596 assert(stack_top != NULL); in pop_stack()
1597 parent = stack_top->parent; in pop_stack()
1601 free(stack_top); in pop_stack()
1602 stack_top = parent; in pop_stack()