Lines Matching refs:scope

107  * current scope stack then this would return a 0.
158 if (ebitmap_set_bit(decl->declared.scope + symbol_type,
508 * This function assumes that the ID is within scope. c.f.,
554 * This function assumes that the ID is within scope. c.f.,
613 /* Attempt to require a symbol within the current scope. If currently
648 * previously declared and is in current scope */
671 * was already declared within my scope */
675 /* previous declaration was not in scope or
685 if (ebitmap_set_bit(decl->required.scope + symbol_type,
697 scope_index_t *scope;
701 scope = &decl->required;
702 if (class_value > scope->class_perms_len) {
704 ebitmap_t *new_map = realloc(scope->class_perms_map,
709 scope->class_perms_map = new_map;
710 for (i = scope->class_perms_len; i < class_value; i++) {
711 ebitmap_init(scope->class_perms_map + i);
713 scope->class_perms_len = class_value;
715 if (ebitmap_set_bit(scope->class_perms_map + class_value - 1,
1225 static int is_scope_in_stack(scope_datum_t * scope, scope_stack_t * stack)
1229 return 0; /* no matching scope found */
1233 for (i = 0; i < scope->decl_ids_len; i++) {
1234 if (scope->decl_ids[i] == decl->decl_id) {
1243 /* not within scope of this stack, so try its parent */
1244 return is_scope_in_stack(scope, stack->parent);
1249 scope_datum_t *scope =
1250 (scope_datum_t *) hashtab_search(policydbp->scope[symbol_type].
1252 if (scope == NULL) {
1255 return is_scope_in_stack(scope, stack_top);
1259 scope_index_t * scope)
1261 if (class_value > scope->class_perms_len) {
1264 if (ebitmap_get_bit(scope->class_perms_map + class_value - 1,
1275 return 0; /* no matching scope found */
1290 /* not within scope of this stack, so try its parent */
1355 * scope stack */
1492 ebitmap_t *src_bitmap = &src_scope->scope[i];
1493 ebitmap_t *dest_bitmap = &dest_scope->scope[i];
1560 /* Push a new scope on to the stack and update the 'last' pointer.