test/utils.[ch]: Add new function operator_name()
authorSøren Sandmann Pedersen <ssp@redhat.com>
Sat, 19 Jan 2013 13:55:27 +0000 (08:55 -0500)
committerSøren Sandmann Pedersen <ssp@redhat.com>
Wed, 23 Jan 2013 17:24:31 +0000 (12:24 -0500)
commit1676b4938912bd140791c347aa4d08db255dd60f
tree04c276a7971e138043f35254be65374935238e30
parent8d85311143b0bc30d3490c0ca2ddbe927a1f9ac8
test/utils.[ch]: Add new function operator_name()

This function returns the name of the given operator, which is useful
for printing out debug information. The function is done as a switch
without a default value so that the compiler will warn if new
operators are added in the future.

The function is used in affine-test.c, scaling-test.c, and
blitters-test.c.
test/affine-test.c
test/blitters-test.c
test/scaling-test.c
test/utils.c
test/utils.h