aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Love2002-07-30 11:33:15 +0000
committerDave Love2002-07-30 11:33:15 +0000
commit64165ae2a89f577f5ade95362c8a08d4ca5b4348 (patch)
treed7bab8ca8a6f2cc64243a7e2f56d1c4ee3481d57 /src
parent68978cf02e3ac6a6d06266c15329e418287a8b2a (diff)
downloademacs-64165ae2a89f577f5ade95362c8a08d4ca5b4348.tar.gz
emacs-64165ae2a89f577f5ade95362c8a08d4ca5b4348.zip
Remove `emacs' conditional. Doc fixes.
(map_char_table_for_charset): Declare.
Diffstat (limited to 'src')
-rw-r--r--src/charset.c26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/charset.c b/src/charset.c
index d698f76017d..a98c25e06ff 100644
--- a/src/charset.c
+++ b/src/charset.c
@@ -23,16 +23,11 @@ along with GNU Emacs; see the file COPYING. If not, write to
23the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 23the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
24Boston, MA 02111-1307, USA. */ 24Boston, MA 02111-1307, USA. */
25 25
26#ifdef emacs
27#include <config.h> 26#include <config.h>
28#endif
29 27
30#include <stdio.h> 28#include <stdio.h>
31#include <unistd.h> 29#include <unistd.h>
32#include <ctype.h> 30#include <ctype.h>
33
34#ifdef emacs
35
36#include <sys/types.h> 31#include <sys/types.h>
37#include "lisp.h" 32#include "lisp.h"
38#include "character.h" 33#include "character.h"
@@ -41,13 +36,6 @@ Boston, MA 02111-1307, USA. */
41#include "disptab.h" 36#include "disptab.h"
42#include "buffer.h" 37#include "buffer.h"
43 38
44#else /* not emacs */
45
46#include "mulelib.h"
47
48#endif /* emacs */
49
50
51/*** GENERAL NOTES on CODED CHARACTER SETS (CHARSETS) *** 39/*** GENERAL NOTES on CODED CHARACTER SETS (CHARSETS) ***
52 40
53 A coded character set ("charset" hereafter) is a meaningful 41 A coded character set ("charset" hereafter) is a meaningful
@@ -108,7 +96,7 @@ int charset_primary;
108Lisp_Object Vcharset_ordered_list; 96Lisp_Object Vcharset_ordered_list;
109 97
110/* Incremented everytime we change Vcharset_ordered_list. This is 98/* Incremented everytime we change Vcharset_ordered_list. This is
111 unsigned short so that it fits in Lisp_Int and never match with 99 unsigned short so that it fits in Lisp_Int and never matches
112 -1. */ 100 -1. */
113unsigned short charset_ordered_list_tick; 101unsigned short charset_ordered_list_tick;
114 102
@@ -128,6 +116,13 @@ Lisp_Object Vcharset_map_directory;
128 116
129Lisp_Object Vchar_unified_charset_table; 117Lisp_Object Vchar_unified_charset_table;
130 118
119/* Defined in chartab.c */
120extern void
121map_char_table_for_charset P_ ((void (*c_function) (Lisp_Object, Lisp_Object),
122 Lisp_Object function, Lisp_Object table,
123 Lisp_Object arg, struct charset *charset,
124 unsigned from, unsigned to));
125
131#define CODE_POINT_TO_INDEX(charset, code) \ 126#define CODE_POINT_TO_INDEX(charset, code) \
132 ((charset)->code_linear_p \ 127 ((charset)->code_linear_p \
133 ? (code) - (charset)->min_code \ 128 ? (code) - (charset)->min_code \
@@ -1140,8 +1135,8 @@ DEFUN ("unify-charset", Funify_charset, Sunify_charset, 1, 3, 0,
1140This means reading the relevant file and installing the table defined 1135This means reading the relevant file and installing the table defined
1141by CHARSET's `:unify-map' property. 1136by CHARSET's `:unify-map' property.
1142 1137
1143Optional second arg UNIFY-MAP a file name string or vector that has 1138Optional second arg UNIFY-MAP is a file name string or a vector. It has
1144the same meaning of the `:unify-map' attribute of the function 1139the same meaning as the `:unify-map' attribute in the function
1145`define-charset' (which see). 1140`define-charset' (which see).
1146 1141
1147Optional third argument DEUNIFY, if non-nil, means to de-unify CHARSET. */) 1142Optional third argument DEUNIFY, if non-nil, means to de-unify CHARSET. */)
@@ -1281,6 +1276,7 @@ string_xstring_p (string)
1281 { 1276 {
1282 int c = STRING_CHAR_ADVANCE (p); 1277 int c = STRING_CHAR_ADVANCE (p);
1283 1278
1279 /* Fixme: comparison of unsigned expression < 0 is always false */
1284 if (ENCODE_CHAR (charset, c) < 0) 1280 if (ENCODE_CHAR (charset, c) < 0)
1285 return 2; 1281 return 2;
1286 } 1282 }