diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2019-09-21 18:48:41 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2019-09-21 18:48:41 -0400 |
commit | 098499d4ca6cc5157f71e9d199f4eb14b91c90e1 (patch) | |
tree | 79f9201de819c458c22326ceb1456d76f4cf063e /util | |
parent | a1099999e02fb87e3f5f209dfbba3f93692953db (diff) |
fixed a bit of parsing
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; } |