summaryrefslogtreecommitdiff
path: root/cpp.h
blob: 319ac7ec17329b996bdba1573894154f0c14302a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef CPP_H
#define CPP_H
#include <stdint.h>

struct macro {
	char *file;
	uintmax_t line;
	char *identifier;
	char *replacement;
	struct macro *next;
};

int preprocess(const char *infile, const char *outfile, struct macro *predefined_list);
struct macro *define(struct macro *list, const char *file, uintmax_t line, const char *macro, const char *replacement);
struct macro *undef(struct macro *list, const char *macro);

#endif