summaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-08-01 02:04:47 +1200
committerDavid Phillips <david@sighup.nz>2018-08-01 02:04:47 +1200
commit957d77141f56714e9f4551c8d49e6658ff778ce7 (patch)
treeb4d0207a06f12de12c1172312b6ee5de54c79a6f /common.h
parenta2e204aea97e7f844a5303f956c893579a89623e (diff)
downloadhence-957d77141f56714e9f4551c8d49e6658ff778ce7.tar.xz
Add line area/span indication to error messages
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.h b/common.h
index e5c0ab4..5a6977d 100644
--- a/common.h
+++ b/common.h
@@ -1,6 +1,10 @@
#ifndef COMMON_H
#define COMMON_H
+#include <stdio.h>
+#include <stddef.h>
+
+void indicate_file_area(FILE *fd, size_t line, size_t column, size_t span);
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
#endif