Tue Apr 30 22:23:08 2013 UTC ()
locale_t is surprisingly used by locale.h, so pick a different name.
(joerg)
diff -r1.7 -r1.8 pkgsrc/inputmethod/xcin/distinfo
diff -r1.1 -r1.2 pkgsrc/inputmethod/xcin/patches/patch-aj
diff -r0 -r1.1 pkgsrc/inputmethod/xcin/patches/patch-src_include_xcintool.h
diff -r0 -r1.1 pkgsrc/inputmethod/xcin/patches/patch-src_xcin__main.c
diff -r0 -r1.1 pkgsrc/inputmethod/xcin/patches/patch-src_xim.c
--- pkgsrc/inputmethod/xcin/distinfo 2009/11/24 11:23:34 1.7
+++ pkgsrc/inputmethod/xcin/distinfo 2013/04/30 22:23:07 1.8
--- pkgsrc/inputmethod/xcin/patches/patch-aj 2009/11/24 11:23:34 1.1
+++ pkgsrc/inputmethod/xcin/patches/patch-aj 2013/04/30 22:23:07 1.2
$NetBSD: patch-src_include_xcintool.h,v 1.1 2013/04/30 22:23:07 joerg Exp $
--- src/include/xcintool.h.orig 2013-04-30 11:13:51.000000000 +0000
+++ src/include/xcintool.h
@@ -202,12 +202,12 @@ typedef struct {
char *lc_messages;
char *encoding;
int encid, locid;
-} locale_t;
+} xcin_locale_t;
typedef struct {
int argc; /* Command line arguement list */
char **argv;
- locale_t locale; /* Locale name. */
+ xcin_locale_t locale; /* Locale name. */
char *usrhome; /* User home directory. */
char *default_dir; /* Default module directory. */
char *user_dir; /* User data directory. */
$NetBSD: patch-src_xcin__main.c,v 1.1 2013/04/30 22:23:07 joerg Exp $
--- src/xcin_main.c.orig 2013-04-30 11:14:44.000000000 +0000
+++ src/xcin_main.c
@@ -56,7 +56,7 @@ void xim_init(xccore_t *xccore);
static void
xcin_setlocale(void)
{
- locale_t *locale = &(xcin_core.xcin_rc.locale);
+ xcin_locale_t *locale = &(xcin_core.xcin_rc.locale);
char loc_return[128], enc_return[128];
set_perr("xcin");
@@ -324,7 +324,7 @@ read_core_config_locale(void)
char *cmd[2], value[256], *s, loc_buf[64], *loc_name=NULL;
char *fmt = N_("%s:\n\tlocale section \"%s\": %s: value not specified.\n");
xcin_rc_t *xrc = &(xcin_core.xcin_rc);
- locale_t *locale = &(xcin_core.xcin_rc.locale);
+ xcin_locale_t *locale = &(xcin_core.xcin_rc.locale);
/*
* Determine the true locale setting name.
*/
@@ -401,7 +401,7 @@ read_core_config_IM(void)
char *cmd[2], value[256], *s, *s1, objname[100], objenc[100];
char *fmt = N_("%s:\n\tIM section \"%s\": %s: value not specified.\n");
xcin_rc_t *xrc = &(xcin_core.xcin_rc);
- locale_t *locale = &(xcin_core.xcin_rc.locale);
+ xcin_locale_t *locale = &(xcin_core.xcin_rc.locale);
int setkey;
/*
* Go to each CINPUT sub-node and read important keywords.
$NetBSD: patch-src_xim.c,v 1.1 2013/04/30 22:23:07 joerg Exp $
--- src/xim.c.orig 2013-04-30 11:14:40.000000000 +0000
+++ src/xim.c
@@ -1029,7 +1029,7 @@ xim_init(xccore_t *core)
XIMTriggerKeys on_keys;
XIMEncodings encodings;
Window mainwin;
- locale_t *locale;
+ xcin_locale_t *locale;
int i;
transport_type = TRANSPORT_X;