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/realize.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'dimension/realize.c') diff --git a/dimension/realize.c b/dimension/realize.c index d0b8fa2..b6c6a60 100644 --- a/dimension/realize.c +++ b/dimension/realize.c @@ -31,8 +31,7 @@ dmnsn_realize_integer(dmnsn_astnode astnode) case DMNSN_AST_INTEGER: return *(long *)astnode.ptr; case DMNSN_AST_FLOAT: - dmnsn_diagnostic(astnode.filename, astnode.line, astnode.col, - "WARNING: float rounded to integer"); + dmnsn_diagnostic(astnode.location, "WARNING: float rounded to integer"); return *(double *)astnode.ptr; default: @@ -192,8 +191,7 @@ dmnsn_realize_global_settings(dmnsn_astnode astnode, dmnsn_scene *scene) switch (item.type) { case DMNSN_AST_ASSUMED_GAMMA: - dmnsn_diagnostic(item.filename, item.line, item.col, - "WARNING: assumed_gamma not supported"); + dmnsn_diagnostic(item.location, "WARNING: assumed_gamma not supported"); break; case DMNSN_AST_MAX_TRACE_LEVEL: @@ -758,7 +756,7 @@ dmnsn_realize_light_source_modifiers(dmnsn_astnode astnode, dmnsn_light *light) case DMNSN_AST_PIGMENT: case DMNSN_AST_FINISH: case DMNSN_AST_INTERIOR: - dmnsn_diagnostic(modifier.filename, modifier.line, modifier.col, + dmnsn_diagnostic(modifier.location, "WARNING: ignoring %s applied to light source", dmnsn_astnode_string(modifier.type)); break; -- cgit v1.2.3