summaryrefslogtreecommitdiff
path: root/src/imConv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/imConv.c')
-rw-r--r--src/imConv.c33
1 files changed, 7 insertions, 26 deletions
diff --git a/src/imConv.c b/src/imConv.c
index 339ba13c..b77eaae7 100644
--- a/src/imConv.c
+++ b/src/imConv.c
@@ -33,7 +33,7 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
******************************************************************/
/* 2000 Modifier: Ivan Pascal The XFree86 Project.
*/
-/* $XFree86: xc/lib/X11/imConv.c,v 1.31 2001/02/09 00:02:53 dawes Exp $ */
+/* $XFree86: xc/lib/X11/imConv.c,v 1.33 2003/11/17 22:20:11 dawes Exp $ */
#define NEED_EVENTS
#include <stdio.h>
@@ -57,16 +57,10 @@ THE USE OR PERFORMANCE OF THIS SOFTWARE.
typedef unsigned int ucs4_t;
typedef int (*ucstocsConvProc)(
-#if NeedFunctionPrototypes
XPointer,
unsigned char *,
ucs4_t,
int
-#endif
-);
-
-XPointer _Utf8GetConvByName(
- const char * name
);
struct SubstRec {
@@ -87,13 +81,8 @@ static struct SubstRec SubstTable[] = {
* This converter is needed for _XimGetCharCode subroutine.
*/
XPointer
-#if NeedFunctionPrototypes
_XimGetLocaleCode (
_Xconst char* encoding_name)
-#else
-_XimGetLocaleCode (encoding_name)
- _Xconst char* encoding_name;
-#endif
{
XPointer cvt = _Utf8GetConvByName(encoding_name);
if (!cvt && encoding_name) {
@@ -116,19 +105,11 @@ _XimGetLocaleCode (encoding_name)
*/
/*ARGSUSED*/
int
-#if NeedFunctionPrototypes
_XimGetCharCode (
XPointer ucs_conv,
KeySym keysym,
unsigned char* buf,
int nbytes)
-#else
-_XimGetCharCode (ucs_conv, keysym, buf, nbytes)
- XPointer ucs_conv;
- KeySym keysym;
- unsigned char *buf;
- int nbytes;
-#endif
{
int count = 0;
ucstocsConvProc cvt = (ucstocsConvProc) ucs_conv;
@@ -153,12 +134,12 @@ _XimGetCharCode (ucs_conv, keysym, buf, nbytes)
}
#ifdef XKB
-static int lookup_string (event, buffer, nbytes, keysym, status)
- XKeyEvent* event;
- char* buffer;
- int nbytes;
- KeySym* keysym;
- XComposeStatus* status;
+static int lookup_string(
+ XKeyEvent* event,
+ char* buffer,
+ int nbytes,
+ KeySym* keysym,
+ XComposeStatus* status)
{
int ret;
unsigned ctrls = XkbGetXlibControls (event->display);