Lines Matching refs:scope_datum
1652 scope_datum_t *scope_datum; in symtab_insert() local
1674 scope_datum = in symtab_insert()
1676 if (scope_datum == NULL) { in symtab_insert()
1680 if ((scope_datum = malloc(sizeof(*scope_datum))) == NULL) { in symtab_insert()
1684 scope_datum->scope = scope; in symtab_insert()
1685 scope_datum->decl_ids = NULL; in symtab_insert()
1686 scope_datum->decl_ids_len = 0; in symtab_insert()
1689 scope_datum)) != 0) { in symtab_insert()
1691 free(scope_datum); in symtab_insert()
1694 } else if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_DECL) { in symtab_insert()
1718 } else if (scope_datum->scope == SCOPE_REQ && scope == SCOPE_DECL) { in symtab_insert()
1719 scope_datum->scope = SCOPE_DECL; in symtab_insert()
1723 for (i = 0; i < scope_datum->decl_ids_len; i++) { in symtab_insert()
1724 if (scope_datum->decl_ids[i] == avrule_decl_id) { in symtab_insert()
1731 &scope_datum->decl_ids_len, in symtab_insert()
1732 &scope_datum->decl_ids) == -1) { in symtab_insert()
1736 if (scope_datum->scope == SCOPE_DECL && scope == SCOPE_REQ) { in symtab_insert()
1739 len = scope_datum->decl_ids_len; in symtab_insert()
1744 tmp = scope_datum->decl_ids[len-2]; in symtab_insert()
1745 scope_datum->decl_ids[len-2] = scope_datum->decl_ids[len-1]; in symtab_insert()
1746 scope_datum->decl_ids[len-1] = tmp; in symtab_insert()