diff options
| author | Richard M. Stallman | 1997-08-12 16:11:31 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-08-12 16:11:31 +0000 |
| commit | feb453faa33ceb9404a2e59ef1b345520cff51b1 (patch) | |
| tree | ccb8a74f618a7578674a79a903bf80f8649c3ff4 | |
| parent | 0e55297e4c4299b83c64e4d4c277e6f979aed4d1 (diff) | |
| download | emacs-feb453faa33ceb9404a2e59ef1b345520cff51b1.tar.gz emacs-feb453faa33ceb9404a2e59ef1b345520cff51b1.zip | |
Comment changes.
| -rw-r--r-- | src/charset.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/src/charset.h b/src/charset.h index 6701e20f3a3..d4bd00f8b9b 100644 --- a/src/charset.h +++ b/src/charset.h | |||
| @@ -472,9 +472,12 @@ extern int width_by_char_head[256]; | |||
| 472 | : (CHAR_FIELD2 (c) >= 16 && CHAR_FIELD3 (c) >= 32)) \ | 472 | : (CHAR_FIELD2 (c) >= 16 && CHAR_FIELD3 (c) >= 32)) \ |
| 473 | : (c) < MIN_CHAR_COMPOSITION + n_cmpchars))) | 473 | : (c) < MIN_CHAR_COMPOSITION + n_cmpchars))) |
| 474 | 474 | ||
| 475 | /* The charset of non-ASCII character C is set to CHARSET, and the | 475 | /* The charset of non-ASCII character C is stored in CHARSET, and the |
| 476 | position-codes of C are set to C1 and C2. C2 of DIMENSION1 character | 476 | position-codes of C are stored in C1 and C2. |
| 477 | is -1. */ | 477 | We store -1 in C2 if the character is just 2 bytes. |
| 478 | |||
| 479 | Do not use this macro for an ASCII character. */ | ||
| 480 | |||
| 478 | #define SPLIT_NON_ASCII_CHAR(c, charset, c1, c2) \ | 481 | #define SPLIT_NON_ASCII_CHAR(c, charset, c1, c2) \ |
| 479 | ((c) < MIN_CHAR_OFFICIAL_DIMENSION2 \ | 482 | ((c) < MIN_CHAR_OFFICIAL_DIMENSION2 \ |
| 480 | ? (charset = CHAR_FIELD2 (c) + 0x70, \ | 483 | ? (charset = CHAR_FIELD2 (c) + 0x70, \ |
| @@ -487,19 +490,23 @@ extern int width_by_char_head[256]; | |||
| 487 | c1 = CHAR_FIELD2 (c), \ | 490 | c1 = CHAR_FIELD2 (c), \ |
| 488 | c2 = CHAR_FIELD3 (c))) | 491 | c2 = CHAR_FIELD3 (c))) |
| 489 | 492 | ||
| 490 | /* The charset of character C is set to CHARSET, and the | 493 | /* The charset of character C is stored in CHARSET, and the |
| 491 | position-codes of C are set to C1 and C2. C2 of DIMENSION1 character | 494 | position-codes of C are stored in C1 and C2. |
| 492 | is -1. */ | 495 | We store -1 in C2 if the character is just 2 bytes. */ |
| 496 | |||
| 493 | #define SPLIT_CHAR(c, charset, c1, c2) \ | 497 | #define SPLIT_CHAR(c, charset, c1, c2) \ |
| 494 | (SINGLE_BYTE_CHAR_P (c) \ | 498 | (SINGLE_BYTE_CHAR_P (c) \ |
| 495 | ? charset = CHARSET_ASCII, c1 = (c), c2 = -1 \ | 499 | ? charset = CHARSET_ASCII, c1 = (c), c2 = -1 \ |
| 496 | : SPLIT_NON_ASCII_CHAR (c, charset, c1, c2)) | 500 | : SPLIT_NON_ASCII_CHAR (c, charset, c1, c2)) |
| 497 | 501 | ||
| 498 | /* The charset of the character at STR is set to CHARSET, and the | 502 | /* The charset of the character at STR is stored in CHARSET, and the |
| 499 | position-codes are set to C1 and C2. C2 of DIMENSION1 character is -1. | 503 | position-codes are stored in C1 and C2. |
| 504 | We store -1 in C2 if the character is just 2 bytes. | ||
| 505 | |||
| 500 | If the character is a composite character, the upper 7-bit and | 506 | If the character is a composite character, the upper 7-bit and |
| 501 | lower 7-bit of CMPCHAR-ID are set in C1 and C2 respectively. No | 507 | lower 7-bit of CMPCHAR-ID are set in C1 and C2 respectively. No |
| 502 | range checking. */ | 508 | range checking. */ |
| 509 | |||
| 503 | #define SPLIT_STRING(str, len, charset, c1, c2) \ | 510 | #define SPLIT_STRING(str, len, charset, c1, c2) \ |
| 504 | ((BYTES_BY_CHAR_HEAD ((unsigned char) *(str)) < 2 \ | 511 | ((BYTES_BY_CHAR_HEAD ((unsigned char) *(str)) < 2 \ |
| 505 | || BYTES_BY_CHAR_HEAD ((unsigned char) *(str)) > len \ | 512 | || BYTES_BY_CHAR_HEAD ((unsigned char) *(str)) > len \ |