Home | History | Annotate | Download | only in src

Lines Matching defs:classorder

417 	struct cil_classorder *classorder = NULL;
431 cil_classorder_init(&classorder);
433 rc = cil_fill_list(parse_current->next->cl_head, CIL_CLASSORDER, &classorder->class_list_str);
438 head = classorder->class_list_str->head;
439 cil_list_for_each(curr, classorder->class_list_str) {
442 cil_log(CIL_ERR, "Classorder 'unordered' keyword must be followed by one or more class.\n");
446 cil_log(CIL_ERR, "Classorder can only use 'unordered' keyword as the first item in the list.\n");
453 ast_node->data = classorder;
459 cil_log(CIL_ERR, "Bad classorder declaration at line %d of %s\n",
461 cil_destroy_classorder(classorder);
465 void cil_destroy_classorder(struct cil_classorder *classorder)
467 if (classorder == NULL) {
471 if (classorder->class_list_str != NULL) {
472 cil_list_destroy(&classorder->class_list_str, 1);
475 free(classorder);