summaryrefslogtreecommitdiffstats
path: root/dimension/utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/utility.h')
-rw-r--r--dimension/utility.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/dimension/utility.h b/dimension/utility.h
index beb818e..15ceadb 100644
--- a/dimension/utility.h
+++ b/dimension/utility.h
@@ -17,6 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*************************************************************************/
+#ifndef UTILITY_H
+#define UTILITY_H
+
+#include "parse.h" /* For dmnsn_parse_location */
+
#if defined(__GNUC__) || defined(__attribute__)
#define DMNSN_PRINTF_WARN(f, a) __attribute__((format (printf, f, a)))
#else
@@ -24,6 +29,7 @@
#endif
/* Print a parsing diagnostic to stderr */
-void dmnsn_diagnostic(const char *filename, int line, int col,
- const char *format, ...)
- DMNSN_PRINTF_WARN(4, 5);
+void dmnsn_diagnostic(dmnsn_parse_location location, const char *format, ...)
+ DMNSN_PRINTF_WARN(2, 3);
+
+#endif /* UTILITY_H */