~mcf/samurai

ref: edeec43d638c826d9e446917f97e95151988e0e0 samurai/parse.h -rw-r--r-- 354 bytes
edeec43dMichael Forney log: Use fgets instead of getline 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
struct environment;
struct node;

struct parseoptions {
	_Bool dupbuildwarn;
};

void parseinit(void);
void parse(const char *, struct environment *);

extern struct parseoptions parseopts;

/* supported ninja version */
enum {
	ninjamajor = 1,
	ninjaminor = 9,
};

/* execute a function with all default nodes */
void defaultnodes(void(struct node *));