diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/err.c | 7 | ||||
-rw-r--r-- | util/location.c | 6 |
2 files changed, 6 insertions, 7 deletions
@@ -21,13 +21,6 @@ static inline const char *ordinals(size_t x) { } } -typedef uint32_t LineNo; - -typedef struct { - LineNo line; - char *code; -} Location; - /* file name of file being processed */ /* TODO: remove this */ static const char *err_filename; diff --git a/util/location.c b/util/location.c index f588146..9a8beb8 100644 --- a/util/location.c +++ b/util/location.c @@ -1,3 +1,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; } |