Lines Matching defs:inherit
240 struct cil_blockinherit *inherit;
254 inherit = bi_node->data;
255 if (inherit->block == block) {
256 inherit->block = NULL;
274 struct cil_blockinherit *inherit = NULL;
282 cil_log(CIL_ERR, "Block inherit rules are not allowed when the option for qualified names is used\n");
291 cil_blockinherit_init(&inherit);
293 inherit->block_str = parse_current->next->data;
295 ast_node->data = inherit;
302 cil_destroy_blockinherit(inherit);
306 void cil_destroy_blockinherit(struct cil_blockinherit *inherit)
308 if (inherit == NULL) {
312 if (inherit->block != NULL && inherit->block->bi_nodes != NULL) {
316 cil_list_for_each(item, inherit->block->bi_nodes) {
318 if (node->data == inherit) {
319 cil_list_remove(inherit->block->bi_nodes, CIL_NODE, node, CIL_FALSE);
325 free(inherit);