Lines Matching refs:ret
88 struct objalloc *ret; in objalloc_create() local
91 ret = (struct objalloc *) malloc (sizeof *ret); in objalloc_create()
92 if (ret == NULL) in objalloc_create()
95 ret->chunks = (PTR) malloc (CHUNK_SIZE); in objalloc_create()
96 if (ret->chunks == NULL) in objalloc_create()
98 free (ret); in objalloc_create()
102 chunk = (struct objalloc_chunk *) ret->chunks; in objalloc_create()
106 ret->current_ptr = (char *) chunk + CHUNK_HEADER_SIZE; in objalloc_create()
107 ret->current_space = CHUNK_SIZE - CHUNK_HEADER_SIZE; in objalloc_create()
109 return ret; in objalloc_create()
140 char *ret; in _objalloc_alloc() local
143 ret = (char *) malloc (CHUNK_HEADER_SIZE + len); in _objalloc_alloc()
144 if (ret == NULL) in _objalloc_alloc()
147 chunk = (struct objalloc_chunk *) ret; in _objalloc_alloc()
153 return (PTR) (ret + CHUNK_HEADER_SIZE); in _objalloc_alloc()