aboutsummaryrefslogtreecommitdiff
path: root/libX11/src/xlibi18n/lcGeneric.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2009-07-25 12:38:10 +0000
committermarha <marha@users.sourceforge.net>2009-07-25 12:38:10 +0000
commitc87efef42f76c2ff0dcfad2842ab369beffd21de (patch)
tree0ded972bd95879c77ed8fae6c84d0657fbdba660 /libX11/src/xlibi18n/lcGeneric.c
parent1dad159fe09ac3a88b21b98544880e5ecc0e8d54 (diff)
downloadvcxsrv-c87efef42f76c2ff0dcfad2842ab369beffd21de.tar.gz
vcxsrv-c87efef42f76c2ff0dcfad2842ab369beffd21de.tar.bz2
vcxsrv-c87efef42f76c2ff0dcfad2842ab369beffd21de.zip
Added libX11-1.2.2.tar.gz.
Diffstat (limited to 'libX11/src/xlibi18n/lcGeneric.c')
-rw-r--r--libX11/src/xlibi18n/lcGeneric.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/libX11/src/xlibi18n/lcGeneric.c b/libX11/src/xlibi18n/lcGeneric.c
index dead30561..5cb8c5234 100644
--- a/libX11/src/xlibi18n/lcGeneric.c
+++ b/libX11/src/xlibi18n/lcGeneric.c
@@ -716,7 +716,7 @@ load_generic(
/***** wc_encoding_mask *****/
_XlcGetResource(lcd, "XLC_XLOCALE", "wc_encoding_mask", &value, &num);
if (num > 0) {
- if (string_to_ulong(value[0], &l) == False)
+ if (string_to_ulong(value[0], &l) == False)
goto err;
gen->wc_encode_mask = l;
}
@@ -738,7 +738,7 @@ load_generic(
gen->force_convert_to_mb = True;
else
gen->force_convert_to_mb = False;
-
+
for (i = 0; ; i++) {
CodeSetRec *codeset = NULL;
char cs[16];
@@ -788,7 +788,7 @@ load_generic(
sprintf(name, "%s.%s", cs, "mb_encoding");
_XlcGetResource(lcd, "XLC_XLOCALE", name, &value, &num);
if (num > 0) {
- static struct {
+ static struct {
const char *str;
EncodingType type;
} shifts[] = {
@@ -813,7 +813,7 @@ load_generic(
break;
}
}
- if (strlen (tmp) > sizeof encoding ||
+ if (strlen (tmp) > sizeof encoding ||
string_to_encoding(tmp, encoding) == False)
goto err;
add_parse_list(gen, type, encoding, codeset);
@@ -826,11 +826,11 @@ load_generic(
if (num > 0) {
if (codeset == NULL && (codeset = add_codeset(gen)) == NULL)
goto err;
- if (string_to_ulong(value[0], &l) == False)
+ if (string_to_ulong(value[0], &l) == False)
goto err;
codeset->wc_encoding = l;
}
-
+
/***** codeset.ct_encoding *****/
sprintf(name, "%s.%s", cs, "ct_encoding");
_XlcGetResource(lcd, "XLC_XLOCALE", name, &value, &num);
@@ -950,7 +950,7 @@ load_generic(
/* For VW/UDC end */
}
-
+
read_charset_define(lcd,gen); /* For VW/UDC */
read_segmentconversion(lcd,gen); /* For VW/UDC */
@@ -1007,8 +1007,7 @@ initialize_core(
#endif
static Bool
-initialize(lcd)
- XLCd lcd;
+initialize(XLCd lcd)
{
XLCdPublicMethods superclass = (XLCdPublicMethods) _XlcPublicMethods;
@@ -1031,7 +1030,7 @@ initialize(lcd)
}
/* VW/UDC start 95.01.08 */
-static void
+static void
freeByteM(
CodeSet codeset)
{
@@ -1047,11 +1046,11 @@ freeByteM(
blst[i].byteinfo = NULL;
}
}
- Xfree(codeset->byteM);
+ Xfree(codeset->byteM);
codeset->byteM = NULL;
}
-static void
+static void
freeConversion(
CodeSet codeset)
{
@@ -1078,7 +1077,7 @@ freeConversion(
}
}
-static void
+static void
freeExtdSegment(
CodeSet codeset)
{
@@ -1095,11 +1094,11 @@ freeExtdSegment(
Xfree(ctextseg->area);
ctextseg->area = NULL;
}
- Xfree(codeset->ctextseg);
+ Xfree(codeset->ctextseg);
codeset->ctextseg = NULL;
}
-static void
+static void
freeParseInfo(
CodeSet codeset)
{
@@ -1112,7 +1111,7 @@ freeParseInfo(
Xfree(parse_info->encoding);
parse_info->encoding = NULL;
}
- Xfree(codeset->parse_info);
+ Xfree(codeset->parse_info);
codeset->parse_info = NULL;
}
@@ -1154,7 +1153,7 @@ destroy_SegConv(
seg[i].source_encoding = NULL;
}
if (seg[i].destination_encoding) {
- Xfree(seg[i].destination_encoding);
+ Xfree(seg[i].destination_encoding);
seg[i].destination_encoding = NULL;
}
if (seg[i].conv) {