summaryrefslogtreecommitdiff
path: root/src/lisp.h
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2022-10-08 16:24:40 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2022-10-08 18:48:30 +0200
commit9af63d2e8be06dec7a2f90bfe112cbc1397f7942 (patch)
tree8c57ce6b90c9fdbfa2ae341cfa2a0fa49d00af5e /src/lisp.h
parent71b3a37569ffa58f3640a742e31eade42cc26f98 (diff)
downloademacs-9af63d2e8be06dec7a2f90bfe112cbc1397f7942.tar.gz
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.h13
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
{
struct
{
- ptrdiff_t size; /* MSB is used as the markbit. */
- ptrdiff_t size_byte; /* Set to -1 for unibyte strings,
- -2 for data in rodata,
- -3 for immovable unibyte strings. */
+ /* Number of characters in string; MSB is used as the mark bit. */
+ ptrdiff_t size;
+ /* If nonnegative, number of bytes in the string (which is multibyte).
+ If negative, the string is unibyte:
+ -1 for data normally allocated
+ -2 for data in rodata (C string constants)
+ -3 for data that must be immovable (used for bytecode) */
+ ptrdiff_t size_byte;
+
INTERVAL intervals; /* Text properties in this string. */
unsigned char *data;
} s;