Alexandre Julliard : libport: Mark internal functions and data tables as hidden.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Feb 24 11:01:42 CST 2016


Module: wine
Branch: master
Commit: 34174e2ca8cb61150d3d880400d8231a39d38307
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=34174e2ca8cb61150d3d880400d8231a39d38307

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Wed Feb 24 13:36:41 2016 +0900

libport: Mark internal functions and data tables as hidden.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 libs/port/compose.c   | 2 +-
 libs/port/decompose.c | 2 +-
 libs/port/digitmap.c  | 4 ++--
 libs/port/fold.c      | 4 ++--
 libs/port/mbtowc.c    | 2 +-
 libs/port/utf8.c      | 2 +-
 libs/port/wctomb.c    | 2 +-
 tools/make_unicode    | 8 ++++----
 8 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/libs/port/compose.c b/libs/port/compose.c
index da49b44..8903d32 100644
--- a/libs/port/compose.c
+++ b/libs/port/compose.c
@@ -392,7 +392,7 @@ static inline int binary_search( WCHAR ch, int low, int high )
     return -1;
 }
 
-WCHAR wine_compose( const WCHAR *str )
+WCHAR DECLSPEC_HIDDEN wine_compose( const WCHAR *str )
 {
     int pos, idx = 1, start = 0, count = 70;
     for (;;)
diff --git a/libs/port/decompose.c b/libs/port/decompose.c
index 3e4a28b..34e83ec 100644
--- a/libs/port/decompose.c
+++ b/libs/port/decompose.c
@@ -747,7 +747,7 @@ static const WCHAR table[4704] =
     0x05d1, 0x05bf, 0x05db, 0x05bf, 0x05e4, 0x05bf, 0x0000, 0x0000
 };
 
-unsigned int wine_decompose( WCHAR ch, WCHAR *dst, unsigned int dstlen )
+unsigned int DECLSPEC_HIDDEN wine_decompose( WCHAR ch, WCHAR *dst, unsigned int dstlen )
 {
     const WCHAR *ptr = table + table[table[ch >> 8] + ((ch >> 4) & 0x0f)] + 2 * (ch & 0xf);
     unsigned int res;
diff --git a/libs/port/digitmap.c b/libs/port/digitmap.c
index e6b398d..c200497 100644
--- a/libs/port/digitmap.c
+++ b/libs/port/digitmap.c
@@ -4,7 +4,7 @@
 
 #include "wine/unicode.h"
 
-const WCHAR wine_digitmap[5933] =
+const WCHAR DECLSPEC_HIDDEN wine_digitmap[5933] =
 {
     /* index */
     0x01d0, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x028a, 0x0384,
@@ -786,7 +786,7 @@ const WCHAR wine_digitmap[5933] =
     0x0000, 0x0000
 };
 
-const WCHAR wine_compatmap[1497] =
+const WCHAR DECLSPEC_HIDDEN wine_compatmap[1497] =
 {
     /* index */
     0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100,
diff --git a/libs/port/fold.c b/libs/port/fold.c
index 87a4a41..738469c 100644
--- a/libs/port/fold.c
+++ b/libs/port/fold.c
@@ -22,13 +22,13 @@
 
 static inline WCHAR to_unicode_digit( WCHAR ch )
 {
-    extern const WCHAR wine_digitmap[];
+    extern const WCHAR wine_digitmap[] DECLSPEC_HIDDEN;
     return ch + wine_digitmap[wine_digitmap[ch >> 8] + (ch & 0xff)];
 }
 
 static inline WCHAR to_unicode_native( WCHAR ch )
 {
-    extern const WCHAR wine_compatmap[];
+    extern const WCHAR wine_compatmap[] DECLSPEC_HIDDEN;
     return ch + wine_compatmap[wine_compatmap[ch >> 8] + (ch & 0xff)];
 }
 
diff --git a/libs/port/mbtowc.c b/libs/port/mbtowc.c
index 9a4bc23..fd7764e 100644
--- a/libs/port/mbtowc.c
+++ b/libs/port/mbtowc.c
@@ -22,7 +22,7 @@
 
 #include "wine/unicode.h"
 
-extern unsigned int wine_decompose( WCHAR ch, WCHAR *dst, unsigned int dstlen );
+extern unsigned int wine_decompose( WCHAR ch, WCHAR *dst, unsigned int dstlen ) DECLSPEC_HIDDEN;
 
 /* check the code whether it is in Unicode Private Use Area (PUA). */
 /* MB_ERR_INVALID_CHARS raises an error converting from 1-byte character to PUA. */
diff --git a/libs/port/utf8.c b/libs/port/utf8.c
index 5943dda..f47561e 100644
--- a/libs/port/utf8.c
+++ b/libs/port/utf8.c
@@ -22,7 +22,7 @@
 
 #include "wine/unicode.h"
 
-extern WCHAR wine_compose( const WCHAR *str );
+extern WCHAR wine_compose( const WCHAR *str ) DECLSPEC_HIDDEN;
 
 /* number of following bytes in sequence based on first byte value (for bytes above 0x7f) */
 static const char utf8_length[128] =
diff --git a/libs/port/wctomb.c b/libs/port/wctomb.c
index e7f35e5..65e4aa0 100644
--- a/libs/port/wctomb.c
+++ b/libs/port/wctomb.c
@@ -22,7 +22,7 @@
 
 #include "wine/unicode.h"
 
-extern WCHAR wine_compose( const WCHAR *str );
+extern WCHAR wine_compose( const WCHAR *str ) DECLSPEC_HIDDEN;
 
 /****************************************************************/
 /* sbcs support */
diff --git a/tools/make_unicode b/tools/make_unicode
index 19c6cb1..3a8d610 100755
--- a/tools/make_unicode
+++ b/tools/make_unicode
@@ -1599,9 +1599,9 @@ sub dump_digit_folding($)
     print OUTPUT "/* DO NOT EDIT!! */\n\n";
     print OUTPUT "#include \"wine/unicode.h\"\n\n";
 
-    DUMP_CASE_TABLE( "wine_digitmap",  @digitmap_table );
+    DUMP_CASE_TABLE( "DECLSPEC_HIDDEN wine_digitmap",  @digitmap_table );
     print OUTPUT "\n";
-    DUMP_CASE_TABLE( "wine_compatmap", @compatmap_table );
+    DUMP_CASE_TABLE( "DECLSPEC_HIDDEN wine_compatmap", @compatmap_table );
     close OUTPUT;
     save_file($filename);
 }
@@ -2113,7 +2113,7 @@ static inline int binary_search( WCHAR ch, int low, int high )
     return -1;
 }
 
-WCHAR wine_compose( const WCHAR *str )
+WCHAR DECLSPEC_HIDDEN wine_compose( const WCHAR *str )
 {
     int pos, idx = 1, start = 0, count = $count;
     for (;;)
@@ -2218,7 +2218,7 @@ sub dump_decompose_table($)
 
     printf OUTPUT "\n};\n\n";
     print OUTPUT <<"EOF";
-unsigned int wine_decompose( WCHAR ch, WCHAR *dst, unsigned int dstlen )
+unsigned int DECLSPEC_HIDDEN wine_decompose( WCHAR ch, WCHAR *dst, unsigned int dstlen )
 {
     const WCHAR *ptr = table + table[table[ch >> 8] + ((ch >> 4) & 0x0f)] + 2 * (ch & 0xf);
     unsigned int res;




More information about the wine-cvs mailing list