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

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