17 lines
226 B
C
17 lines
226 B
C
#include "store.h"
|
|
|
|
#include "am.h"
|
|
|
|
#include <string.h>
|
|
|
|
void store_init(am_t *am)
|
|
{
|
|
memset(&am->store, 0, sizeof(store_t));
|
|
am->store.free = am->store.buffer;
|
|
}
|
|
|
|
expr_t *store_alloc(am_t *am)
|
|
{
|
|
return am->store.free++;
|
|
}
|