1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-01-29 19:55:49 +01:00

Unified usage of the 'inline' attribute for functions

Autoconf provides the necessary stuff to detect if inline keyword
is supported, and to detect special syntaxes, so let's use this
and remove the multiple local definitions, this makes code simpler.
This commit is contained in:
Christophe CURIS
2013-05-11 00:07:13 +02:00
committed by Carlos R. Mafra
parent 7f6699ffca
commit 90d24a1648
8 changed files with 11 additions and 28 deletions

View File

@@ -122,7 +122,7 @@ static WMSelectionProcs selectionHandler = {
#define TEXT_WIDTH2(tPtr, start, end) (WMWidthOfString((tPtr)->font, \
&((tPtr)->text[(start)]), (end) - (start)))
static INLINE int oneUTF8CharBackward(const char *str, int len)
static inline int oneUTF8CharBackward(const char *str, int len)
{
const unsigned char *ustr = (const unsigned char *)str;
int pos = 0;
@@ -131,7 +131,7 @@ static INLINE int oneUTF8CharBackward(const char *str, int len)
return pos;
}
static INLINE int oneUTF8CharForward(const char *str, int len)
static inline int oneUTF8CharForward(const char *str, int len)
{
const unsigned char *ustr = (const unsigned char *)str;
int pos = 0;
@@ -141,7 +141,7 @@ static INLINE int oneUTF8CharForward(const char *str, int len)
}
// find the beginning of the UTF8 char pointed by str
static INLINE int seekUTF8CharStart(const char *str, int len)
static inline int seekUTF8CharStart(const char *str, int len)
{
const unsigned char *ustr = (const unsigned char *)str;
int pos = 0;