From 85c5f17dcd09540e31dc879166502984e483609d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 18 Apr 2010 21:43:24 -0400 Subject: Have dmnsn_diagnostic() take a dmnsn_parse_location. --- dimension/utility.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'dimension/utility.h') 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 . * *************************************************************************/ +#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 */ -- cgit v1.2.3