Lines Matching defs:new_class
491 class_datum_t *class, *new_class;
506 new_class = (class_datum_t *) malloc(sizeof(class_datum_t));
507 if (!new_class) {
511 memset(new_class, 0, sizeof(class_datum_t));
512 if (symtab_init(&new_class->permissions, PERM_SYMTAB_SIZE)) {
514 free(new_class);
518 new_class->s.value = class->s.value;
521 ret = class_copy_default_new_object(state, class, new_class);
523 free(new_class);
530 free(new_class);
536 (hashtab_datum_t *) new_class);
539 free(new_class);
546 &new_class->permissions)) {
552 new_class->comkey = strdup(class->comkey);
553 if (!new_class->comkey) {
558 new_class->comdatum =
560 new_class->comkey);
561 if (!new_class->comdatum) {
563 new_class->comkey);
566 new_class->permissions.nprim +=
567 new_class->comdatum->permissions.nprim;
577 class_datum_t *class, *new_class;
584 new_class = hashtab_search(state->out->p_classes.table, id);
585 if (!new_class) {
592 (&new_class->constraints, class->constraints, state) == -1
593 || constraint_node_clone(&new_class->validatetrans,