diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-04-18 21:43:24 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-04-18 22:29:41 -0400 |
commit | 85c5f17dcd09540e31dc879166502984e483609d (patch) | |
tree | 6bc4c9ea1f265756e8b563885dabcdc0af09b0cf /dimension/realize.c | |
parent | 6437ab96674accfb5d5d85066e58d20887c926d7 (diff) | |
download | dimension-85c5f17dcd09540e31dc879166502984e483609d.tar.xz |
Have dmnsn_diagnostic() take a dmnsn_parse_location.
Diffstat (limited to 'dimension/realize.c')
-rw-r--r-- | dimension/realize.c | 8 |
1 files changed, 3 insertions, 5 deletions
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; |