diff options
| author | Gerd Moellmann | 1999-07-21 21:43:52 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-07-21 21:43:52 +0000 |
| commit | 3dc9587ac1feec789a32c21a2ad8a009f7b30170 (patch) | |
| tree | 53ed5dcd4972cfeed125b6d1ad8effaf7ebe0bdb /src | |
| parent | f69f3ee03bace23944f3a21fe4cdef06c9bf9f4f (diff) | |
| download | emacs-3dc9587ac1feec789a32c21a2ad8a009f7b30170.tar.gz emacs-3dc9587ac1feec789a32c21a2ad8a009f7b30170.zip | |
(CHAR_LEN): Moved here from dispextern.h.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/charset.h b/src/charset.h index d385e05bbb6..2cc0f0ce017 100644 --- a/src/charset.h +++ b/src/charset.h | |||
| @@ -839,4 +839,12 @@ extern Lisp_Object Vauto_fill_chars; | |||
| 839 | while (i--) *from_p++ = *to_p++; \ | 839 | while (i--) *from_p++ = *to_p++; \ |
| 840 | } while (0) | 840 | } while (0) |
| 841 | 841 | ||
| 842 | /* Length of C in bytes. */ | ||
| 843 | |||
| 844 | #define CHAR_LEN(C) \ | ||
| 845 | (CHAR_CHARSET ((C)) == CHARSET_COMPOSITION \ | ||
| 846 | ? cmpchar_table[COMPOSITE_CHAR_ID ((C))]->len \ | ||
| 847 | : CHARSET_BYTES (CHAR_CHARSET ((C)))) | ||
| 848 | |||
| 849 | |||
| 842 | #endif /* _CHARSET_H */ | 850 | #endif /* _CHARSET_H */ |