aboutsummaryrefslogtreecommitdiff
path: root/type.h
blob: 7de6c28bbdf9ac8aa558e7899216c86bf7dca2a3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef TYPE_H
#define TYPE_H

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

const struct type *type_ufind(const struct fn *fn, const char *s);
const struct type *type_find(const struct fn *fn, const char *s);
char *type_name(const struct type *t);
int type(const struct lex *l, struct prv *p,
    int (*fn)(const struct lex *, struct prv *p, const struct type *t));
void type_free(struct type *t);
void type_lfree(struct type *t);

#endif