Home | History | Annotate | Download | only in src

Lines Matching defs:new_class

397 	class_datum_t *class, *new_class;
412 new_class = (class_datum_t *) malloc(sizeof(class_datum_t));
413 if (!new_class) {
417 memset(new_class, 0, sizeof(class_datum_t));
418 if (symtab_init(&new_class->permissions, PERM_SYMTAB_SIZE)) {
420 free(new_class);
424 new_class->s.value = class->s.value;
427 ret = class_copy_default_new_object(state, class, new_class);
429 free(new_class);
436 free(new_class);
442 (hashtab_datum_t *) new_class);
445 free(new_class);
452 &new_class->permissions)) {
458 new_class->comkey = strdup(class->comkey);
459 if (!new_class->comkey) {
464 new_class->comdatum =
466 new_class->comkey);
467 if (!new_class->comdatum) {
469 new_class->comkey);
472 new_class->permissions.nprim +=
473 new_class->comdatum->permissions.nprim;
483 class_datum_t *class, *new_class;
490 new_class = hashtab_search(state->out->p_classes.table, id);
491 if (!new_class) {
498 (&new_class->constraints, class->constraints, state) == -1
499 || constraint_node_clone(&new_class->validatetrans,