diff options
Diffstat (limited to 'location.c')
-rw-r--r-- | location.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/location.c b/location.c new file mode 100644 index 0000000..4b450ce --- /dev/null +++ b/location.c @@ -0,0 +1,10 @@ +typedef uint32_t LineNo; +typedef struct { + LineNo line; + char *code; + const char *filename; +} Location; + +bool location_after(Location a, Location b) { /* a is after b? */ + return a.code > b.code; +} |