summaryrefslogtreecommitdiff
path: root/fn.h
blob: 801d7bf1c8b947d2db8b06b7644698a891f68124 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef FN_H
#define FN_H

#include "cgen.h"
#include "lex.h"
#include "parse.h"
#include "prv.h"

struct fn_cgen
{
    int dummy;
};

int fn(const struct lex *l, struct prv *p);
struct fn *fn_cur(const struct prv *p);
int fn_cgen(const struct fn *fn, struct cgen *c);
const struct stentry *fn_var(const struct fn *fn, const struct tk *tk);
void fn_free(struct fn *fn);
void fn_cgen_free(struct fn_cgen *c);

#endif