blob: d73649762c4991f0f66a1bab2edb6193ccab4f12 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "cgen.h"
#include "storage.h"
#include "qbe.h"
#include <stddef.h>
#include <stdio.h>
static int stpush(const struct stentry *e, struct cgen *c)
{
fprintf(stderr, "%s: TODO\n", __func__);
return -1;
}
int qbe_st(const struct storage *s, struct cgen *c)
{
for (size_t i = 0; i < s->nentries; i++)
if (stpush(&s->entries[i], c))
return -1;
return 0;
}
|