Mercurial > hg > xemacs-beta
comparison 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 |
comparison
equal
deleted
inserted
replaced
5199:49e931565616 | 5200:70ed8a0d8da8 |
---|---|
44 #ifndef HAVE_STRUPR | 44 #ifndef HAVE_STRUPR |
45 char *strupr (char *); | 45 char *strupr (char *); |
46 #endif | 46 #endif |
47 | 47 |
48 BEGIN_C_DECLS | 48 BEGIN_C_DECLS |
49 | |
50 /* Forward compatibility from ben-unicode-internal: Following used for | |
51 functions that do character conversion and need to handle errors. */ | |
52 | |
53 enum converr | |
54 { | |
55 /* ---- Basic actions ---- */ | |
56 | |
57 /* Do nothing upon failure and return a failure indication. | |
58 Same as what happens when the *_raw() version is called. */ | |
59 CONVERR_FAIL, | |
60 /* abort() on failure, i.e. crash. */ | |
61 CONVERR_ABORT, | |
62 /* Signal a Lisp error. */ | |
63 CONVERR_ERROR, | |
64 /* Try to "recover" and continue processing. Currently this is always | |
65 the same as CONVERR_SUBSTITUTE, where one of the substitution | |
66 characters defined below (CANT_CONVERT_*) is used. */ | |
67 CONVERR_SUCCEED, | |
68 | |
69 /* ---- More specific actions ---- */ | |
70 | |
71 /* Substitute something (0xFFFD, the Unicode replacement character, | |
72 when converting to Unicode or to a Unicode-internal Ichar, JISX0208 | |
73 GETA mark when converting to non-Mule Ichar). */ | |
74 CONVERR_SUBSTITUTE, | |
75 /* Use private Unicode space when converting to Unicode. */ | |
76 CONVERR_USE_PRIVATE | |
77 }; | |
49 | 78 |
50 /************************************************************************/ | 79 /************************************************************************/ |
51 /* A short intro to the format of text and of characters */ | 80 /* A short intro to the format of text and of characters */ |
52 /************************************************************************/ | 81 /************************************************************************/ |
53 | 82 |