Commit 41c0cc8f authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

wineps.drv: Replace inline static with static inline.

parent 5df3ff13
...@@ -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;
......
...@@ -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;
......
...@@ -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;
......
...@@ -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);
} }
......
...@@ -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;
......
...@@ -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);
} }
......
...@@ -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;
} }
......
...@@ -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) ||
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment