Lines Matching refs:stack_top

49 static scope_stack_t *stack_top = NULL;
93 while (stack_top != NULL) {
111 if (stack_top->type != 1 || stack_top->in_else) {
130 avrule_decl_t *decl = stack_top->decl;
239 assert(stack_top->type == 1);
240 if (stack_top->parent == NULL) {
244 roles_tab = stack_top->decl->p_roles.table;
444 assert(stack_top->type == 1);
445 if (stack_top->parent == NULL) {
449 users_tab = stack_top->decl->p_users.table;
518 assert(stack_top->type == 1);
519 if (stack_top->parent == NULL) {
523 types_tab = stack_top->decl->p_types.table;
565 assert(stack_top->type == 1);
567 if (stack_top->parent == NULL) {
571 roles_tab = stack_top->decl->p_roles.table;
607 if (stack_top->type == 1 && !stack_top->in_else) {
625 avrule_decl_t *decl = stack_top->decl;
672 stack_top->require_given = 1;
690 stack_top->require_given = 1;
696 avrule_decl_t *decl = stack_top->decl;
1255 return is_scope_in_stack(scope, stack_top);
1309 stack_top);
1316 avrule_decl_t *decl = stack_top->decl;
1349 avrule_decl_t *decl = stack_top->decl;
1356 assert(stack_top->type == 1);
1358 if (stack_top->last_avrule == NULL) {
1361 stack_top->last_avrule->next = avrule;
1363 stack_top->last_avrule = avrule;
1369 avrule_decl_t *decl = stack_top->decl;
1372 assert(stack_top->type == 1);
1381 avrule_decl_t *decl = stack_top->decl;
1384 assert(stack_top->type == 1);
1393 avrule_decl_t *decl = stack_top->decl;
1396 assert(stack_top->type == 1);
1405 avrule_decl_t *decl = stack_top->decl;
1408 assert(stack_top->type == 1);
1438 stack_top->last_avrule = NULL;
1458 assert(stack_top->type == 1 && stack_top->in_else == 0);
1466 stack_top->decl->next = decl;
1470 decl = stack_top->decl->next;
1474 stack_top->in_else = 1;
1475 stack_top->decl = decl;
1476 stack_top->last_avrule = NULL;
1477 stack_top->require_given = 0;
1536 avrule_decl_t *decl = stack_top->decl;
1537 assert(stack_top->type == 1);
1541 if (copy_requirements(decl, stack_top->parent) == -1) {
1546 if (!stack_top->in_else && !stack_top->require_given) {
1548 && stack_top->parent != NULL) {
1585 s->parent = stack_top;
1587 stack_top = s;
1596 assert(stack_top != NULL);
1597 parent = stack_top->parent;
1601 free(stack_top);
1602 stack_top = parent;