Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zsolt Vadász
wine
Commits
60268d1d
Commit
60268d1d
authored
23 years ago
by
Ian Pilcher
Committed by
Alexandre Julliard
23 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Use typecasts to suppress compiler warnings.
parent
67f0be15
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dlls/wineps/glyphlist.c
+5
-12
5 additions, 12 deletions
dlls/wineps/glyphlist.c
dlls/wineps/psdrv.h
+4
-4
4 additions, 4 deletions
dlls/wineps/psdrv.h
with
9 additions
and
16 deletions
dlls/wineps/glyphlist.c
+
5
−
12
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
"
,
...
...
This diff is collapsed.
Click to expand it.
dlls/wineps/psdrv.h
+
4
−
4
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment