From: Behdad Esfahbod Date: Fri, 18 May 2012 00:55:12 +0000 (-0400) Subject: Don't use min/max as function names X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f039e79d5438a8fc4a3ec11a387bbfc0f6b83024;p=platform%2Fupstream%2FlibHarfBuzzSharp.git Don't use min/max as function names They can be macros on some systems. Eg. mingw32. --- diff --git a/src/hb-set-private.hh b/src/hb-set-private.hh index 3a7eb81..717e530 100644 --- a/src/hb-set-private.hh +++ b/src/hb-set-private.hh @@ -102,7 +102,7 @@ struct _hb_set_t for (unsigned int i = 0; i < ELTS; i++) elts[i] &= ~other->elts[i]; } - inline hb_codepoint_t min (void) const + inline hb_codepoint_t get_min (void) const { for (unsigned int i = 0; i < ELTS; i++) if (elts[i]) @@ -111,7 +111,7 @@ struct _hb_set_t return i * BITS + j; return 0; } - inline hb_codepoint_t max (void) const + inline hb_codepoint_t get_max (void) const { for (unsigned int i = ELTS; i; i--) if (elts[i - 1]) diff --git a/src/hb-set.cc b/src/hb-set.cc index 9d013a1..0e8adde 100644 --- a/src/hb-set.cc +++ b/src/hb-set.cc @@ -167,11 +167,11 @@ hb_set_subtract (hb_set_t *set, hb_codepoint_t hb_set_min (hb_set_t *set) { - return set->min (); + return set->get_min (); } hb_codepoint_t hb_set_max (hb_set_t *set) { - return set->max (); + return set->get_max (); }