From 098499d4ca6cc5157f71e9d199f4eb14b91c90e1 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sat, 21 Sep 2019 18:48:41 -0400 Subject: fixed a bit of parsing --- util/err.c | 7 ------- util/location.c | 6 ++++++ 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'util') diff --git a/util/err.c b/util/err.c index c5d32b2..cc642d4 100644 --- a/util/err.c +++ b/util/err.c @@ -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; } -- cgit v1.2.3