diff options
| author | Kenichi Handa | 2008-04-17 01:09:57 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-04-17 01:09:57 +0000 |
| commit | 94ef4d69c135f6d58fe0a79bd6747c509931fc5c (patch) | |
| tree | 10229e601237bc6c5e7252296c40281939f866a3 /src | |
| parent | a5e83c39a795ecadc7194e5c0a361cbd50f8a39e (diff) | |
| download | emacs-94ef4d69c135f6d58fe0a79bd6747c509931fc5c.tar.gz emacs-94ef4d69c135f6d58fe0a79bd6747c509931fc5c.zip | |
(STRING_SET_MULTIBYTE): New macro.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lisp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lisp.h b/src/lisp.h index c9a33307bc4..ab07ea750f4 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -725,6 +725,13 @@ extern int string_bytes P_ ((struct Lisp_String *)); | |||
| 725 | (STR) = empty_unibyte_string; \ | 725 | (STR) = empty_unibyte_string; \ |
| 726 | else XSTRING (STR)->size_byte = -1; } while (0) | 726 | else XSTRING (STR)->size_byte = -1; } while (0) |
| 727 | 727 | ||
| 728 | /* Mark STR as a multibyte string. Assure that STR contains only | ||
| 729 | ASCII characters in advance. */ | ||
| 730 | #define STRING_SET_MULTIBYTE(STR) \ | ||
| 731 | do { if (EQ (STR, empty_unibyte_string)) \ | ||
| 732 | (STR) = empty_multibyte_string; \ | ||
| 733 | else XSTRING (STR)->size_byte = XSTRING (STR)->size; } while (0) | ||
| 734 | |||
| 728 | /* Get text properties. */ | 735 | /* Get text properties. */ |
| 729 | #define STRING_INTERVALS(STR) (XSTRING (STR)->intervals + 0) | 736 | #define STRING_INTERVALS(STR) (XSTRING (STR)->intervals + 0) |
| 730 | 737 | ||