diff options
Diffstat (limited to 'src/composite.h')
| -rw-r--r-- | src/composite.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/composite.h b/src/composite.h index 845411f5cde..6a7e0a5e2c7 100644 --- a/src/composite.h +++ b/src/composite.h | |||
| @@ -25,6 +25,11 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 25 | #ifndef EMACS_COMPOSITE_H | 25 | #ifndef EMACS_COMPOSITE_H |
| 26 | #define EMACS_COMPOSITE_H | 26 | #define EMACS_COMPOSITE_H |
| 27 | 27 | ||
| 28 | INLINE_HEADER_BEGIN | ||
| 29 | #ifndef COMPOSITE_INLINE | ||
| 30 | # define COMPOSITE_INLINE INLINE | ||
| 31 | #endif | ||
| 32 | |||
| 28 | /* Methods to display a sequence of components of a composition. */ | 33 | /* Methods to display a sequence of components of a composition. */ |
| 29 | enum composition_method { | 34 | enum composition_method { |
| 30 | /* Compose relatively without alternate characters. */ | 35 | /* Compose relatively without alternate characters. */ |
| @@ -247,6 +252,11 @@ extern void compose_text (ptrdiff_t, ptrdiff_t, Lisp_Object, Lisp_Object, | |||
| 247 | #define LGSTRING_GLYPH_LEN(lgs) (ASIZE ((lgs)) - 2) | 252 | #define LGSTRING_GLYPH_LEN(lgs) (ASIZE ((lgs)) - 2) |
| 248 | #define LGSTRING_GLYPH(lgs, idx) AREF ((lgs), (idx) + 2) | 253 | #define LGSTRING_GLYPH(lgs, idx) AREF ((lgs), (idx) + 2) |
| 249 | #define LGSTRING_SET_GLYPH(lgs, idx, val) ASET ((lgs), (idx) + 2, (val)) | 254 | #define LGSTRING_SET_GLYPH(lgs, idx, val) ASET ((lgs), (idx) + 2, (val)) |
| 255 | COMPOSITE_INLINE Lisp_Object * | ||
| 256 | lgstring_glyph_addr (Lisp_Object lgs, ptrdiff_t idx) | ||
| 257 | { | ||
| 258 | return aref_addr (lgs, idx + 2); | ||
| 259 | } | ||
| 250 | 260 | ||
| 251 | /* Vector size of Lispy glyph. */ | 261 | /* Vector size of Lispy glyph. */ |
| 252 | enum lglyph_indices | 262 | enum lglyph_indices |
| @@ -316,4 +326,6 @@ extern int composition_update_it (struct composition_it *, | |||
| 316 | 326 | ||
| 317 | extern ptrdiff_t composition_adjust_point (ptrdiff_t, ptrdiff_t); | 327 | extern ptrdiff_t composition_adjust_point (ptrdiff_t, ptrdiff_t); |
| 318 | 328 | ||
| 329 | INLINE_HEADER_END | ||
| 330 | |||
| 319 | #endif /* not EMACS_COMPOSITE_H */ | 331 | #endif /* not EMACS_COMPOSITE_H */ |