summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/err.c7
-rw-r--r--util/location.c6
2 files changed, 6 insertions, 7 deletions
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;
}