Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
8355a201
Commit
8355a201
authored
Jun 25, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
048588ed
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
13 additions
and
14 deletions
+13
-14
Makefile.in
dlls/usp10/Makefile.in
+2
-0
bidi.c
dlls/usp10/bidi.c
+1
-3
breaking.c
dlls/usp10/breaking.c
+1
-1
indic.c
dlls/usp10/indic.c
+1
-1
opentype.c
dlls/usp10/opentype.c
+1
-1
usp10.c
dlls/usp10/usp10.c
+7
-8
No files found.
dlls/usp10/Makefile.in
View file @
8355a201
...
...
@@ -2,6 +2,8 @@ MODULE = usp10.dll
IMPORTLIB
=
usp10
IMPORTS
=
advapi32 user32 gdi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
bidi.c
\
bracket.c
\
...
...
dlls/usp10/bidi.c
View file @
8355a201
...
...
@@ -41,8 +41,6 @@
* has been modified.
*/
#include "config.h"
#include <stdarg.h>
#include <stdlib.h>
#include "windef.h"
...
...
@@ -640,7 +638,7 @@ typedef struct tagBracketPair
int
end
;
}
BracketPair
;
static
int
compr
(
const
void
*
a
,
const
void
*
b
)
static
int
__cdecl
compr
(
const
void
*
a
,
const
void
*
b
)
{
return
((
BracketPair
*
)
a
)
->
start
-
((
BracketPair
*
)
b
)
->
start
;
}
...
...
dlls/usp10/breaking.c
View file @
8355a201
...
...
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
...
...
dlls/usp10/indic.c
View file @
8355a201
...
...
@@ -18,7 +18,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*
*/
#include "config.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
...
...
dlls/usp10/opentype.c
View file @
8355a201
...
...
@@ -658,7 +658,7 @@ static VOID *load_CMAP_format12_table(HDC hdc, ScriptCache *psc)
return
NULL
;
}
static
int
compare_group
(
const
void
*
a
,
const
void
*
b
)
static
int
__cdecl
compare_group
(
const
void
*
a
,
const
void
*
b
)
{
const
DWORD
*
chr
=
a
;
const
CMAP_SegmentedCoverage_group
*
group
=
b
;
...
...
dlls/usp10/usp10.c
View file @
8355a201
...
...
@@ -40,7 +40,6 @@
#include "wine/debug.h"
#include "wine/heap.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
uniscribe
);
...
...
@@ -876,7 +875,7 @@ static HRESULT init_script_cache(const HDC hdc, SCRIPT_CACHE *psc)
return
E_INVALIDARG
;
}
/* Ensure canonical result by zeroing extra space in lfFaceName */
size
=
strlenW
(
lf
.
lfFaceName
);
size
=
l
strlenW
(
lf
.
lfFaceName
);
memset
(
lf
.
lfFaceName
+
size
,
0
,
sizeof
(
lf
.
lfFaceName
)
-
size
*
sizeof
(
WCHAR
));
EnterCriticalSection
(
&
cs_script_cache
);
...
...
@@ -952,7 +951,7 @@ static DWORD decode_surrogate_pair(const WCHAR *str, unsigned int index, unsigne
return
0
;
}
static
int
usp10_compare_script_range
(
const
void
*
key
,
const
void
*
value
)
static
int
__cdecl
usp10_compare_script_range
(
const
void
*
key
,
const
void
*
value
)
{
const
struct
usp10_script_range
*
range
=
value
;
const
DWORD
*
ch
=
key
;
...
...
@@ -978,7 +977,7 @@ static enum usp10_script get_char_script(const WCHAR *str, unsigned int index,
return
Script_CR
;
/* These punctuation characters are separated out as Latin punctuation */
if
(
strchrW
(
latin_punc
,
str
[
index
]))
if
(
wcschr
(
latin_punc
,
str
[
index
]))
return
Script_Punctuation2
;
/* These chars are itemized as Punctuation by Windows */
...
...
@@ -1023,7 +1022,7 @@ static enum usp10_script get_char_script(const WCHAR *str, unsigned int index,
return
range
->
script
;
}
static
int
compare_FindGlyph
(
const
void
*
a
,
const
void
*
b
)
static
int
__cdecl
compare_FindGlyph
(
const
void
*
a
,
const
void
*
b
)
{
const
FindGlyph_struct
*
find
=
(
FindGlyph_struct
*
)
a
;
const
WORD
*
idx
=
(
WORD
*
)
b
;
...
...
@@ -1534,7 +1533,7 @@ static HRESULT _ItemizeInternal(const WCHAR *pwcInChars, int cInChars,
{
if
(
i
>
0
&&
i
<
cInChars
-
1
&&
script_is_numeric
(
scripts
[
i
-
1
])
&&
strchrW
(
math_punc
,
pwcInChars
[
i
]))
wcschr
(
math_punc
,
pwcInChars
[
i
]))
{
if
(
script_is_numeric
(
scripts
[
i
+
1
]))
{
...
...
@@ -1543,7 +1542,7 @@ static HRESULT _ItemizeInternal(const WCHAR *pwcInChars, int cInChars,
strength
[
i
]
=
strength
[
i
-
1
];
i
++
;
}
else
if
(
strchrW
(
repeatable_math_punc
,
pwcInChars
[
i
]))
else
if
(
wcschr
(
repeatable_math_punc
,
pwcInChars
[
i
]))
{
int
j
;
for
(
j
=
i
+
1
;
j
<
cInChars
;
j
++
)
...
...
@@ -1967,7 +1966,7 @@ static void find_fallback_font(enum usp10_script scriptid, WCHAR *FaceName)
DWORD
count
=
LF_FACESIZE
*
sizeof
(
WCHAR
);
DWORD
type
;
s
printfW
(
value
,
szFmt
,
scriptInformation
[
scriptid
].
scriptTag
);
s
wprintf
(
value
,
ARRAY_SIZE
(
value
)
,
szFmt
,
scriptInformation
[
scriptid
].
scriptTag
);
if
(
RegQueryValueExW
(
hkey
,
value
,
0
,
&
type
,
(
BYTE
*
)
FaceName
,
&
count
))
lstrcpyW
(
FaceName
,
scriptInformation
[
scriptid
].
fallbackFont
);
RegCloseKey
(
hkey
);
...
...
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