aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/IMWrap.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2016-08-27 01:22:46 +0200
committerUlrich Sibiller <uli42@gmx.de>2016-10-10 22:52:31 +0200
commit385dc2b070df1e19853a009bfe32204e0c5b2dd7 (patch)
tree6c18a91191560417fe9ae67ea10ca5905bc29fb2 /nx-X11/lib/X11/IMWrap.c
parente868fbbfdabe9cf45899054c8455d39acf800ede (diff)
downloadnx-libs-385dc2b070df1e19853a009bfe32204e0c5b2dd7.tar.gz
nx-libs-385dc2b070df1e19853a009bfe32204e0c5b2dd7.tar.bz2
nx-libs-385dc2b070df1e19853a009bfe32204e0c5b2dd7.zip
update xlibi18n files to libX11 1.3.4
Diffstat (limited to 'nx-X11/lib/X11/IMWrap.c')
-rw-r--r--nx-X11/lib/X11/IMWrap.c47
1 files changed, 16 insertions, 31 deletions
diff --git a/nx-X11/lib/X11/IMWrap.c b/nx-X11/lib/X11/IMWrap.c
index f592520a8..0f6ed5593 100644
--- a/nx-X11/lib/X11/IMWrap.c
+++ b/nx-X11/lib/X11/IMWrap.c
@@ -1,7 +1,4 @@
/*
- */
-
-/*
* Copyright 1991 by the Open Software Foundation
* Copyright 1993, 1994 by the Sony Corporation
*
@@ -10,10 +7,10 @@
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the names of Open Software Foundation and
- * Sony Corporation not be used in advertising or publicity pertaining to
- * distribution of the software without specific, written prior permission.
- * Open Software Foundation and Sony Corporation make no
- * representations about the suitability of this software for any purpose.
+ * Sony Corporation not be used in advertising or publicity pertaining to
+ * distribution of the software without specific, written prior permission.
+ * Open Software Foundation and Sony Corporation make no
+ * representations about the suitability of this software for any purpose.
* It is provided "as is" without express or implied warranty.
*
* OPEN SOFTWARE FOUNDATION AND SONY CORPORATION DISCLAIM ALL
@@ -23,11 +20,11 @@
* INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
* OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- * PERFORMANCE OF THIS SOFTWARE.
- *
- * M. Collins OSF
+ * PERFORMANCE OF THIS SOFTWARE.
+ *
+ * M. Collins OSF
* Makoto Wakamatsu Sony Corporation
- */
+ */
/*
Copyright 1991, 1998 The Open Group
@@ -67,9 +64,7 @@ from The Open Group.
* Compile the resource name. (resource_name ---> xrm_name)
*/
void
-_XIMCompileResourceList(res, num_res)
- register XIMResourceList res;
- unsigned int num_res;
+_XIMCompileResourceList(XIMResourceList res, unsigned int num_res)
{
register unsigned int count;
@@ -79,10 +74,7 @@ _XIMCompileResourceList(res, num_res)
}
void
-_XCopyToArg(src, dst, size)
- XPointer src;
- XPointer *dst;
- register unsigned int size;
+_XCopyToArg(XPointer src, XPointer *dst, unsigned int size)
{
if (!*dst) {
union {
@@ -119,12 +111,8 @@ _XCopyToArg(src, dst, size)
* a XIM object and return a pointer the newly created XIM back to the caller.
*/
-XIM
-XOpenIM( display, rdb, res_name, res_class )
- Display *display;
- XrmDatabase rdb;
- char *res_name;
- char *res_class;
+XIM
+XOpenIM(Display *display, XrmDatabase rdb, char *res_name, char *res_class)
{
XLCd lcd = _XOpenLC( (char *)NULL );
@@ -137,13 +125,12 @@ XOpenIM( display, rdb, res_name, res_class )
* Close the connection to the input manager, and free the XIM structure
*/
Status
-XCloseIM(im)
- XIM im;
+XCloseIM(XIM im)
{
Status s;
XIC ic;
XLCd lcd = im->core.lcd;
-
+
s = (im->methods->close) (im);
for (ic = im->core.ic_chain; ic; ic = ic->core.next)
ic->core.im = (XIM)NULL;
@@ -156,8 +143,7 @@ XCloseIM(im)
* Return the Display associated with the input method.
*/
Display *
-XDisplayOfIM(im)
- XIM im;
+XDisplayOfIM(XIM im)
{
return im->core.display;
}
@@ -166,8 +152,7 @@ XDisplayOfIM(im)
* Return the Locale associated with the input method.
*/
char *
-XLocaleOfIM(im)
- XIM im;
+XLocaleOfIM(XIM im)
{
return im->core.lcd->core->name;
}