libport: Mark internal functions and data tables as hidden.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2016-02-24 13:36:41 +09:00
parent 1a16235de1
commit 34174e2ca8
8 changed files with 13 additions and 13 deletions

View File

@ -392,7 +392,7 @@ static inline int binary_search( WCHAR ch, int low, int high )
return -1; return -1;
} }
WCHAR wine_compose( const WCHAR *str ) WCHAR DECLSPEC_HIDDEN wine_compose( const WCHAR *str )
{ {
int pos, idx = 1, start = 0, count = 70; int pos, idx = 1, start = 0, count = 70;
for (;;) for (;;)

View File

@ -747,7 +747,7 @@ static const WCHAR table[4704] =
0x05d1, 0x05bf, 0x05db, 0x05bf, 0x05e4, 0x05bf, 0x0000, 0x0000 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); const WCHAR *ptr = table + table[table[ch >> 8] + ((ch >> 4) & 0x0f)] + 2 * (ch & 0xf);
unsigned int res; unsigned int res;

View File

@ -4,7 +4,7 @@
#include "wine/unicode.h" #include "wine/unicode.h"
const WCHAR wine_digitmap[5933] = const WCHAR DECLSPEC_HIDDEN wine_digitmap[5933] =
{ {
/* index */ /* index */
0x01d0, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x028a, 0x0384, 0x01d0, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x028a, 0x0384,
@ -786,7 +786,7 @@ const WCHAR wine_digitmap[5933] =
0x0000, 0x0000 0x0000, 0x0000
}; };
const WCHAR wine_compatmap[1497] = const WCHAR DECLSPEC_HIDDEN wine_compatmap[1497] =
{ {
/* index */ /* index */
0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100, 0x0100,

View File

@ -22,13 +22,13 @@
static inline WCHAR to_unicode_digit( WCHAR ch ) 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)]; return ch + wine_digitmap[wine_digitmap[ch >> 8] + (ch & 0xff)];
} }
static inline WCHAR to_unicode_native( WCHAR ch ) 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)]; return ch + wine_compatmap[wine_compatmap[ch >> 8] + (ch & 0xff)];
} }

View File

@ -22,7 +22,7 @@
#include "wine/unicode.h" #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). */ /* 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. */ /* MB_ERR_INVALID_CHARS raises an error converting from 1-byte character to PUA. */

View File

@ -22,7 +22,7 @@
#include "wine/unicode.h" #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) */ /* number of following bytes in sequence based on first byte value (for bytes above 0x7f) */
static const char utf8_length[128] = static const char utf8_length[128] =

View File

@ -22,7 +22,7 @@
#include "wine/unicode.h" #include "wine/unicode.h"
extern WCHAR wine_compose( const WCHAR *str ); extern WCHAR wine_compose( const WCHAR *str ) DECLSPEC_HIDDEN;
/****************************************************************/ /****************************************************************/
/* sbcs support */ /* sbcs support */

View File

@ -1599,9 +1599,9 @@ sub dump_digit_folding($)
print OUTPUT "/* DO NOT EDIT!! */\n\n"; print OUTPUT "/* DO NOT EDIT!! */\n\n";
print OUTPUT "#include \"wine/unicode.h\"\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"; print OUTPUT "\n";
DUMP_CASE_TABLE( "wine_compatmap", @compatmap_table ); DUMP_CASE_TABLE( "DECLSPEC_HIDDEN wine_compatmap", @compatmap_table );
close OUTPUT; close OUTPUT;
save_file($filename); save_file($filename);
} }
@ -2113,7 +2113,7 @@ static inline int binary_search( WCHAR ch, int low, int high )
return -1; return -1;
} }
WCHAR wine_compose( const WCHAR *str ) WCHAR DECLSPEC_HIDDEN wine_compose( const WCHAR *str )
{ {
int pos, idx = 1, start = 0, count = $count; int pos, idx = 1, start = 0, count = $count;
for (;;) for (;;)
@ -2218,7 +2218,7 @@ sub dump_decompose_table($)
printf OUTPUT "\n};\n\n"; printf OUTPUT "\n};\n\n";
print OUTPUT <<"EOF"; 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); const WCHAR *ptr = table + table[table[ch >> 8] + ((ch >> 4) & 0x0f)] + 2 * (ch & 0xf);
unsigned int res; unsigned int res;