summaryrefslogtreecommitdiffstats
path: root/dimension/utility.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-04-18 21:43:24 -0400
committerTavian Barnes <tavianator@gmail.com>2010-04-18 22:29:41 -0400
commit85c5f17dcd09540e31dc879166502984e483609d (patch)
tree6bc4c9ea1f265756e8b563885dabcdc0af09b0cf /dimension/utility.h
parent6437ab96674accfb5d5d85066e58d20887c926d7 (diff)
downloaddimension-85c5f17dcd09540e31dc879166502984e483609d.tar.xz
Have dmnsn_diagnostic() take a dmnsn_parse_location.
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 */