aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/charset.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/charset.h b/src/charset.h
index 34540c3d201..d2fd94e6ade 100644
--- a/src/charset.h
+++ b/src/charset.h
@@ -553,6 +553,9 @@ extern int iso_charset_table[2][2][128];
553 553
554#define BASE_LEADING_CODE_P(c) (BYTES_BY_CHAR_HEAD ((unsigned char) (c)) > 1) 554#define BASE_LEADING_CODE_P(c) (BYTES_BY_CHAR_HEAD ((unsigned char) (c)) > 1)
555 555
556/* Return how many bytes C will occupy in a multibyte buffer. */
557#define CHAR_BYTES(c) (SINGLE_BYTE_CHAR_P (c) ? 1 : char_bytes (c))
558
556/* The following two macros CHAR_STRING and STRING_CHAR are the main 559/* The following two macros CHAR_STRING and STRING_CHAR are the main
557 entry points to convert between Emacs two types of character 560 entry points to convert between Emacs two types of character
558 representations: multi-byte form and single-word form (character 561 representations: multi-byte form and single-word form (character
@@ -815,6 +818,7 @@ extern int cmpchar_component P_ ((unsigned int, unsigned int));
815extern int find_charset_in_str P_ ((unsigned char *, int, int *, 818extern int find_charset_in_str P_ ((unsigned char *, int, int *,
816 Lisp_Object, int)); 819 Lisp_Object, int));
817extern int strwidth P_ ((unsigned char *, int)); 820extern int strwidth P_ ((unsigned char *, int));
821extern int char_bytes P_ ((int));
818 822
819extern Lisp_Object Vtranslation_table_vector; 823extern Lisp_Object Vtranslation_table_vector;
820 824