M
Malcolm McLean
The problem is that whizzbanggui.c contains the typedef of a struct point.I've never found this to be a significant burden, but I do spend
some time in trying to make interfaces as clean as possible.
You're implementing pythagoras, which takes two points. So naturally they
get passed as struct points. But now everyone has to pull in the whole of
whizzbanggui, just to use that trivial definition.
If you define your own struct Point / struct myPoint, then you need adapter
code to convert between two identical structures when calling pythagoras
and whizzbanggui from the same program. So that's not a good solution either.