[HarfBuzz] harfbuzz: Branch 'master' - 2 commits
Behdad Esfahbod
behdad at kemper.freedesktop.org
Sun Nov 11 21:35:39 UTC 2018
src/hb-coretext.cc | 8 ++++----
src/hb-directwrite.cc | 4 ++--
src/hb-face.cc | 2 +-
src/hb-face.hh | 2 +-
src/hb-fallback-shape.cc | 4 ++--
src/hb-graphite2.cc | 4 ++--
src/hb-ot-shape.cc | 4 ++--
src/hb-shaper.hh | 3 ++-
src/hb-uniscribe.cc | 4 ++--
9 files changed, 18 insertions(+), 17 deletions(-)
New commits:
commit 1beacdded9cd1e4467b52244cdfd8497516eb107
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Sun Nov 11 16:35:28 2018 -0500
Minor
diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc
index 893a8761..7509b8a3 100644
--- a/src/hb-coretext.cc
+++ b/src/hb-coretext.cc
@@ -101,10 +101,10 @@ _hb_cg_font_release (void *data)
}
-HB_SHAPER_DATA_ENSURE_DEFINE(coretext, face)
+HB_SHAPER_DATA_ENSURE_DEFINE(coretext, face);
HB_SHAPER_DATA_ENSURE_DEFINE_WITH_CONDITION(coretext, font,
fabs (CTFontGetSize((CTFontRef) data) - coretext_font_size_from_ptem (font->ptem)) <= .5
-)
+);
static CTFontDescriptorRef
get_last_resort_font_desc (void)
@@ -1152,8 +1152,8 @@ fail:
* AAT shaper
*/
-HB_SHAPER_DATA_ENSURE_DEFINE(coretext_aat, face)
-HB_SHAPER_DATA_ENSURE_DEFINE(coretext_aat, font)
+HB_SHAPER_DATA_ENSURE_DEFINE(coretext_aat, face);
+HB_SHAPER_DATA_ENSURE_DEFINE(coretext_aat, font);
/*
* shaper face data
diff --git a/src/hb-directwrite.cc b/src/hb-directwrite.cc
index 35197c23..cc8f6cc0 100644
--- a/src/hb-directwrite.cc
+++ b/src/hb-directwrite.cc
@@ -31,8 +31,8 @@
#include "hb-directwrite.h"
-HB_SHAPER_DATA_ENSURE_DEFINE (directwrite, face)
-HB_SHAPER_DATA_ENSURE_DEFINE (directwrite, font)
+HB_SHAPER_DATA_ENSURE_DEFINE (directwrite, face);
+HB_SHAPER_DATA_ENSURE_DEFINE (directwrite, font);
/*
diff --git a/src/hb-fallback-shape.cc b/src/hb-fallback-shape.cc
index dc8536c8..ccfeba4b 100644
--- a/src/hb-fallback-shape.cc
+++ b/src/hb-fallback-shape.cc
@@ -28,8 +28,8 @@
#include "hb-shaper-impl.hh"
-HB_SHAPER_DATA_ENSURE_DEFINE(fallback, face)
-HB_SHAPER_DATA_ENSURE_DEFINE(fallback, font)
+HB_SHAPER_DATA_ENSURE_DEFINE(fallback, face);
+HB_SHAPER_DATA_ENSURE_DEFINE(fallback, font);
/*
diff --git a/src/hb-graphite2.cc b/src/hb-graphite2.cc
index 24ee3d50..38c2cd81 100644
--- a/src/hb-graphite2.cc
+++ b/src/hb-graphite2.cc
@@ -46,8 +46,8 @@
**/
-HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, face)
-HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, font)
+HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, face);
+HB_SHAPER_DATA_ENSURE_DEFINE(graphite2, font);
/*
diff --git a/src/hb-ot-shape.cc b/src/hb-ot-shape.cc
index 99d6b9d4..92a4b53a 100644
--- a/src/hb-ot-shape.cc
+++ b/src/hb-ot-shape.cc
@@ -255,7 +255,7 @@ hb_ot_shape_collect_features (hb_ot_shape_planner_t *planner,
* shaper face data
*/
-HB_SHAPER_DATA_ENSURE_DEFINE(ot, face)
+HB_SHAPER_DATA_ENSURE_DEFINE(ot, face);
struct hb_ot_face_data_t {};
@@ -275,7 +275,7 @@ _hb_ot_shaper_face_data_destroy (hb_ot_face_data_t *data)
* shaper font data
*/
-HB_SHAPER_DATA_ENSURE_DEFINE(ot, font)
+HB_SHAPER_DATA_ENSURE_DEFINE(ot, font);
struct hb_ot_font_data_t {};
diff --git a/src/hb-shaper.hh b/src/hb-shaper.hh
index 361165e4..e3be4119 100644
--- a/src/hb-shaper.hh
+++ b/src/hb-shaper.hh
@@ -119,7 +119,8 @@ HB_SHAPER_DATA_ENSURE_FUNC(shaper, object) (hb_##object##_t *object) \
} \
} \
return data != nullptr && (void *) data != HB_SHAPER_DATA_INVALID; \
-}
+} \
+static_assert (true, "") /* Require semicolon. */
/* For embedding in face / font / ... */
diff --git a/src/hb-uniscribe.cc b/src/hb-uniscribe.cc
index e77825b3..76da20df 100644
--- a/src/hb-uniscribe.cc
+++ b/src/hb-uniscribe.cc
@@ -314,8 +314,8 @@ struct range_record_t {
unsigned int index_last; /* == end - 1 */
};
-HB_SHAPER_DATA_ENSURE_DEFINE(uniscribe, face)
-HB_SHAPER_DATA_ENSURE_DEFINE(uniscribe, font)
+HB_SHAPER_DATA_ENSURE_DEFINE(uniscribe, face);
+HB_SHAPER_DATA_ENSURE_DEFINE(uniscribe, font);
/*
commit e88d47b7f2f9aee5b0b3cdc0b8f708884175a71f
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Sun Nov 11 16:25:43 2018 -0500
Minor
diff --git a/src/hb-face.cc b/src/hb-face.cc
index 952e6a6a..da73433c 100644
--- a/src/hb-face.cc
+++ b/src/hb-face.cc
@@ -96,7 +96,7 @@ DEFINE_NULL_INSTANCE (hb_face_t) =
#undef HB_SHAPER_IMPLEMENT
},
- HB_ATOMIC_PTR_INIT (nullptr), /* shape_plans */
+ /* Zero for the rest is fine. */
};
diff --git a/src/hb-face.hh b/src/hb-face.hh
index 726f6883..5d22f4ad 100644
--- a/src/hb-face.hh
+++ b/src/hb-face.hh
@@ -54,7 +54,7 @@ struct hb_face_t
struct hb_shaper_data_t shaper_data; /* Various shaper data. */
- hb_ot_face_t table;
+ hb_ot_face_t table; /* All the face's tables. */
/* Cache */
struct plan_node_t
More information about the HarfBuzz
mailing list