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
41c0cc8f
Commit
41c0cc8f
authored
Mar 17, 2007
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineps.drv: Replace inline static with static inline.
parent
5df3ff13
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
15 additions
and
15 deletions
+15
-15
afm.c
dlls/wineps.drv/afm.c
+1
-1
afm2c.c
dlls/wineps.drv/afm2c.c
+1
-1
bitmap.c
dlls/wineps.drv/bitmap.c
+1
-1
builtin.c
dlls/wineps.drv/builtin.c
+2
-2
glyphlist.c
dlls/wineps.drv/glyphlist.c
+1
-1
mkagl.c
dlls/wineps.drv/mkagl.c
+5
-5
truetype.c
dlls/wineps.drv/truetype.c
+1
-1
type1afm.c
dlls/wineps.drv/type1afm.c
+3
-3
No files found.
dlls/wineps.drv/afm.c
View file @
41c0cc8f
...
@@ -197,7 +197,7 @@ static void PSDRV_DumpFontList(void)
...
@@ -197,7 +197,7 @@ static void PSDRV_DumpFontList(void)
* Tries to use formula in TrueType specification; falls back to simple mean
* Tries to use formula in TrueType specification; falls back to simple mean
* if any lowercase latin letter (or space) is not present.
* if any lowercase latin letter (or space) is not present.
*/
*/
inline
static
SHORT
MeanCharWidth
(
const
AFM
*
afm
)
static
inline
SHORT
MeanCharWidth
(
const
AFM
*
afm
)
{
{
float
w
=
0
.
0
;
float
w
=
0
.
0
;
int
i
;
int
i
;
...
...
dlls/wineps.drv/afm2c.c
View file @
41c0cc8f
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
psdrv
);
WINE_DEFAULT_DEBUG_CHANNEL
(
psdrv
);
inline
static
void
cursorto
(
FILE
*
of
,
int
np
,
int
cp
)
static
inline
void
cursorto
(
FILE
*
of
,
int
np
,
int
cp
)
{
{
int
ntp
=
np
&
0xfffffff8
;
int
ntp
=
np
&
0xfffffff8
;
int
ctp
=
cp
&
0xfffffff8
;
int
ctp
=
cp
&
0xfffffff8
;
...
...
dlls/wineps.drv/bitmap.c
View file @
41c0cc8f
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
...
@@ -29,7 +29,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
/* Return the width of a DIB bitmap in bytes. DIB bitmap data is 32-bit aligned. */
/* Return the width of a DIB bitmap in bytes. DIB bitmap data is 32-bit aligned. */
inline
static
int
get_dib_width_bytes
(
int
width
,
int
depth
)
static
inline
int
get_dib_width_bytes
(
int
width
,
int
depth
)
{
{
int
words
;
int
words
;
...
...
dlls/wineps.drv/builtin.c
View file @
41c0cc8f
...
@@ -38,7 +38,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
...
@@ -38,7 +38,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
/***********************************************************************
/***********************************************************************
* is_stock_font
* is_stock_font
*/
*/
inline
static
BOOL
is_stock_font
(
HFONT
font
)
static
inline
BOOL
is_stock_font
(
HFONT
font
)
{
{
int
i
;
int
i
;
for
(
i
=
OEM_FIXED_FONT
;
i
<=
DEFAULT_GUI_FONT
;
i
++
)
for
(
i
=
OEM_FIXED_FONT
;
i
<=
DEFAULT_GUI_FONT
;
i
++
)
...
@@ -55,7 +55,7 @@ inline static BOOL is_stock_font( HFONT font )
...
@@ -55,7 +55,7 @@ inline static BOOL is_stock_font( HFONT font )
* Scale builtin font to requested lfHeight
* Scale builtin font to requested lfHeight
*
*
*/
*/
inline
static
float
Round
(
float
f
)
static
inline
float
Round
(
float
f
)
{
{
return
(
f
>
0
)
?
(
f
+
0
.
5
)
:
(
f
-
0
.
5
);
return
(
f
>
0
)
?
(
f
+
0
.
5
)
:
(
f
-
0
.
5
);
}
}
...
...
dlls/wineps.drv/glyphlist.c
View file @
41c0cc8f
...
@@ -73,7 +73,7 @@ INT PSDRV_GlyphListInit(void)
...
@@ -73,7 +73,7 @@ INT PSDRV_GlyphListInit(void)
* list if necessary; returns index on success (-1 on failure)
* list if necessary; returns index on success (-1 on failure)
*
*
*/
*/
inline
static
INT
GlyphListInsert
(
LPCSTR
szName
,
INT
index
)
static
inline
INT
GlyphListInsert
(
LPCSTR
szName
,
INT
index
)
{
{
GLYPHNAME
*
g
;
GLYPHNAME
*
g
;
...
...
dlls/wineps.drv/mkagl.c
View file @
41c0cc8f
...
@@ -55,17 +55,17 @@ static int cmp_by_name(const void *a, const void *b)
...
@@ -55,17 +55,17 @@ static int cmp_by_name(const void *a, const void *b)
return
strcmp
(((
const
GLYPHINFO
*
)
a
)
->
name
,
((
const
GLYPHINFO
*
)
b
)
->
name
);
return
strcmp
(((
const
GLYPHINFO
*
)
a
)
->
name
,
((
const
GLYPHINFO
*
)
b
)
->
name
);
}
}
inline
static
void
sort_by_UV
()
static
inline
void
sort_by_UV
()
{
{
qsort
(
glyphs
,
num_glyphs
,
sizeof
(
GLYPHINFO
),
cmp_by_UV
);
qsort
(
glyphs
,
num_glyphs
,
sizeof
(
GLYPHINFO
),
cmp_by_UV
);
}
}
inline
static
void
sort_by_name
()
static
inline
void
sort_by_name
()
{
{
qsort
(
glyphs
,
num_glyphs
,
sizeof
(
GLYPHINFO
),
cmp_by_name
);
qsort
(
glyphs
,
num_glyphs
,
sizeof
(
GLYPHINFO
),
cmp_by_name
);
}
}
inline
static
GLYPHINFO
*
search_by_name
(
const
char
*
name
)
static
inline
GLYPHINFO
*
search_by_name
(
const
char
*
name
)
{
{
GLYPHINFO
gi
;
GLYPHINFO
gi
;
...
@@ -80,7 +80,7 @@ inline static GLYPHINFO *search_by_name(const char *name)
...
@@ -80,7 +80,7 @@ inline static GLYPHINFO *search_by_name(const char *name)
* Use the 'optimal' combination of tabs and spaces to position the cursor
* Use the 'optimal' combination of tabs and spaces to position the cursor
*/
*/
inline
static
void
fcpto
(
FILE
*
f
,
int
newpos
,
int
curpos
)
static
inline
void
fcpto
(
FILE
*
f
,
int
newpos
,
int
curpos
)
{
{
int
newtpos
=
newpos
&
~
7
;
int
newtpos
=
newpos
&
~
7
;
int
curtpos
=
curpos
&
~
7
;
int
curtpos
=
curpos
&
~
7
;
...
@@ -103,7 +103,7 @@ inline static void fcpto(FILE *f, int newpos, int curpos)
...
@@ -103,7 +103,7 @@ inline static void fcpto(FILE *f, int newpos, int curpos)
* Make main() look "purty"
* Make main() look "purty"
*/
*/
inline
static
void
triple_space
(
FILE
*
f
)
static
inline
void
triple_space
(
FILE
*
f
)
{
{
fputc
(
'\n'
,
f
);
fputc
(
'\n'
,
f
);
fputc
(
'\n'
,
f
);
fputc
(
'\n'
,
f
);
}
}
...
...
dlls/wineps.drv/truetype.c
View file @
41c0cc8f
...
@@ -279,7 +279,7 @@ static BOOL FindMSTTString(FT_Face face, FT_CharMap charmap, FT_UShort name_id,
...
@@ -279,7 +279,7 @@ static BOOL FindMSTTString(FT_Face face, FT_CharMap charmap, FT_UShort name_id,
* units.
* units.
*
*
*/
*/
inline
static
float
PSUnits
(
LONG
x
,
USHORT
em_size
)
static
inline
float
PSUnits
(
LONG
x
,
USHORT
em_size
)
{
{
return
1000
.
0
*
(
float
)
x
/
(
float
)
em_size
;
return
1000
.
0
*
(
float
)
x
/
(
float
)
em_size
;
}
}
...
...
dlls/wineps.drv/type1afm.c
View file @
41c0cc8f
...
@@ -190,7 +190,7 @@ static BOOL FindLine(FILE *file, CHAR buffer[], INT bufsize, LPCSTR key)
...
@@ -190,7 +190,7 @@ static BOOL FindLine(FILE *file, CHAR buffer[], INT bufsize, LPCSTR key)
* Linux x86/gcc).
* Linux x86/gcc).
*
*
*/
*/
inline
static
BOOL
DoubleToFloat
(
float
*
p_f
,
double
d
)
static
inline
BOOL
DoubleToFloat
(
float
*
p_f
,
double
d
)
{
{
if
(
d
>
(
double
)
FLT_MAX
||
d
<
-
(
double
)
FLT_MAX
)
if
(
d
>
(
double
)
FLT_MAX
||
d
<
-
(
double
)
FLT_MAX
)
return
FALSE
;
return
FALSE
;
...
@@ -205,7 +205,7 @@ inline static BOOL DoubleToFloat(float *p_f, double d)
...
@@ -205,7 +205,7 @@ inline static BOOL DoubleToFloat(float *p_f, double d)
* Utility function to add or subtract 0.5 before converting to integer type.
* Utility function to add or subtract 0.5 before converting to integer type.
*
*
*/
*/
inline
static
float
Round
(
float
f
)
static
inline
float
Round
(
float
f
)
{
{
return
(
f
>=
0
.
0
)
?
(
f
+
0
.
5
)
:
(
f
-
0
.
5
);
return
(
f
>=
0
.
0
)
?
(
f
+
0
.
5
)
:
(
f
-
0
.
5
);
}
}
...
@@ -819,7 +819,7 @@ static int cmpUV(const void *a, const void *b)
...
@@ -819,7 +819,7 @@ static int cmpUV(const void *a, const void *b)
return
(
int
)(
*
((
const
LONG
*
)
a
)
-
*
((
const
LONG
*
)
b
));
return
(
int
)(
*
((
const
LONG
*
)
a
)
-
*
((
const
LONG
*
)
b
));
}
}
inline
static
BOOL
IsWinANSI
(
LONG
uv
)
static
inline
BOOL
IsWinANSI
(
LONG
uv
)
{
{
if
((
0x0020
<=
uv
&&
uv
<=
0x007e
)
||
(
0x00a0
<=
uv
&&
uv
<=
0x00ff
)
||
if
((
0x0020
<=
uv
&&
uv
<=
0x007e
)
||
(
0x00a0
<=
uv
&&
uv
<=
0x00ff
)
||
(
0x2018
<=
uv
&&
uv
<=
0x201a
)
||
(
0x201c
<=
uv
&&
uv
<=
0x201e
)
||
(
0x2018
<=
uv
&&
uv
<=
0x201a
)
||
(
0x201c
<=
uv
&&
uv
<=
0x201e
)
||
...
...
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