Lines Matching defs:stack
49 /* keep track of the last item added to the stack */
122 /* reset the scoping stack */
134 /* Given the current parse stack, returns 1 if a declaration or require would
137 * current scope stack then this would return a 0.
1116 static int is_scope_in_stack(const scope_datum_t * scope, const scope_stack_t * stack)
1119 if (stack == NULL) {
1122 if (stack->type == 1) {
1123 const avrule_decl_t *decl = stack->decl;
1134 /* not within scope of this stack, so try its parent */
1135 return is_scope_in_stack(scope, stack->parent);
1163 const scope_stack_t * stack)
1165 if (stack == NULL) {
1168 if (stack->type == 1) {
1169 avrule_decl_t *decl = stack->decl;
1181 /* not within scope of this stack, so try its parent */
1182 return is_perm_in_stack(perm_value, class_value, stack->parent);
1246 * scope stack */
1341 /* once nested conditionals are allowed, do the stack unfolding here */
1373 static int copy_requirements(avrule_decl_t * dest, const scope_stack_t * stack)
1376 if (stack == NULL) {
1379 if (stack->type == 1) {
1380 const scope_index_t *src_scope = &stack->decl->required;
1418 return copy_requirements(dest, stack->parent);
1451 /* Push a new scope on to the stack and update the 'last' pointer.
1472 /* invalid stack type given */
1482 /* Pop off the most recently added from the stack. Update the 'last'