Avoid enum trailing commas

Based on patch from Jonathan Kew.
This commit is contained in:
Behdad Esfahbod 2012-01-16 16:39:40 -05:00
parent 3d0ddd1280
commit e8eedf2687
2 changed files with 4 additions and 2 deletions

View File

@ -61,7 +61,7 @@ enum indic_position_t {
POS_BASE, POS_BASE,
POS_ABOVE, POS_ABOVE,
POS_BELOW, POS_BELOW,
POS_POST, POS_POST
}; };
/* Categories used in IndicSyllabicCategory.txt from UCD */ /* Categories used in IndicSyllabicCategory.txt from UCD */
@ -321,7 +321,7 @@ enum {
HALF, HALF,
_VATU, _VATU,
PSTF, PSTF,
CJCT, CJCT
}; };
static const hb_tag_t indic_other_features[] = static const hb_tag_t indic_other_features[] =

View File

@ -55,6 +55,8 @@
enum hb_ot_complex_shaper_t { enum hb_ot_complex_shaper_t {
#define HB_COMPLEX_SHAPER_IMPLEMENT(name) hb_ot_complex_shaper_##name, #define HB_COMPLEX_SHAPER_IMPLEMENT(name) hb_ot_complex_shaper_##name,
HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS HB_COMPLEX_SHAPERS_IMPLEMENT_SHAPERS
/* Just here to avoid enum trailing comma: */
hb_ot_complex_shaper_generic = hb_ot_complex_shaper_default
#undef HB_COMPLEX_SHAPER_IMPLEMENT #undef HB_COMPLEX_SHAPER_IMPLEMENT
}; };