diff options
| author | Mattias EngdegÄrd | 2022-10-08 16:24:40 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2022-10-08 18:48:30 +0200 |
| commit | 9af63d2e8be06dec7a2f90bfe112cbc1397f7942 (patch) | |
| tree | 8c57ce6b90c9fdbfa2ae341cfa2a0fa49d00af5e /src/lisp.h | |
| parent | 71b3a37569ffa58f3640a742e31eade42cc26f98 (diff) | |
| download | emacs-9af63d2e8be06dec7a2f90bfe112cbc1397f7942.tar.gz emacs-9af63d2e8be06dec7a2f90bfe112cbc1397f7942.zip | |
Better Lisp_String comments
* src/lisp.h (struct Lisp_String): Comments improved.
* src/pdumper.c (dump_string): Update hash (comment change only).
Diffstat (limited to 'src/lisp.h')
| -rw-r--r-- | src/lisp.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lisp.h b/src/lisp.h index 9710dbef8d2..56f24d82810 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -1575,10 +1575,15 @@ struct Lisp_String | |||
| 1575 | { | 1575 | { |
| 1576 | struct | 1576 | struct |
| 1577 | { | 1577 | { |
| 1578 | ptrdiff_t size; /* MSB is used as the markbit. */ | 1578 | /* Number of characters in string; MSB is used as the mark bit. */ |
| 1579 | ptrdiff_t size_byte; /* Set to -1 for unibyte strings, | 1579 | ptrdiff_t size; |
| 1580 | -2 for data in rodata, | 1580 | /* If nonnegative, number of bytes in the string (which is multibyte). |
| 1581 | -3 for immovable unibyte strings. */ | 1581 | If negative, the string is unibyte: |
| 1582 | -1 for data normally allocated | ||
| 1583 | -2 for data in rodata (C string constants) | ||
| 1584 | -3 for data that must be immovable (used for bytecode) */ | ||
| 1585 | ptrdiff_t size_byte; | ||
| 1586 | |||
| 1582 | INTERVAL intervals; /* Text properties in this string. */ | 1587 | INTERVAL intervals; /* Text properties in this string. */ |
| 1583 | unsigned char *data; | 1588 | unsigned char *data; |
| 1584 | } s; | 1589 | } s; |