Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9de38825
Commit
9de38825
authored
Mar 24, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Move casemap tables to libwine_port.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a67dca1b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
unicode.h
include/wine/unicode.h
+2
-2
Makefile.in
libs/port/Makefile.in
+1
-0
casemap.c
libs/port/casemap.c
+2
-2
Makefile.in
libs/wine/Makefile.in
+0
-1
make_unicode
tools/make_unicode
+9
-9
No files found.
include/wine/unicode.h
View file @
9de38825
...
@@ -124,13 +124,13 @@ WINE_UNICODE_INLINE int wine_is_dbcs_leadbyte( const union cptable *table, unsig
...
@@ -124,13 +124,13 @@ WINE_UNICODE_INLINE int wine_is_dbcs_leadbyte( const union cptable *table, unsig
WINE_UNICODE_INLINE
WCHAR
tolowerW
(
WCHAR
ch
)
WINE_UNICODE_INLINE
WCHAR
tolowerW
(
WCHAR
ch
)
{
{
extern
WINE_UNICODE_API
const
WCHAR
wine_casemap_lower
[];
extern
const
WCHAR
wine_casemap_lower
[];
return
ch
+
wine_casemap_lower
[
wine_casemap_lower
[
ch
>>
8
]
+
(
ch
&
0xff
)];
return
ch
+
wine_casemap_lower
[
wine_casemap_lower
[
ch
>>
8
]
+
(
ch
&
0xff
)];
}
}
WINE_UNICODE_INLINE
WCHAR
toupperW
(
WCHAR
ch
)
WINE_UNICODE_INLINE
WCHAR
toupperW
(
WCHAR
ch
)
{
{
extern
WINE_UNICODE_API
const
WCHAR
wine_casemap_upper
[];
extern
const
WCHAR
wine_casemap_upper
[];
return
ch
+
wine_casemap_upper
[
wine_casemap_upper
[
ch
>>
8
]
+
(
ch
&
0xff
)];
return
ch
+
wine_casemap_upper
[
wine_casemap_upper
[
ch
>>
8
]
+
(
ch
&
0xff
)];
}
}
...
...
libs/port/Makefile.in
View file @
9de38825
...
@@ -73,6 +73,7 @@ C_SRCS = \
...
@@ -73,6 +73,7 @@ C_SRCS = \
c_936.c
\
c_936.c
\
c_949.c
\
c_949.c
\
c_950.c
\
c_950.c
\
casemap.c
\
combclass.c
\
combclass.c
\
compose.c
\
compose.c
\
cpsymbol.c
\
cpsymbol.c
\
...
...
libs/
wine
/casemap.c
→
libs/
port
/casemap.c
View file @
9de38825
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#include "wine/unicode.h"
#include "wine/unicode.h"
const
WCHAR
wine_casemap_lower
[
4259
]
=
const
WCHAR
DECLSPEC_HIDDEN
wine_casemap_lower
[
4259
]
=
{
{
/* index */
/* index */
0x01bf
,
0x02bf
,
0x03bf
,
0x044f
,
0x054f
,
0x064f
,
0x0100
,
0x0100
,
0x01bf
,
0x02bf
,
0x03bf
,
0x044f
,
0x054f
,
0x064f
,
0x0100
,
0x0100
,
...
@@ -562,7 +562,7 @@ const WCHAR wine_casemap_lower[4259] =
...
@@ -562,7 +562,7 @@ const WCHAR wine_casemap_lower[4259] =
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
,
0x0000
};
};
const
WCHAR
wine_casemap_upper
[
4828
]
=
const
WCHAR
DECLSPEC_HIDDEN
wine_casemap_upper
[
4828
]
=
{
{
/* index */
/* index */
0x019f
,
0x029f
,
0x039f
,
0x045a
,
0x0556
,
0x0656
,
0x0100
,
0x0100
,
0x019f
,
0x029f
,
0x039f
,
0x045a
,
0x0556
,
0x0656
,
0x0100
,
0x0100
,
...
...
libs/wine/Makefile.in
View file @
9de38825
...
@@ -2,7 +2,6 @@ EXTRALIBS = $(DL_LIBS) $(COREFOUNDATION_LIBS) $(CORESERVICES_LIBS)
...
@@ -2,7 +2,6 @@ EXTRALIBS = $(DL_LIBS) $(COREFOUNDATION_LIBS) $(CORESERVICES_LIBS)
EXTRADEFS
=
-DWINE_UNICODE_API
=
""
EXTRADEFS
=
-DWINE_UNICODE_API
=
""
C_SRCS
=
\
C_SRCS
=
\
casemap.c
\
collation.c
\
collation.c
\
config.c
\
config.c
\
debug.c
\
debug.c
\
...
...
tools/make_unicode
View file @
9de38825
...
@@ -1598,7 +1598,7 @@ sub dump_mirroring($)
...
@@ -1598,7 +1598,7 @@ sub dump_mirroring($)
print
OUTPUT
"/* generated from $UNIDATA/BidiMirroring.txt */\n"
;
print
OUTPUT
"/* generated from $UNIDATA/BidiMirroring.txt */\n"
;
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
(
"DECLSPEC_HIDDEN
wine_mirror_map"
,
@mirror_table
);
dump_case_table
(
"
wine_mirror_map"
,
@mirror_table
);
close
OUTPUT
;
close
OUTPUT
;
save_file
(
$filename
);
save_file
(
$filename
);
}
}
...
@@ -1756,9 +1756,9 @@ sub dump_digit_folding($)
...
@@ -1756,9 +1756,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
(
"DECLSPEC_HIDDEN
wine_digitmap"
,
@digitmap_table
);
dump_case_table
(
"
wine_digitmap"
,
@digitmap_table
);
print
OUTPUT
"\n"
;
print
OUTPUT
"\n"
;
DUMP_CASE_TABLE
(
"DECLSPEC_HIDDEN
wine_compatmap"
,
@compatmap_table
);
dump_case_table
(
"
wine_compatmap"
,
@compatmap_table
);
close
OUTPUT
;
close
OUTPUT
;
save_file
(
$filename
);
save_file
(
$filename
);
}
}
...
@@ -1766,7 +1766,7 @@ sub dump_digit_folding($)
...
@@ -1766,7 +1766,7 @@ sub dump_digit_folding($)
################################################################
################################################################
# dump the case mapping tables
# dump the case mapping tables
sub
DUMP_CASE_MAPPINGS
($)
sub
dump_case_mappings
($)
{
{
my
$filename
=
shift
;
my
$filename
=
shift
;
open
OUTPUT
,
">$filename.new"
or
die
"Cannot create $filename"
;
open
OUTPUT
,
">$filename.new"
or
die
"Cannot create $filename"
;
...
@@ -1776,9 +1776,9 @@ sub DUMP_CASE_MAPPINGS($)
...
@@ -1776,9 +1776,9 @@ sub DUMP_CASE_MAPPINGS($)
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_casemap_lower"
,
@tolower_table
);
dump_case_table
(
"wine_casemap_lower"
,
@tolower_table
);
print
OUTPUT
"\n"
;
print
OUTPUT
"\n"
;
DUMP_CASE_TABLE
(
"wine_casemap_upper"
,
@toupper_table
);
dump_case_table
(
"wine_casemap_upper"
,
@toupper_table
);
close
OUTPUT
;
close
OUTPUT
;
save_file
(
$filename
);
save_file
(
$filename
);
}
}
...
@@ -1786,7 +1786,7 @@ sub DUMP_CASE_MAPPINGS($)
...
@@ -1786,7 +1786,7 @@ sub DUMP_CASE_MAPPINGS($)
################################################################
################################################################
# dump a case mapping table
# dump a case mapping table
sub
DUMP_CASE_TABLE
($@)
sub
dump_case_table
($@)
{
{
my
(
$name
,
@table
)
=
@_
;
my
(
$name
,
@table
)
=
@_
;
...
@@ -1835,7 +1835,7 @@ sub DUMP_CASE_TABLE($@)
...
@@ -1835,7 +1835,7 @@ sub DUMP_CASE_TABLE($@)
# dump the table
# dump the table
printf
OUTPUT
"const WCHAR %s[%d] =\n"
,
$name
,
$index
*
256
+
512
-
$removed
;
printf
OUTPUT
"const WCHAR
DECLSPEC_HIDDEN
%s[%d] =\n"
,
$name
,
$index
*
256
+
512
-
$removed
;
printf
OUTPUT
"{\n /* index */\n"
;
printf
OUTPUT
"{\n /* index */\n"
;
printf
OUTPUT
"%s,\n"
,
DUMP_ARRAY
(
"0x%04x"
,
256
,
@filled
);
printf
OUTPUT
"%s,\n"
,
DUMP_ARRAY
(
"0x%04x"
,
256
,
@filled
);
printf
OUTPUT
" /* defaults */\n"
;
printf
OUTPUT
" /* defaults */\n"
;
...
@@ -2766,7 +2766,7 @@ sub REPLACE_IN_FILE($@)
...
@@ -2766,7 +2766,7 @@ sub REPLACE_IN_FILE($@)
chdir
".."
if
-
f
"./make_unicode"
;
chdir
".."
if
-
f
"./make_unicode"
;
READ_DEFAULTS
(
$DEFAULTS
);
READ_DEFAULTS
(
$DEFAULTS
);
DUMP_CASE_MAPPINGS
(
"libs/wine
/casemap.c"
);
dump_case_mappings
(
"libs/port
/casemap.c"
);
DUMP_SORTKEYS
(
"libs/wine/collation.c"
,
READ_SORTKEYS_FILE
()
);
DUMP_SORTKEYS
(
"libs/wine/collation.c"
,
READ_SORTKEYS_FILE
()
);
dump_compose_table
(
"libs/port/compose.c"
);
dump_compose_table
(
"libs/port/compose.c"
);
dump_decompose_table
(
"libs/port/decompose.c"
);
dump_decompose_table
(
"libs/port/decompose.c"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment