summaryrefslogtreecommitdiffstats
path: root/dimension/realize.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
commit5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (patch)
tree2b642b87d97ab13b050e1ef9323725c0bbd5b5c6 /dimension/realize.c
parent7bc2770af08e317b2076540050c68d2de55a11db (diff)
downloaddimension-5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802.tar.xz
Don't use awkward (*fptr)() syntax.
Diffstat (limited to 'dimension/realize.c')
-rw-r--r--dimension/realize.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/dimension/realize.c b/dimension/realize.c
index aef8417..019011e 100644
--- a/dimension/realize.c
+++ b/dimension/realize.c
@@ -1254,7 +1254,7 @@ dmnsn_realize_csg(dmnsn_astnode astnode, dmnsn_astnode modifiers,
dmnsn_array_push(lights, &light);
} else {
dmnsn_object *object = dmnsn_realize_object(*onode, lights);
- csg = (*csg_object_fn)(csg, object);
+ csg = csg_object_fn(csg, object);
}
}
@@ -1268,7 +1268,7 @@ dmnsn_realize_intersection(dmnsn_astnode astnode, dmnsn_astnode modifiers,
dmnsn_assert(astnode.type == DMNSN_AST_INTERSECTION,
"Expected an intersection.");
return dmnsn_realize_csg(astnode, modifiers, lights,
- &dmnsn_new_csg_intersection);
+ dmnsn_new_csg_intersection);
}
static dmnsn_object *
@@ -1277,7 +1277,7 @@ dmnsn_realize_difference(dmnsn_astnode astnode, dmnsn_astnode modifiers,
{
dmnsn_assert(astnode.type == DMNSN_AST_DIFFERENCE, "Expected a difference.");
return dmnsn_realize_csg(astnode, modifiers, lights,
- &dmnsn_new_csg_difference);
+ dmnsn_new_csg_difference);
}
static dmnsn_object *
@@ -1285,7 +1285,7 @@ dmnsn_realize_merge(dmnsn_astnode astnode, dmnsn_astnode modifiers,
dmnsn_array *lights)
{
dmnsn_assert(astnode.type == DMNSN_AST_MERGE, "Expected a merge.");
- return dmnsn_realize_csg(astnode, modifiers, lights, &dmnsn_new_csg_merge);
+ return dmnsn_realize_csg(astnode, modifiers, lights, dmnsn_new_csg_merge);
}
/* Realize an object, or maybe a light */