summaryrefslogtreecommitdiff
path: root/location.c
blob: 8e68ca33cd82e776ed163043eb091319a49036a9 (plain)
1
2
3
4
5
6
7
8
9
10
typedef uint32_t LineNo;
typedef struct {
	LineNo line;
	char *code;
	const char *filename;
} Location;

static bool location_after(Location a, Location b) { /* a is after b? */
	return a.code > b.code;
}