Lines Matching refs:new_class

415 	class_datum_t *class, *new_class;  in class_copy_callback()  local
430 new_class = (class_datum_t *) malloc(sizeof(class_datum_t)); in class_copy_callback()
431 if (!new_class) { in class_copy_callback()
435 memset(new_class, 0, sizeof(class_datum_t)); in class_copy_callback()
436 if (symtab_init(&new_class->permissions, PERM_SYMTAB_SIZE)) { in class_copy_callback()
438 free(new_class); in class_copy_callback()
442 new_class->s.value = class->s.value; in class_copy_callback()
445 ret = class_copy_default_new_object(state, class, new_class); in class_copy_callback()
447 free(new_class); in class_copy_callback()
454 free(new_class); in class_copy_callback()
460 (hashtab_datum_t *) new_class); in class_copy_callback()
463 free(new_class); in class_copy_callback()
470 &new_class->permissions)) { in class_copy_callback()
476 new_class->comkey = strdup(class->comkey); in class_copy_callback()
477 if (!new_class->comkey) { in class_copy_callback()
482 new_class->comdatum = in class_copy_callback()
484 new_class->comkey); in class_copy_callback()
485 if (!new_class->comdatum) { in class_copy_callback()
487 new_class->comkey); in class_copy_callback()
490 new_class->permissions.nprim += in class_copy_callback()
491 new_class->comdatum->permissions.nprim; in class_copy_callback()
501 class_datum_t *class, *new_class; in constraint_copy_callback() local
508 new_class = hashtab_search(state->out->p_classes.table, id); in constraint_copy_callback()
509 if (!new_class) { in constraint_copy_callback()
516 (&new_class->constraints, class->constraints, state) == -1 in constraint_copy_callback()
517 || constraint_node_clone(&new_class->validatetrans, in constraint_copy_callback()