diff options
| author | Lauri Kasanen <cand@gmx.com> | 2014-08-21 14:03:52 +0000 |
|---|---|---|
| committer | Lauri Kasanen <cand@gmx.com> | 2014-08-21 14:03:52 +0000 |
| commit | 376cad54b166870abd3ffa601c8364abbc3eecb0 (patch) | |
| tree | 35593f366a6dacedd8b8a8fc736819b87275fcc3 | |
| parent | c4b3a2d5d3d66849807929701b36e7d6272e5cbd (diff) | |
Apply static-fixes.patch by skunk. STR #2988
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10240 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/xutf8/imKStoUCS.c | 2 | ||||
| -rw-r--r-- | src/xutf8/ucs2fontmap.c | 4 | ||||
| -rw-r--r-- | src/xutf8/utf8Input.c | 16 | ||||
| -rw-r--r-- | src/xutf8/utf8Wrap.c | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/src/xutf8/imKStoUCS.c b/src/xutf8/imKStoUCS.c index 0af9a806c..aa67020f0 100644 --- a/src/xutf8/imKStoUCS.c +++ b/src/xutf8/imKStoUCS.c @@ -266,7 +266,7 @@ static unsigned short const keysym_to_unicode_20a0_20ac[] = { 0x20a8, 0x20a9, 0x20aa, 0x20ab, 0x20ac /* 0x20a8-0x20af */ }; -unsigned int +static unsigned int KeySymToUcs4(KeySym keysym) { /* 'Unicode keysym' */ diff --git a/src/xutf8/ucs2fontmap.c b/src/xutf8/ucs2fontmap.c index e9076521e..8446b08a8 100644 --- a/src/xutf8/ucs2fontmap.c +++ b/src/xutf8/ucs2fontmap.c @@ -57,7 +57,7 @@ typedef struct { /*************** conv_gen.c ************/ /*const*/ -int ucs2fontmap(char *s, unsigned int ucs, int enc) { +static int ucs2fontmap(char *s, unsigned int ucs, int enc) { switch(enc) { case 0: /* iso10646-1 */ s[0] = (char) ((ucs & 0xFF00) >> 8); @@ -298,7 +298,7 @@ int ucs2fontmap(char *s, unsigned int ucs, int enc) { } /*const*/ -int encoding_number(const char *enc) { +static int encoding_number(const char *enc) { if (!enc || !strncmp(enc, "iso10646-1", 10)) { return 0; } else if (!strcmp(enc, "iso8859-1")) { diff --git a/src/xutf8/utf8Input.c b/src/xutf8/utf8Input.c index dc7ed3388..bb7564f09 100644 --- a/src/xutf8/utf8Input.c +++ b/src/xutf8/utf8Input.c @@ -52,7 +52,7 @@ typedef struct { #include "lcUniConv/jisx0212.h" #include "lcUniConv/ksc5601.h" -int +static int XConvertEucTwToUtf8(char* buffer_return, int len) { /* FIXME */ #if HAVE_LIBC_ICONV @@ -119,7 +119,7 @@ XConvertEucTwToUtf8(char* buffer_return, int len) { return l; } -int +static int XConvertEucKrToUtf8(char* buffer_return, int len) { int i = 0, l = 0; char *buf; @@ -159,7 +159,7 @@ XConvertEucKrToUtf8(char* buffer_return, int len) { return l; } -int +static int XConvertBig5ToUtf8(char* buffer_return, int len) { int i = 0, l = 0; char *buf; @@ -188,7 +188,7 @@ XConvertBig5ToUtf8(char* buffer_return, int len) { return l; } -int +static int XConvertCp936extToUtf8(char* buffer_return, int len) { int i = 0, l = 0; @@ -225,7 +225,7 @@ XConvertCp936extToUtf8(char* buffer_return, int len) return l; } -int +static int XConvertGb2312ToUtf8(char* buffer_return, int len) { int i = 0, l = 0; char *buf; @@ -260,7 +260,7 @@ XConvertGb2312ToUtf8(char* buffer_return, int len) { return l; } -int +static int XConvertEucCnToUtf8(char* buffer_return, int len) { int i = 0, l = 0; char *buf; @@ -299,7 +299,7 @@ XConvertEucCnToUtf8(char* buffer_return, int len) { return l; } -int +static int XConvertEucJpToUtf8(char* buffer_return, int len) { int i = 0, l = 0; char *buf; @@ -372,7 +372,7 @@ XConvertEucJpToUtf8(char* buffer_return, int len) { return l; } -int +static int XConvertEucToUtf8(const char* locale, char* buffer_return, int len, diff --git a/src/xutf8/utf8Wrap.c b/src/xutf8/utf8Wrap.c index 5d498f449..8b0d61af5 100644 --- a/src/xutf8/utf8Wrap.c +++ b/src/xutf8/utf8Wrap.c @@ -203,7 +203,7 @@ get_encodings(char **font_name_list, /*********************************************************************/ /** find the first font which matches the name and load it. **/ /*********************************************************************/ -XFontStruct * +static XFontStruct * find_best_font(Display *dpy, char **name) { |
