Lines Matching defs:scope
251 scope_datum_t *scope = NULL;
264 scope =
267 if (scope == NULL) {
271 if (scope->scope == SCOPE_DECL) {
607 scope_datum_t *scope;
649 /* Get the scope info for this boolean to see if this is the declaration,
651 scope = hashtab_search(state->cur->policy->p_bools_scope.table, id);
652 if (!scope)
654 if (scope->scope == SCOPE_DECL) {
675 scope_datum_t *scope;
681 scope =
683 if (!scope)
685 if (scope->scope == SCOPE_DECL) {
691 } else if (scope->scope == SCOPE_REQ) {
699 "%s: has an unknown scope: %d",
700 state->cur_mod_name, scope->scope);
717 scope_datum_t *scope;
723 scope = hashtab_search(state->cur->policy->p_cat_scope.table, id);
724 if (!scope)
726 if (scope->scope == SCOPE_DECL) {
732 } else if (scope->scope == SCOPE_REQ) {
739 /* unknown scope? malformed policy? */
741 "%s: has an unknown scope: %d",
742 state->cur_mod_name, scope->scope);
1620 ebitmap_t *srcmap = src->scope + i;
1621 ebitmap_t *destmap = dest->scope + i;
1697 /* then copy required and declared scope indices here */
1777 scope_datum_t *scope, *base_scope;
1782 scope = (scope_datum_t *) datum;
1784 /* check if the base already has a scope entry */
1785 base_scope = hashtab_search(state->base->scope[symbol_num].table, id);
1797 ret = hashtab_insert(state->base->scope[symbol_num].table,
1805 new_scope->scope = SCOPE_REQ; /* this is reset further down */
1808 if (base_scope->scope == SCOPE_REQ && scope->scope == SCOPE_DECL) {
1811 base_scope->scope = SCOPE_DECL;
1815 for (i = 0; i < scope->decl_ids_len; i++) {
1816 if (add_i_to_a(avdecl_map[scope->decl_ids[i]],
1822 } else if (base_scope->scope == SCOPE_DECL && scope->scope == SCOPE_REQ) {
1825 } else if (base_scope->scope == SCOPE_REQ && scope->scope == SCOPE_REQ) {
1827 for (i = 0; i < scope->decl_ids_len; i++) {
1828 if (add_i_to_a(avdecl_map[scope->decl_ids[i]],
1845 for (i = 0; i < scope->decl_ids_len; i++) {
1846 if (add_i_to_a(avdecl_map[scope->decl_ids[i]],
1888 (module->policy->scope[i].table, scope_copy_callback,
1948 bitmap = &decl->required.scope[i];
1950 /* check base's scope table */
1971 scope_datum_t *scope;
1976 scope =
1979 if (scope == NULL) {
1981 "Could not find scope information for class %s",