aboutsummaryrefslogtreecommitdiffstats
path: root/menu/heap.h
blob: 52f88588b6de2f76fdc85cf830dcc06faad7721d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _HEAP_H_
#define _HEAP_H_

// How much space to reserve for the stack
#define STACKSIZE (8*1024)

// Will an allocation of num bytes be successful?
// We need this because we dont do any deallocation
extern int checkalloc(unsigned int num); 

// Allocate so much space
extern void * malloc(unsigned int num); 

// This is a nop for now may be future implementations will actually do something
extern void free(void *); // Dealloc space. 

#endif