aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2002-03-01 01:18:09 +0000
committerKenichi Handa2002-03-01 01:18:09 +0000
commit1527c36e24fd94435e8e32d67658e340f247c066 (patch)
tree7a41569177ff25efde319bbbf5b5070c12ceaf70 /src
parentdf7492f9702e8e5e563699d8201fac5b54ab92b7 (diff)
downloademacs-1527c36e24fd94435e8e32d67658e340f247c066.tar.gz
emacs-1527c36e24fd94435e8e32d67658e340f247c066.zip
Include "character.h" instead of "charset.h".
(CHAR_WIDTH): Moved to character.h. (HASH_KEY, HASH_VALUE): Deleted.
Diffstat (limited to 'src')
-rw-r--r--src/composite.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/composite.c b/src/composite.c
index 2ef8533ea68..c9d3432355b 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -2,6 +2,9 @@
2 Copyright (C) 1999 Electrotechnical Laboratory, JAPAN. 2 Copyright (C) 1999 Electrotechnical Laboratory, JAPAN.
3 Licensed to the Free Software Foundation. 3 Licensed to the Free Software Foundation.
4 Copyright (C) 2001 Free Software Foundation, Inc. 4 Copyright (C) 2001 Free Software Foundation, Inc.
5 Copyright (C) 2001, 2002
6 National Institute of Advanced Industrial Science and Technology (AIST)
7 Registration Number H13PRO009
5 8
6This file is part of GNU Emacs. 9This file is part of GNU Emacs.
7 10
@@ -23,7 +26,7 @@ Boston, MA 02111-1307, USA. */
23#include <config.h> 26#include <config.h>
24#include "lisp.h" 27#include "lisp.h"
25#include "buffer.h" 28#include "buffer.h"
26#include "charset.h" 29#include "character.h"
27#include "intervals.h" 30#include "intervals.h"
28 31
29/* Emacs uses special text property `composition' to support character 32/* Emacs uses special text property `composition' to support character
@@ -152,18 +155,6 @@ Lisp_Object Qcomposition_function_table;
152/* Temporary variable used in macros COMPOSITION_XXX. */ 155/* Temporary variable used in macros COMPOSITION_XXX. */
153Lisp_Object composition_temp; 156Lisp_Object composition_temp;
154 157
155/* Return how many columns C will occupy on the screen. It always
156 returns 1 for control characters and 8-bit characters because those
157 are just ignored in a composition. */
158#define CHAR_WIDTH(c) \
159 (SINGLE_BYTE_CHAR_P (c) ? 1 : CHARSET_WIDTH (CHAR_CHARSET (c)))
160
161/* The following macros for hash table are copied from fns.c. */
162/* Value is the key part of entry IDX in hash table H. */
163#define HASH_KEY(H, IDX) AREF ((H)->key_and_value, 2 * (IDX))
164/* Value is the value part of entry IDX in hash table H. */
165#define HASH_VALUE(H, IDX) AREF ((H)->key_and_value, 2 * (IDX) + 1)
166
167/* Return COMPOSITION-ID of a composition at buffer position 158/* Return COMPOSITION-ID of a composition at buffer position
168 CHARPOS/BYTEPOS and length NCHARS. The `composition' property of 159 CHARPOS/BYTEPOS and length NCHARS. The `composition' property of
169 the sequence is PROP. STRING, if non-nil, is a string that 160 the sequence is PROP. STRING, if non-nil, is a string that