Make HB_PRIVATE more useful
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 13 May 2010 03:46:16 +0000 (23:46 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Thu, 13 May 2010 03:46:16 +0000 (23:46 -0400)
So we can apply it to class methods also.  Not sure if that works!

src/hb-blob-private.h
src/hb-font-private.hh
src/hb-private.h
src/hb-unicode-private.h

index 26cad0a..c91af65 100644 (file)
@@ -50,7 +50,7 @@ struct _hb_blob_t {
   void *user_data;
 };
 
-HB_INTERNAL hb_blob_t _hb_blob_nil;
+extern HB_INTERNAL hb_blob_t _hb_blob_nil;
 
 HB_END_DECLS
 
index ec07931..0d82850 100644 (file)
@@ -50,8 +50,8 @@ struct _hb_font_funcs_t {
   hb_font_get_kerning_func_t           get_kerning;
 };
 
-HB_INTERNAL hb_font_funcs_t
-_hb_font_funcs_nil;
+extern HB_INTERNAL hb_font_funcs_t _hb_font_funcs_nil;
+
 
 /*
  * hb_face_t
index 03c53fb..6108d40 100644 (file)
 #endif
 
 #ifndef HB_INTERNAL
-# define HB_INTERNAL extern __attribute__((__visibility__("hidden")))
+# define HB_INTERNAL __attribute__((__visibility__("hidden")))
 #endif
 
 
index ba530d2..01272da 100644 (file)
@@ -49,8 +49,7 @@ struct _hb_unicode_funcs_t {
   hb_unicode_get_eastasian_width_func_t                get_eastasian_width;
 };
 
-HB_INTERNAL hb_unicode_funcs_t
-_hb_unicode_funcs_nil;
+extern HB_INTERNAL hb_unicode_funcs_t _hb_unicode_funcs_nil;
 
 
 HB_INTERNAL hb_direction_t