1 /* $Id: cs_alloc.c,v 1.5 1994/06/24 10:21:46 ceriel Exp $ */
3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
6 #include "../share/types.h"
7 #include "../share/alloc.h"
10 occur_p newoccur(l1, l2, b)
14 /* Allocate a new struct occur and initialize it. */
18 rop = (occur_p) newcore(sizeof(struct occur));
19 rop->oc_lfirst = l1; rop->oc_llast = l2; rop->oc_belongs = b;
26 oldcore((char *) ocp, sizeof(struct occur));
31 return (avail_p) newcore(sizeof(struct avail));
37 oldcore((char *) avp, sizeof(struct avail));
42 return (entity_p) newcore(sizeof(struct entity));
48 oldcore((char *) enp, sizeof(struct entity));