Lines Matching refs:new_class
417 class_datum_t *class, *new_class;
432 new_class = (class_datum_t *) malloc(sizeof(class_datum_t));
433 if (!new_class) {
437 memset(new_class, 0, sizeof(class_datum_t));
438 if (symtab_init(&new_class->permissions, PERM_SYMTAB_SIZE)) {
440 free(new_class);
444 new_class->s.value = class->s.value;
447 ret = class_copy_default_new_object(state, class, new_class);
449 free(new_class);
456 free(new_class);
462 (hashtab_datum_t *) new_class);
465 free(new_class);
472 &new_class->permissions)) {
478 new_class->comkey = strdup(class->comkey);
479 if (!new_class->comkey) {
484 new_class->comdatum =
486 new_class->comkey);
487 if (!new_class->comdatum) {
489 new_class->comkey);
492 new_class->permissions.nprim +=
493 new_class->comdatum->permissions.nprim;
503 class_datum_t *class, *new_class;
510 new_class = hashtab_search(state->out->p_classes.table, id);
511 if (!new_class) {
518 (&new_class->constraints, class->constraints, state) == -1
519 || constraint_node_clone(&new_class->validatetrans,