Shrink code size
authorBehdad Esfahbod <behdad@behdad.org>
Fri, 27 May 2011 22:15:56 +0000 (18:15 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 27 May 2011 22:15:56 +0000 (18:15 -0400)
src/hb-ot-map-private.hh
src/hb-ot-map.cc

index 2c8b99f..07a321f 100644 (file)
@@ -42,16 +42,7 @@ struct hb_ot_map_builder_t
 {
   public:
 
-  inline void add_feature (hb_tag_t tag, unsigned int value, bool global)
-  {
-    feature_info_t *info = feature_infos.push();
-    if (unlikely (!info)) return;
-    info->tag = tag;
-    info->seq = feature_infos.len;
-    info->max_value = value;
-    info->global = global;
-    info->default_value = global ? value : 0;
-  }
+  HB_INTERNAL void add_feature (hb_tag_t tag, unsigned int value, bool global);
 
   inline void add_bool_feature (hb_tag_t tag, bool global = true)
   { add_feature (tag, 1, global); }
index f178bed..68e1321 100644 (file)
@@ -64,6 +64,17 @@ hb_ot_map_t::add_lookups (hb_face_t    *face,
 }
 
 
+void hb_ot_map_builder_t::add_feature (hb_tag_t tag, unsigned int value, bool global)
+{
+  feature_info_t *info = feature_infos.push();
+  if (unlikely (!info)) return;
+  info->tag = tag;
+  info->seq = feature_infos.len;
+  info->max_value = value;
+  info->global = global;
+  info->default_value = global ? value : 0;
+}
+
 void
 hb_ot_map_builder_t::compile (hb_face_t *face,
                              const hb_segment_properties_t *props,