blob: cab868777f4cedf93ed8ba55b2b8981c79aa0dc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef INCLUDED_GENERATOR_H
#define INCLUDED_GENERATOR_H
#include "compensations.h"
#include "arena.h"
struct replacement {
struct sv old; // replace this
struct sv new; // with this
};
struct replacements {
struct replacement *items;
uint32_t count;
uint32_t capacity;
};
struct replacements generate_replacements (struct arena *, const struct compensations *);
void write_code_with_replacements (int fd, struct sv original, const struct replacements *);
#endif // INCLUDED_GENERATOR_H
|