Lines Matching refs:scope
249 scope_datum_t *scope = NULL;
262 scope =
265 if (scope == NULL) {
269 if (scope->scope == SCOPE_DECL) {
605 scope_datum_t *scope;
646 /* Get the scope info for this boolean to see if this is the declaration,
648 scope = hashtab_search(state->cur->policy->p_bools_scope.table, id);
649 if (!scope)
651 if (scope->scope == SCOPE_DECL) {
672 scope_datum_t *scope;
678 scope =
680 if (!scope)
682 if (scope->scope == SCOPE_DECL) {
688 } else if (scope->scope == SCOPE_REQ) {
696 "%s: has an unknown scope: %d\n",
697 state->cur_mod_name, scope->scope);
714 scope_datum_t *scope;
720 scope = hashtab_search(state->cur->policy->p_cat_scope.table, id);
721 if (!scope)
723 if (scope->scope == SCOPE_DECL) {
729 } else if (scope->scope == SCOPE_REQ) {
736 /* unknown scope? malformed policy? */
738 "%s: has an unknown scope: %d\n",
739 state->cur_mod_name, scope->scope);
1660 ebitmap_t *srcmap = src->scope + i;
1661 ebitmap_t *destmap = dest->scope + i;
1747 /* then copy required and declared scope indices here */
1827 scope_datum_t *scope, *base_scope;
1832 scope = (scope_datum_t *) datum;
1834 /* check if the base already has a scope entry */
1835 base_scope = hashtab_search(state->base->scope[symbol_num].table, id);
1847 scope[symbol_num].table,
1855 new_scope->scope = SCOPE_REQ; /* this is reset further down */
1858 if (base_scope->scope == SCOPE_REQ && scope->scope == SCOPE_DECL) {
1861 base_scope->scope = SCOPE_DECL;
1865 for (i = 0; i < scope->decl_ids_len; i++) {
1866 if (add_i_to_a(avdecl_map[scope->decl_ids[i]],
1872 } else if (base_scope->scope == SCOPE_DECL && scope->scope == SCOPE_REQ) {
1875 } else if (base_scope->scope == SCOPE_REQ && scope->scope == SCOPE_REQ) {
1877 for (i = 0; i < scope->decl_ids_len; i++) {
1878 if (add_i_to_a(avdecl_map[scope->decl_ids[i]],
1895 for (i = 0; i < scope->decl_ids_len; i++) {
1896 if (add_i_to_a(avdecl_map[scope->decl_ids[i]],
1938 (module->policy->scope[i].table, scope_copy_callback,
1998 bitmap = &decl->required.scope[i];
2004 /* check base's scope table */
2025 scope_datum_t *scope;
2033 scope =
2036 if (scope == NULL) {
2038 "Could not find scope information for class %s",