Not really. int has been used for booleans for some time and the 0 = false, 1 = true convention is well established. The purpose of enums is to support remapping. Under no circumstances would one expect to see some platform define ODP_TRUE to be anything other than 1 or ODP_FALSE to be anything other than 0. So in this case an enum is just adding syntactic clutter for no benefit.
On Fri, Nov 28, 2014 at 7:27 AM, Taras Kondratiuk < [email protected]> wrote: > On 11/27/2014 07:38 PM, Bill Fischofer wrote: > >> I agree. This type is supposed to be just documentation so >> >> typedef int odp_bool_t; >> >> is simplest and best. >> > > Won't enum be more clear? {ODP_FALSE, ODP_TRUE} >
_______________________________________________ lng-odp mailing list [email protected] http://lists.linaro.org/mailman/listinfo/lng-odp
