Mercurial > repo
annotate src/ploki/mars.h @ 9601:3677ea8894d7
<shachaf> ` rm -rf canary; mk \'canary//cat: canary: No such file or directory\'
author | HackBot |
---|---|
date | Wed, 02 Nov 2016 00:10:36 +0000 |
parents | ac0403686959 |
children |
rev | line source |
---|---|
4223 | 1 #ifndef MARS_H_ |
2 #define MARS_H_ | |
3 | |
4 #include "Str.h" | |
5 #include "op.h" | |
6 | |
7 #include <stddef.h> | |
8 | |
9 struct mars { | |
10 size_t size, length; | |
11 struct mars **table; | |
12 struct op *data; | |
13 }; | |
14 | |
15 void ma_init(struct mars *); | |
16 void ma_end(struct mars *); | |
17 int ma_enter(struct mars *, const String *, struct op *); | |
18 int ma_exists(const struct mars *, const String *); | |
19 struct op *ma_find(const struct mars *, String *); | |
20 | |
21 #endif /* MARS_H_ */ |