aboutsummaryrefslogtreecommitdiffstats
path: root/src/composite.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/composite.h')
-rw-r--r--src/composite.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/composite.h b/src/composite.h
index 8cedfdbe352..56647503982 100644
--- a/src/composite.h
+++ b/src/composite.h
@@ -1,5 +1,5 @@
1/* Header for composite sequence handler. 1/* Header for composite sequence handler.
2 Copyright (C) 2001-2011 Free Software Foundation, Inc. 2 Copyright (C) 2001-2012 Free Software Foundation, Inc.
3 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 3 Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
4 National Institute of Advanced Industrial Science and Technology (AIST) 4 National Institute of Advanced Industrial Science and Technology (AIST)
5 Registration Number H14PRO021 5 Registration Number H14PRO021
@@ -41,7 +41,7 @@ enum composition_method {
41 COMPOSITION_NO 41 COMPOSITION_NO
42}; 42};
43 43
44/* Maximum number of compoments a single composition can have. */ 44/* Maximum number of components a single composition can have. */
45#define MAX_COMPOSITION_COMPONENTS 16 45#define MAX_COMPOSITION_COMPONENTS 16
46 46
47/* These macros access information about a composition that 47/* These macros access information about a composition that
@@ -170,7 +170,7 @@ extern Lisp_Object composition_temp;
170 170
171struct composition { 171struct composition {
172 /* Number of glyphs of the composition components. */ 172 /* Number of glyphs of the composition components. */
173 unsigned glyph_len; 173 int glyph_len;
174 174
175 /* Width, ascent, and descent pixels of the composition. */ 175 /* Width, ascent, and descent pixels of the composition. */
176 short pixel_width, ascent, descent; 176 short pixel_width, ascent, descent;
@@ -193,7 +193,7 @@ struct composition {
193 void *font; 193 void *font;
194 194
195 /* Pointer to an array of x-offset and y-offset (by pixels) of 195 /* Pointer to an array of x-offset and y-offset (by pixels) of
196 glyphs. This points to a sufficient memory space (sizeof (int) * 196 glyphs. This points to a sufficient memory space (sizeof (short) *
197 glyph_len * 2) that is allocated when the composition is 197 glyph_len * 2) that is allocated when the composition is
198 registered in composition_table. X-offset and Y-offset of Nth 198 registered in composition_table. X-offset and Y-offset of Nth
199 glyph are (2N)th and (2N+1)th elements respectively. */ 199 glyph are (2N)th and (2N+1)th elements respectively. */
@@ -204,7 +204,7 @@ struct composition {
204 COMPOSITION-ID. */ 204 COMPOSITION-ID. */
205extern struct composition **composition_table; 205extern struct composition **composition_table;
206/* Number of the currently registered compositions. */ 206/* Number of the currently registered compositions. */
207extern int n_compositions; 207extern ptrdiff_t n_compositions;
208 208
209/* Mask bits for CHECK_MASK arg to update_compositions. 209/* Mask bits for CHECK_MASK arg to update_compositions.
210 For a change in the region FROM and TO, check compositions ... */ 210 For a change in the region FROM and TO, check compositions ... */
@@ -216,8 +216,8 @@ extern int n_compositions;
216 216
217extern Lisp_Object Qcomposition; 217extern Lisp_Object Qcomposition;
218extern Lisp_Object composition_hash_table; 218extern Lisp_Object composition_hash_table;
219extern int get_composition_id (EMACS_INT, EMACS_INT, EMACS_INT, 219extern ptrdiff_t get_composition_id (EMACS_INT, EMACS_INT, EMACS_INT,
220 Lisp_Object, Lisp_Object); 220 Lisp_Object, Lisp_Object);
221extern int find_composition (EMACS_INT, EMACS_INT, EMACS_INT *, EMACS_INT *, 221extern int find_composition (EMACS_INT, EMACS_INT, EMACS_INT *, EMACS_INT *,
222 Lisp_Object *, Lisp_Object); 222 Lisp_Object *, Lisp_Object);
223extern void update_compositions (EMACS_INT, EMACS_INT, int); 223extern void update_compositions (EMACS_INT, EMACS_INT, int);
@@ -299,7 +299,7 @@ struct face;
299struct font_metrics; 299struct font_metrics;
300 300
301extern Lisp_Object composition_gstring_put_cache (Lisp_Object, EMACS_INT); 301extern Lisp_Object composition_gstring_put_cache (Lisp_Object, EMACS_INT);
302extern Lisp_Object composition_gstring_from_id (int); 302extern Lisp_Object composition_gstring_from_id (ptrdiff_t);
303extern int composition_gstring_p (Lisp_Object); 303extern int composition_gstring_p (Lisp_Object);
304extern int composition_gstring_width (Lisp_Object, EMACS_INT, EMACS_INT, 304extern int composition_gstring_width (Lisp_Object, EMACS_INT, EMACS_INT,
305 struct font_metrics *); 305 struct font_metrics *);