Skip to content
Snippets Groups Projects
Commit 10c0a549 authored by Christian Engwer's avatar Christian Engwer
Browse files

[heap] remove unused heapptr

parent 9e3d21d6
No related branches found
No related tags found
1 merge request!94Feature/enforce dynamic memory allocmodel
......@@ -110,12 +110,6 @@ HEAP *NS_PREFIX NewHeap (enum HeapType type, MEM size, void *buffer)
theHeap->type = type;
theHeap->size = size;
theHeap->markKey = 0;
theHeap->heapptr = (BLOCK *) CEIL(((MEM)theHeap)+sizeof(HEAP));
/* initialize first block */
theHeap->heapptr->size = ((MEM)theHeap)+size-((MEM)theHeap->heapptr);
theHeap->heapptr->next = theHeap->heapptr;
theHeap->heapptr->previous = theHeap->heapptr;
/* No constructor is ever called for theHeap. Consequently, no constructor
* has been called for its member markedMemory, either. Here we force this
......
......@@ -133,7 +133,6 @@ struct block {
typedef struct {
enum HeapType type;
MEM size;
struct block *heapptr;
INT markKey;
/* This is used only if UG_USE_SYSTEM_HEAP is set, but I don't want the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment