diff options
| author | Kenichi Handa | 1998-08-28 12:22:39 +0000 |
|---|---|---|
| committer | Kenichi Handa | 1998-08-28 12:22:39 +0000 |
| commit | 3124bc0ed3b0182f1c339dc0fe85a79f2474415a (patch) | |
| tree | 37ea770111f6d3f987c10f80b080a6f468e12fc2 /src | |
| parent | 6d0b4facd2fa9385ec9b332ebd78c41840f4075f (diff) | |
| download | emacs-3124bc0ed3b0182f1c339dc0fe85a79f2474415a.tar.gz emacs-3124bc0ed3b0182f1c339dc0fe85a79f2474415a.zip | |
(CHAR_BYTES): New macro.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.h | 4 |
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)); | |||
| 815 | extern int find_charset_in_str P_ ((unsigned char *, int, int *, | 818 | extern int find_charset_in_str P_ ((unsigned char *, int, int *, |
| 816 | Lisp_Object, int)); | 819 | Lisp_Object, int)); |
| 817 | extern int strwidth P_ ((unsigned char *, int)); | 820 | extern int strwidth P_ ((unsigned char *, int)); |
| 821 | extern int char_bytes P_ ((int)); | ||
| 818 | 822 | ||
| 819 | extern Lisp_Object Vtranslation_table_vector; | 823 | extern Lisp_Object Vtranslation_table_vector; |
| 820 | 824 | ||