[cairo] [API] unbreak CAIRO_FONT_TYPE_ATSUI
Torsten Schoenfeld
kaffeetisch at gmx.de
Mon Mar 24 12:38:27 PDT 2008
On Mon, 2008-03-24 at 12:20 -0700, Vladimir Vukicevic wrote:
> The only thing that breaks with this is that you can't use the values
> in case statements any more, but I'd think that's pretty uncommon in
> user code.
But I think it's a pretty common thing for bindings to do. When they,
for example, try to find out how to represent a surface, they switch
over its type. The switch statement can be replaced with if - else if -
else of course, but then you'd need to use strncmp instead of simply ==
too if enums are replaced with strings.
--
Bye,
-Torsten
More information about the cairo
mailing list