Mercurial > hg > xemacs-beta
diff src/text.h @ 5200:70ed8a0d8da8
port Mule-ization of mule-wnnfns.c from ben-unicode-internal
-------------------- ChangeLog entries follow: --------------------
src/ChangeLog addition:
2010-04-12 Ben Wing <ben@xemacs.org>
* charset.h:
* lisp.h:
* lisp.h (XREALLOC_ARRAY):
* text.h:
Port charset_codepoint_to_itext(), buffer_itext_to_charset_codepoint(),
EXTBYTE_STRING_TO_ALLOCA(), `enum converr' from ben-unicode-internal,
for use with the mule-wnnfns.c changes.
* mule-wnnfns.c:
* mule-wnnfns.c (Fwnn_open):
* mule-wnnfns.c (Fwnn_dict_add):
* mule-wnnfns.c (Fwnn_dict_list):
* mule-wnnfns.c (Fwnn_get_zenkouho):
* mule-wnnfns.c (Fwnn_inspect):
* mule-wnnfns.c (Fwnn_bunsetu_kanji):
* mule-wnnfns.c (Fwnn_bunsetu_yomi):
* mule-wnnfns.c (Fwnn_word_info):
* mule-wnnfns.c (Fwnn_dict_search):
* mule-wnnfns.c (Fwnn_get_msg):
* mule-wnnfns.c (Fwnn_fuzokugo_set):
* mule-wnnfns.c (Fwnn_fuzokugo_get):
* mule-wnnfns.c (Fwnn_hinsi_list):
* mule-wnnfns.c (Fwnn_fisys_dict_add):
* mule-wnnfns.c (Fwnn_fiusr_dict_add):
* mule-wnnfns.c (Fwnn_notrans_dict_add):
* mule-wnnfns.c (Fwnn_bmodify_dict_add):
* mule-wnnfns.c (reinit_vars_of_mule_wnn):
* mule-wnnfns.c (vars_of_mule_wnn):
* mule-wnnfns.c (w2m):
* mule-wnnfns.c (m2w):
* mule-wnnfns.c (yes_or_no):
* mule-wnnfns.c (puts2):
* mule-wnnfns.c (check_wnn_server_type):
Mule-ize, borrowed from ben-unicode-internal.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Mon, 12 Apr 2010 00:55:04 -0500 |
parents | 6c6d78781d59 |
children | 1537701f08a1 |
line wrap: on
line diff
--- a/src/text.h Mon Apr 12 00:53:18 2010 -0500 +++ b/src/text.h Mon Apr 12 00:55:04 2010 -0500 @@ -47,6 +47,35 @@ BEGIN_C_DECLS +/* Forward compatibility from ben-unicode-internal: Following used for + functions that do character conversion and need to handle errors. */ + +enum converr + { + /* ---- Basic actions ---- */ + + /* Do nothing upon failure and return a failure indication. + Same as what happens when the *_raw() version is called. */ + CONVERR_FAIL, + /* abort() on failure, i.e. crash. */ + CONVERR_ABORT, + /* Signal a Lisp error. */ + CONVERR_ERROR, + /* Try to "recover" and continue processing. Currently this is always + the same as CONVERR_SUBSTITUTE, where one of the substitution + characters defined below (CANT_CONVERT_*) is used. */ + CONVERR_SUCCEED, + + /* ---- More specific actions ---- */ + + /* Substitute something (0xFFFD, the Unicode replacement character, + when converting to Unicode or to a Unicode-internal Ichar, JISX0208 + GETA mark when converting to non-Mule Ichar). */ + CONVERR_SUBSTITUTE, + /* Use private Unicode space when converting to Unicode. */ + CONVERR_USE_PRIVATE + }; + /************************************************************************/ /* A short intro to the format of text and of characters */ /************************************************************************/