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
60268d1d
Commit
60268d1d
authored
Apr 23, 2001
by
Ian Pilcher
Committed by
Alexandre Julliard
Apr 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use typecasts to suppress compiler warnings.
parent
67f0be15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
16 deletions
+9
-16
glyphlist.c
dlls/wineps/glyphlist.c
+5
-12
psdrv.h
dlls/wineps/psdrv.h
+4
-4
No files found.
dlls/wineps/glyphlist.c
View file @
60268d1d
...
...
@@ -65,18 +65,11 @@ INT PSDRV_GlyphListInit()
* be initialized without generating compiler warnings
*
*/
typedef
struct
inline
static
INT
GlyphListInsert
(
LPCSTR
szName
,
INT
index
)
{
INT
index
;
LPSTR
sz
;
}
_glyphname
;
GLYPHNAME
*
g
;
inline
INT
GlyphListInsert
(
LPCSTR
szName
,
INT
index
)
{
_glyphname
*
g
;
g
=
(
_glyphname
*
)
HeapAlloc
(
PSDRV_Heap
,
0
,
sizeof
(
GLYPHNAME
)
+
strlen
(
szName
)
+
1
);
g
=
HeapAlloc
(
PSDRV_Heap
,
0
,
sizeof
(
GLYPHNAME
)
+
strlen
(
szName
)
+
1
);
if
(
g
==
NULL
)
{
ERR
(
"Failed to allocate %i bytes of memory
\n
"
,
...
...
@@ -86,7 +79,7 @@ inline INT GlyphListInsert(LPCSTR szName, INT index)
g
->
index
=
-
1
;
g
->
sz
=
(
LPSTR
)(
g
+
1
);
strcpy
(
g
->
sz
,
szName
);
strcpy
(
(
LPSTR
)
g
->
sz
,
szName
);
if
(
glyphListSize
%
GLYPHLIST_ALLOCSIZE
==
0
)
/* grow the list? */
{
...
...
@@ -114,7 +107,7 @@ inline INT GlyphListInsert(LPCSTR szName, INT index)
(
glyphListSize
-
index
)
*
sizeof
(
GLYPHNAME
*
));
}
glyphList
[
index
]
=
(
GLYPHNAME
*
)
g
;
glyphList
[
index
]
=
g
;
++
glyphListSize
;
TRACE
(
"Added '%s' at glyphList[%i] (glyphListSize now %i)
\n
"
,
...
...
dlls/wineps/psdrv.h
View file @
60268d1d
...
...
@@ -15,18 +15,18 @@
#include "winspool.h"
typedef
struct
{
INT
index
;
const
LPCSTR
sz
;
INT
index
;
LPCSTR
sz
;
}
GLYPHNAME
;
typedef
struct
{
LONG
UV
;
const
GLYPHNAME
*
const
name
;
const
GLYPHNAME
*
name
;
}
UNICODEGLYPH
;
typedef
struct
{
INT
size
;
const
UNICODEGLYPH
*
const
glyphs
;
const
UNICODEGLYPH
*
glyphs
;
}
UNICODEVECTOR
;
extern
const
INT
PSDRV_AGLGlyphNamesSize
;
...
...
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