Lines Matching defs:db
51 struct cil_db *db;
67 static struct cil_name * __cil_insert_name(struct cil_db *db, hashtab_key_t key, struct cil_tree_node *ast_node)
80 symtab = &((struct cil_root *)db->ast->root->data)->symtab[sym_index];
104 cil_list_append(db->names, CIL_NAME, name);
296 struct cil_db *db = NULL;
305 db = args->db;
318 rule->tgt = db->selftype;
594 nametypetrans->name = __cil_insert_name(args->db, nametypetrans->name_str, current);
1486 void cil_set_cat_values(struct cil_list *ordered_cats, struct cil_db *db)
1497 db->num_cats = v;
2304 struct cil_db *db = NULL;
2314 db = args->db;
2328 rc = cil_copy_ast(db, current, item->data);
2371 struct cil_db *db = NULL;
2377 db = args->db;
2387 rc = cil_copy_ast(db, current, block_node);
2673 struct cil_db *db = NULL;
2679 db = args->db;
2730 name = __cil_insert_name(args->db, pc->data, current);
2911 rc = cil_copy_ast(db, macro_node, current);
3199 struct cil_db *db = NULL;
3208 db = args->db;
3238 rc = cil_copy_ast(db, true_node, current->parent);
3245 rc = cil_copy_ast(db, false_node, current->parent);
3776 int cil_resolve_ast(struct cil_db *db, struct cil_tree_node *current)
3783 if (db == NULL || current == NULL) {
3787 extra_args.db = db;
3825 db->sidorder = __cil_ordered_lists_merge_all(&extra_args.sidorder_lists, NULL);
3826 if (db->sidorder == NULL) {
3830 db->classorder = __cil_ordered_lists_merge_all(&extra_args.classorder_lists, &extra_args.unordered_classorder_lists);
3831 if (db->classorder == NULL) {
3835 db->catorder = __cil_ordered_lists_merge_all(&extra_args.catorder_lists, NULL);
3836 db->catorder == NULL) {
3840 cil_set_cat_values(db->catorder, db);
3841 db->sensitivityorder = __cil_ordered_lists_merge_all(&extra_args.sensitivityorder_lists, NULL);
3842 if (db->sensitivityorder == NULL) {
3884 cil_list_destroy(&db->sidorder, CIL_FALSE);
3885 cil_list_destroy(&db->classorder, CIL_FALSE);
3886 cil_list_destroy(&db->catorder, CIL_FALSE);
3887 cil_list_destroy(&db->sensitivityorder, CIL_FALSE);
3915 rc = __cil_verify_initsids(db->sidorder);
3931 static int __cil_resolve_name_with_root(struct cil_db *db, char *name, enum cil_sym_index sym_index, struct cil_symtab_datum **datum)
3933 symtab_t *symtab = &((struct cil_root *)db->ast->root->data)->symtab[sym_index];
3992 static int __cil_resolve_name_helper(struct cil_db *db, struct cil_tree_node *node, char *name, enum cil_sym_index sym_index, struct cil_symtab_datum **datum)
3998 rc = __cil_resolve_name_with_root(db, name, sym_index, datum);
4007 struct cil_db *db = args->db;
4019 rc = __cil_resolve_name_helper(db, ast_node->parent, name, sym_index, datum);
4033 symtab = &((struct cil_root *)db->ast->root->data)->symtab[CIL_SYM_BLOCKS];
4035 rc = __cil_resolve_name_helper(db, node->parent, current, CIL_SYM_BLOCKS, datum);