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
9c1ac515
Commit
9c1ac515
authored
May 11, 2001
by
Ian Pilcher
Committed by
Alexandre Julliard
May 11, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eliminate __compar_fn_t.
parent
c559735b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
afm.c
dlls/wineps/afm.c
+8
-4
No files found.
dlls/wineps/afm.c
View file @
9c1ac515
...
...
@@ -25,6 +25,9 @@ DEFAULT_DEBUG_CHANNEL(psdrv);
/* ptr to fonts for which we have afm files */
FONTFAMILY
*
PSDRV_AFMFontList
=
NULL
;
/* qsort/bsearch callback functions */
typedef
int
(
*
compar_callback_fn
)
(
const
void
*
,
const
void
*
);
/*******************************************************************************
* CheckMetrics
*
...
...
@@ -683,7 +686,7 @@ static BOOL SortFontMetrics()
qsort
(
aglCopy
,
PSDRV_AdobeGlyphList
.
size
,
sizeof
(
UNICODEGLYPH
),
(
__compar_fn_t
)
UnicodeGlyphByNameIndex
);
(
compar_callback_fn
)
UnicodeGlyphByNameIndex
);
}
for
(
i
=
0
;
i
<
afm
->
NumofMetrics
;
++
i
)
...
...
@@ -695,7 +698,7 @@ static BOOL SortFontMetrics()
pug
=
bsearch
(
&
ug
,
aglCopy
,
PSDRV_AdobeGlyphList
.
size
,
sizeof
(
UNICODEGLYPH
),
(
__compar_fn_t
)
UnicodeGlyphByNameIndex
);
(
compar_callback_fn
)
UnicodeGlyphByNameIndex
);
if
(
pug
==
NULL
)
{
WARN
(
"Glyph '%s' in font '%s' does not have a UV
\n
"
,
...
...
@@ -715,7 +718,8 @@ static BOOL SortFontMetrics()
/* typecast avoids compiler warning */
qsort
((
void
*
)(
afm
->
Encoding
->
glyphs
),
afm
->
Encoding
->
size
,
sizeof
(
UNICODEGLYPH
),
(
__compar_fn_t
)
UnicodeGlyphByUV
);
sizeof
(
UNICODEGLYPH
),
(
compar_callback_fn
)
UnicodeGlyphByUV
);
for
(
i
=
0
;
i
<
afm
->
Encoding
->
size
;
++
i
)
if
(
afm
->
Encoding
->
glyphs
[
i
].
UV
>=
0
)
...
...
@@ -726,7 +730,7 @@ static BOOL SortFontMetrics()
}
qsort
(
afm
->
Metrics
,
afm
->
NumofMetrics
,
sizeof
(
AFMMETRICS
),
(
__compar_fn_t
)
AFMMetricsByUV
);
(
compar_callback_fn
)
AFMMetricsByUV
);
for
(
i
=
0
;
i
<
afm
->
NumofMetrics
;
++
i
)
if
(
afm
->
Metrics
[
i
].
UV
>=
0
)
...
...
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