Re: [xkbcommon] Make C++ happy.

2013-09-26 Thread Ran Benita
On Thu, Sep 26, 2013 at 09:35:33AM -0300, Wander Lairson Costa wrote: For most functions taking an enum flags parameter, we use 0 value to indicate that no flags should be applied. C++ has a stronger type system than C and will not implicitly convert int's to enum's. Thus, we create valid 0

Re: [xkbcommon] Make C++ happy.

2013-09-26 Thread Bill Spitzak
Wander Lairson Costa wrote: /** Flags for keymap compilation. */ enum xkb_keymap_compile_flags { +/** Do not apply any flag. */ +XKB_MAP_COMPILE_NO_FLAG = 0, /** Apparently you can't have empty enums. What a drag. */ XKB_MAP_COMPILE_PLACEHOLDER = 0 }; I think you can

Re: [xkbcommon] Make C++ happy.

2013-09-26 Thread Wander Lairson Costa
2013/9/26 Bill Spitzak spit...@gmail.com: Wander Lairson Costa wrote: /** Flags for keymap compilation. */ enum xkb_keymap_compile_flags { +/** Do not apply any flag. */ +XKB_MAP_COMPILE_NO_FLAG = 0, /** Apparently you can't have empty enums. What a drag. */