summaryrefslogtreecommitdiff
path: root/stack-man.h
blob: 0a0c1df4bf1e5386e86af96ae3cf5c57e4e2747e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef STACK_MAN_H
#define STACK_MAN_H

#include "array.h"
#include "simplex86.h"

typedef struct
{
    int	     total_size;
    array_t *allocations;
} stack_man_t;

bool_t
stack_manager_init (stack_man_t *st);

void
stack_manager_fini (stack_man_t *st);

bool_t
stack_manager_alloc (stack_man_t *s, int size, int *offset);

void
stack_manager_free (stack_man_t *s, int offset);

#endif