diff options
Diffstat (limited to 'src/composite.h')
| -rw-r--r-- | src/composite.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/composite.h b/src/composite.h index 8cedfdbe352..c57e2a0e9b3 100644 --- a/src/composite.h +++ b/src/composite.h | |||
| @@ -170,7 +170,7 @@ extern Lisp_Object composition_temp; | |||
| 170 | 170 | ||
| 171 | struct composition { | 171 | struct 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. */ |
| 205 | extern struct composition **composition_table; | 205 | extern struct composition **composition_table; |
| 206 | /* Number of the currently registered compositions. */ | 206 | /* Number of the currently registered compositions. */ |
| 207 | extern int n_compositions; | 207 | extern 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 | ||
| 217 | extern Lisp_Object Qcomposition; | 217 | extern Lisp_Object Qcomposition; |
| 218 | extern Lisp_Object composition_hash_table; | 218 | extern Lisp_Object composition_hash_table; |
| 219 | extern int get_composition_id (EMACS_INT, EMACS_INT, EMACS_INT, | 219 | extern ptrdiff_t get_composition_id (EMACS_INT, EMACS_INT, EMACS_INT, |
| 220 | Lisp_Object, Lisp_Object); | 220 | Lisp_Object, Lisp_Object); |
| 221 | extern int find_composition (EMACS_INT, EMACS_INT, EMACS_INT *, EMACS_INT *, | 221 | extern int find_composition (EMACS_INT, EMACS_INT, EMACS_INT *, EMACS_INT *, |
| 222 | Lisp_Object *, Lisp_Object); | 222 | Lisp_Object *, Lisp_Object); |
| 223 | extern void update_compositions (EMACS_INT, EMACS_INT, int); | 223 | extern void update_compositions (EMACS_INT, EMACS_INT, int); |
| @@ -299,7 +299,7 @@ struct face; | |||
| 299 | struct font_metrics; | 299 | struct font_metrics; |
| 300 | 300 | ||
| 301 | extern Lisp_Object composition_gstring_put_cache (Lisp_Object, EMACS_INT); | 301 | extern Lisp_Object composition_gstring_put_cache (Lisp_Object, EMACS_INT); |
| 302 | extern Lisp_Object composition_gstring_from_id (int); | 302 | extern Lisp_Object composition_gstring_from_id (ptrdiff_t); |
| 303 | extern int composition_gstring_p (Lisp_Object); | 303 | extern int composition_gstring_p (Lisp_Object); |
| 304 | extern int composition_gstring_width (Lisp_Object, EMACS_INT, EMACS_INT, | 304 | extern int composition_gstring_width (Lisp_Object, EMACS_INT, EMACS_INT, |
| 305 | struct font_metrics *); | 305 | struct font_metrics *); |