Commit 3dc9587a authored by Gerd Moellmann's avatar Gerd Moellmann
Browse files

(CHAR_LEN): Moved here from dispextern.h.

parent f69f3ee0
......@@ -839,4 +839,12 @@ extern Lisp_Object Vauto_fill_chars;
while (i--) *from_p++ = *to_p++; \
} while (0)
/* Length of C in bytes. */
#define CHAR_LEN(C) \
(CHAR_CHARSET ((C)) == CHARSET_COMPOSITION \
? cmpchar_table[COMPOSITE_CHAR_ID ((C))]->len \
: CHARSET_BYTES (CHAR_CHARSET ((C))))
#endif /* _CHARSET_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment