Lines Matching refs:stack_top

50 static scope_stack_t *stack_top = NULL;  variable
122 while (stack_top != NULL) { in define_policy()
140 if (stack_top->type != 1 || stack_top->in_else) { in is_creation_allowed()
157 avrule_decl_t *decl = stack_top->decl; in create_symbol()
200 avrule_decl_t *decl = stack_top->decl; in declare_symbol()
329 assert(stack_top->type == 1); in declare_role()
331 if (stack_top->parent == NULL) { in declare_role()
335 roles_tab = stack_top->decl->p_roles.table; in declare_role()
563 assert(stack_top->type == 1); in declare_user()
565 if (stack_top->parent == NULL) { in declare_user()
569 users_tab = stack_top->decl->p_users.table; in declare_user()
624 assert(stack_top->type == 1); in get_local_type()
625 if (stack_top->parent == NULL) { in get_local_type()
629 types_tab = stack_top->decl->p_types.table; in get_local_type()
671 assert(stack_top->type == 1); in get_local_role()
673 if (stack_top->parent == NULL) { in get_local_role()
677 roles_tab = stack_top->decl->p_roles.table; in get_local_role()
719 avrule_decl_t *decl = stack_top->decl; in require_symbol()
731 stack_top->require_given = 1; in require_symbol()
737 avrule_decl_t *decl = stack_top->decl; in add_perm_to_class()
1136 return is_scope_in_stack(scope, stack_top); in is_id_in_scope()
1190 stack_top); in is_perm_in_scope()
1197 avrule_decl_t *decl = stack_top->decl; in get_current_cond_list()
1230 avrule_decl_t *decl = stack_top->decl; in append_avrule()
1237 assert(stack_top->type == 1); in append_avrule()
1239 if (stack_top->last_avrule == NULL) { in append_avrule()
1242 stack_top->last_avrule->next = avrule; in append_avrule()
1244 stack_top->last_avrule = avrule; in append_avrule()
1250 avrule_decl_t *decl = stack_top->decl; in append_role_trans()
1253 assert(stack_top->type == 1); in append_role_trans()
1262 avrule_decl_t *decl = stack_top->decl; in append_role_allow()
1265 assert(stack_top->type == 1); in append_role_allow()
1274 avrule_decl_t *decl = stack_top->decl; in append_filename_trans()
1277 assert(stack_top->type == 1); in append_filename_trans()
1286 avrule_decl_t *decl = stack_top->decl; in append_range_trans()
1289 assert(stack_top->type == 1); in append_range_trans()
1319 stack_top->last_avrule = NULL; in begin_optional()
1339 assert(stack_top->type == 1 && stack_top->in_else == 0); in begin_optional_else()
1347 stack_top->decl->next = decl; in begin_optional_else()
1351 decl = stack_top->decl->next; in begin_optional_else()
1355 stack_top->in_else = 1; in begin_optional_else()
1356 stack_top->decl = decl; in begin_optional_else()
1357 stack_top->last_avrule = NULL; in begin_optional_else()
1358 stack_top->require_given = 0; in begin_optional_else()
1417 avrule_decl_t *decl = stack_top->decl; in end_avrule_block()
1418 assert(stack_top->type == 1); in end_avrule_block()
1422 if (copy_requirements(decl, stack_top->parent) == -1) { in end_avrule_block()
1427 if (!stack_top->in_else && !stack_top->require_given) { in end_avrule_block()
1429 && stack_top->parent != NULL) { in end_avrule_block()
1466 s->parent = stack_top; in push_stack()
1468 stack_top = s; in push_stack()
1477 assert(stack_top != NULL); in pop_stack()
1478 parent = stack_top->parent; in pop_stack()
1482 free(stack_top); in pop_stack()
1483 stack_top = parent; in pop_stack()