aboutsummaryrefslogtreecommitdiff
path: root/src/prc1/cgen.h
blob: e8d48e1ae8633c2afae1c95cb8212496c9f4d1ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef CGEN_H
#define CGEN_H

#include "parse.h"
#include "storage.h"

struct cgen
{
    const struct cgen_drv *drv;
    const struct fn *fn;
    struct fn_cgen *fnc;
    struct cgen_prv *p;
};

int cgen(const struct ast *ast, struct cgen *c);
int cgen_param(const struct fn *fn, const struct stentry *e);
int cgen_global(const struct fn *fn, const struct stentry *e);
void cgen_free(struct cgen *c);

#endif