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
This commit is contained in:
parent
c4b3a2d5d3
commit
376cad54b1
@ -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' */
|
||||
|
@ -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")) {
|
||||
|
@ -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,
|
||||
|
@ -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) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user