Module: wine Branch: master Commit: a37c38191ec096972119f2a57f46858a59588eff URL: https://source.winehq.org/git/wine.git/?a=commit;h=a37c38191ec096972119f2a57...
Author: Alexandre Julliard julliard@winehq.org Date: Tue Apr 2 16:38:04 2019 +0200
libport: Don't hide the casemap and wctype tables.
For libwine backwards compatibility.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
libs/port/casemap.c | 4 ++-- libs/port/wctype.c | 2 +- tools/make_unicode | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/libs/port/casemap.c b/libs/port/casemap.c index d440fce..1c975db 100644 --- a/libs/port/casemap.c +++ b/libs/port/casemap.c @@ -4,7 +4,7 @@
#include "wine/unicode.h"
-const WCHAR DECLSPEC_HIDDEN wine_casemap_lower[4259] = +const WCHAR wine_casemap_lower[4259] = { /* index */ 0x01bf, 0x02bf, 0x03bf, 0x044f, 0x054f, 0x064f, 0x0100, 0x0100, @@ -562,7 +562,7 @@ const WCHAR DECLSPEC_HIDDEN wine_casemap_lower[4259] = 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000, 0x0000 };
-const WCHAR DECLSPEC_HIDDEN wine_casemap_upper[4828] = +const WCHAR wine_casemap_upper[4828] = { /* index */ 0x019f, 0x029f, 0x039f, 0x045a, 0x0556, 0x0656, 0x0100, 0x0100, diff --git a/libs/port/wctype.c b/libs/port/wctype.c index bb0eab5..4153cb8 100644 --- a/libs/port/wctype.c +++ b/libs/port/wctype.c @@ -3,7 +3,7 @@
#include "wine/unicode.h"
-const unsigned short DECLSPEC_HIDDEN wine_wctype_table[17152] = +const unsigned short wine_wctype_table[17152] = { /* offsets */ 0x0100, 0x0200, 0x0300, 0x0400, 0x0500, 0x0600, 0x0700, 0x0800, diff --git a/tools/make_unicode b/tools/make_unicode index 0f3cdcc..5060548 100755 --- a/tools/make_unicode +++ b/tools/make_unicode @@ -1599,7 +1599,7 @@ sub dump_mirroring($) print OUTPUT "/* generated from $UNIDATA/BidiMirroring.txt */\n"; print OUTPUT "/* DO NOT EDIT!! */\n\n"; print OUTPUT "#include "wine/unicode.h"\n\n"; - dump_case_table( "wine_mirror_map", @mirror_table ); + dump_case_table( "DECLSPEC_HIDDEN wine_mirror_map", @mirror_table ); close OUTPUT; save_file($filename); } @@ -1757,9 +1757,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); } @@ -1836,7 +1836,7 @@ sub dump_case_table($@)
# dump the table
- printf OUTPUT "const WCHAR DECLSPEC_HIDDEN %s[%d] =\n", $name, $index * 256 + 512 - $removed; + printf OUTPUT "const WCHAR %s[%d] =\n", $name, $index * 256 + 512 - $removed; printf OUTPUT "{\n /* index */\n"; printf OUTPUT "%s,\n", DUMP_ARRAY( "0x%04x", 256, @filled ); printf OUTPUT " /* defaults */\n"; @@ -1892,7 +1892,7 @@ sub dump_simple_mapping($$@) my $def = shift; my @array = compress_array( 256, $def, @_[0..65535] );
- printf OUTPUT "const unsigned short DECLSPEC_HIDDEN %s[%d] =\n{\n", $name, $#array+1; + printf OUTPUT "const unsigned short %s[%d] =\n{\n", $name, $#array+1; printf OUTPUT " /* offsets */\n%s,\n", DUMP_ARRAY( "0x%04x", 0, @array[0..255] ); printf OUTPUT " /* values */\n%s\n};\n", DUMP_ARRAY( "0x%04x", 0, @array[256..$#array] ); }