Mercurial > hg > xemacs-beta
comparison modules/canna/canna_api.c @ 5201:11ed8768ac4f
attempt to fix errors in canna_api.c
-------------------- ChangeLog entries follow: --------------------
modules/ChangeLog addition:
2010-04-12 Ben Wing <ben@xemacs.org>
* canna/canna_api.c:
* canna/canna_api.c (Fcanna_henkan_begin):
Fixes for errors reported in smoketest build.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Mon, 12 Apr 2010 01:35:56 -0500 |
parents | c0934cef10c6 |
children | 308d34e9f07d |
comparison
equal
deleted
inserted
replaced
5200:70ed8a0d8da8 | 5201:11ed8768ac4f |
---|---|
1 /* CANNA interface -*- coding: utf-8 -*- | 1 /* CANNA interface -*- coding: utf-8 -*- |
2 | 2 |
3 Copyright (C) 1995 Free Software Foundation, Inc. | 3 Copyright (C) 1995 Free Software Foundation, Inc. |
4 Copyright (C) 1995 Sun Microsystems, Inc. | 4 Copyright (C) 1995 Sun Microsystems, Inc. |
5 Copyright (C) 2005 Ben Wing. | 5 Copyright (C) 2005, 2010 Ben Wing. |
6 | 6 |
7 This file is part of XEmacs. | 7 This file is part of XEmacs. |
8 | 8 |
9 XEmacs is free software; you can redistribute it and/or modify it | 9 XEmacs is free software; you can redistribute it and/or modify it |
10 under the terms of the GNU General Public License as published by the | 10 under the terms of the GNU General Public License as published by the |
659 * library. These functions may be used by MILK system. | 659 * library. These functions may be used by MILK system. |
660 */ | 660 */ |
661 | 661 |
662 #define RKBUFSIZE 1024 | 662 #define RKBUFSIZE 1024 |
663 | 663 |
664 static unsigned char yomibuf[RKBUFSIZE]; | 664 static UExtbyte yomibuf[RKBUFSIZE]; |
665 static short kugiri[RKBUFSIZE / 2]; | 665 static short kugiri[RKBUFSIZE / 2]; |
666 | 666 |
667 static int | 667 static int |
668 confirmContext (void) | 668 confirmContext (void) |
669 { | 669 { |
718 | 718 |
719 ext = LISP_STRING_TO_EXTERNAL (yomi, Qeuc_jp); | 719 ext = LISP_STRING_TO_EXTERNAL (yomi, Qeuc_jp); |
720 strncpy ((char *) yomibuf, ext, sizeof (yomibuf)); | 720 strncpy ((char *) yomibuf, ext, sizeof (yomibuf)); |
721 yomibuf[sizeof (yomibuf) - 1] = '\0'; | 721 yomibuf[sizeof (yomibuf) - 1] = '\0'; |
722 | 722 |
723 nbun = RkBgnBun (IRCP_context, yomibuf, strlen ((char *) yomibuf), | 723 nbun = RkBgnBun (IRCP_context, (char *) yomibuf, strlen ((char *) yomibuf), |
724 (RK_XFER << RK_XFERBITS) | RK_KFER); | 724 (RK_XFER << RK_XFERBITS) | RK_KFER); |
725 | 725 |
726 return kanjiYomiList (IRCP_context, nbun); | 726 return kanjiYomiList (IRCP_context, nbun); |
727 } | 727 } |
728 | 728 |