aboutsummaryrefslogtreecommitdiffstats
path: root/src/charset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/charset.h')
-rw-r--r--src/charset.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/charset.h b/src/charset.h
index c2a52a38e7e..98bf35f644a 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -1,5 +1,5 @@
1/* Header for charset handler. 1/* Header for charset handler.
2 Copyright (C) 2001-2011 Free Software Foundation, Inc. 2 Copyright (C) 2001-2012 Free Software Foundation, Inc.
3 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3 Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 2005, 2006, 2007, 2008, 2009, 2010, 2011 4 2005, 2006, 2007, 2008, 2009, 2010, 2011
5 National Institute of Advanced Industrial Science and Technology (AIST) 5 National Institute of Advanced Industrial Science and Technology (AIST)
@@ -148,12 +148,12 @@ struct charset
148 int id; 148 int id;
149 149
150 /* Index to Vcharset_hash_table. */ 150 /* Index to Vcharset_hash_table. */
151 EMACS_INT hash_index; 151 ptrdiff_t hash_index;
152 152
153 /* Dimension of the charset: 1, 2, 3, or 4. */ 153 /* Dimension of the charset: 1, 2, 3, or 4. */
154 int dimension; 154 int dimension;
155 155
156 /* Byte code range of each dimension. <code_space>[4N] is a mininum 156 /* Byte code range of each dimension. <code_space>[4N] is a minimum
157 byte code of the (N+1)th dimension, <code_space>[4N+1] is a 157 byte code of the (N+1)th dimension, <code_space>[4N+1] is a
158 maximum byte code of the (N+1)th dimension, <code_space>[4N+2] is 158 maximum byte code of the (N+1)th dimension, <code_space>[4N+2] is
159 (<code_space>[4N+1] - <code_space>[4N] + 1), <code_space>[4N+3] 159 (<code_space>[4N+1] - <code_space>[4N] + 1), <code_space>[4N+3]
@@ -199,14 +199,14 @@ struct charset
199 /* The method for encoding/decoding characters of the charset. */ 199 /* The method for encoding/decoding characters of the charset. */
200 enum charset_method method; 200 enum charset_method method;
201 201
202 /* Mininum and Maximum code points of the charset. */ 202 /* Minimum and Maximum code points of the charset. */
203 unsigned min_code, max_code; 203 unsigned min_code, max_code;
204 204
205 /* Offset value used by macros CODE_POINT_TO_INDEX and 205 /* Offset value used by macros CODE_POINT_TO_INDEX and
206 INDEX_TO_CODE_POINT. . */ 206 INDEX_TO_CODE_POINT. . */
207 unsigned char_index_offset; 207 unsigned char_index_offset;
208 208
209 /* Mininum and Maximum character codes of the charset. If the 209 /* Minimum and Maximum character codes of the charset. If the
210 charset is compatible with ASCII, min_char is a minimum non-ASCII 210 charset is compatible with ASCII, min_char is a minimum non-ASCII
211 character of the charset. If the method of charset is 211 character of the charset. If the method of charset is
212 CHARSET_METHOD_OFFSET, even if the charset is unified, min_char 212 CHARSET_METHOD_OFFSET, even if the charset is unified, min_char
@@ -238,7 +238,7 @@ struct charset
238 int unified_p; 238 int unified_p;
239}; 239};
240 240
241/* Hash table of charset symbols vs. the correponding attribute 241/* Hash table of charset symbols vs. the corresponding attribute
242 vectors. */ 242 vectors. */
243extern Lisp_Object Vcharset_hash_table; 243extern Lisp_Object Vcharset_hash_table;
244 244
@@ -341,7 +341,7 @@ extern int emacs_mule_charset[256];
341 number of the charset. Otherwise, signal an error. */ 341 number of the charset. Otherwise, signal an error. */
342#define CHECK_CHARSET_GET_ID(x, id) \ 342#define CHECK_CHARSET_GET_ID(x, id) \
343 do { \ 343 do { \
344 int idx; \ 344 ptrdiff_t idx; \
345 \ 345 \
346 if (! SYMBOLP (x) || (idx = CHARSET_SYMBOL_HASH_INDEX (x)) < 0) \ 346 if (! SYMBOLP (x) || (idx = CHARSET_SYMBOL_HASH_INDEX (x)) < 0) \
347 wrong_type_argument (Qcharsetp, (x)); \ 347 wrong_type_argument (Qcharsetp, (x)); \
@@ -389,7 +389,7 @@ extern Lisp_Object Vchar_charset_set;
389#endif 389#endif
390 390
391 391
392/* Return a character correponding to the code-point CODE of CHARSET. 392/* Return a character corresponding to the code-point CODE of CHARSET.
393 Try some optimization before calling decode_char. */ 393 Try some optimization before calling decode_char. */
394 394
395#define DECODE_CHAR(charset, code) \ 395#define DECODE_CHAR(charset, code) \