]> git.eshelyaron.com Git - emacs.git/commitdiff
(CHAR_LEN): Moved here from dispextern.h.
authorGerd Moellmann <gerd@gnu.org>
Wed, 21 Jul 1999 21:43:52 +0000 (21:43 +0000)
committerGerd Moellmann <gerd@gnu.org>
Wed, 21 Jul 1999 21:43:52 +0000 (21:43 +0000)
src/charset.h

index d385e05bbb68e10834531f1fb444a61f3a00f0ed..2cc0f0ce0171e854f595b61879f78466072fbdd0 100644 (file)
@@ -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 */