diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-11-25 01:25:30 -0500 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-11-25 01:25:30 -0500 |
commit | 402d8c6c4674348bc01db09fc39bb748a6eebdda (patch) | |
tree | ca4ebd35cd8550f9d1895b5d5ac0d110feea3b53 /stack-man.h | |
parent | 55a3b20d2a98b7eabfde9f5d41e33edbaf78387f (diff) |
stack man
Diffstat (limited to 'stack-man.h')
-rw-r--r-- | stack-man.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/stack-man.h b/stack-man.h new file mode 100644 index 0000000..73cf6cc --- /dev/null +++ b/stack-man.h @@ -0,0 +1,17 @@ +#include "simplex86.h" + +typedef struct +{ + int total_size; + array_t *allocations; +} stack_man_t; + + +void +stack_manager_init (stack_man_t *st); + +void +stack_manager_fini (stack_man_t *st); + +int +stack_manager_alloc (stack_man_t *s, int size); |