And you can do #define фальш 0 #define щоправда 1 in your code Taras.
On 28 November 2014 at 13:42, Bill Fischofer <bill.fischo...@linaro.org> wrote: > 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 > <taras.kondrat...@linaro.org> 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 lng-odp@lists.linaro.org http://lists.linaro.org/mailman/listinfo/lng-odp