aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2017-11-13 08:51:41 -0800
committerPaul Eggert2017-11-13 10:16:51 -0800
commit5d68dc9a2fd1b9b883db6bc1c226541b50de8bb1 (patch)
tree196afa86890522fcde540c618ac85e307194127b /doc
parent6aa0a26b46240d79eddd7e0d275454e235a60b84 (diff)
downloademacs-5d68dc9a2fd1b9b883db6bc1c226541b50de8bb1.tar.gz
emacs-5d68dc9a2fd1b9b883db6bc1c226541b50de8bb1.zip
Change vectorlike from struct to union
* src/lisp.h (vectorlike_headed): Change from struct to union. All uses changed. Since it has only one member, this does not change semantics. This is designed to simplify future changes needed to fix bugs like Bug#29040. All uses changed.
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/internals.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/internals.texi b/doc/lispref/internals.texi
index 663d0fd92b9..b0348e74d47 100644
--- a/doc/lispref/internals.texi
+++ b/doc/lispref/internals.texi
@@ -248,7 +248,7 @@ of 8k bytes, and small vectors are packed into blocks of 4k bytes).
248@cindex storage of vector-like Lisp objects 248@cindex storage of vector-like Lisp objects
249 Beyond the basic vector, a lot of objects like window, buffer, and 249 Beyond the basic vector, a lot of objects like window, buffer, and
250frame are managed as if they were vectors. The corresponding C data 250frame are managed as if they were vectors. The corresponding C data
251structures include the @code{struct vectorlike_header} field whose 251structures include the @code{union vectorlike_header} field whose
252@code{size} member contains the subtype enumerated by @code{enum pvec_type} 252@code{size} member contains the subtype enumerated by @code{enum pvec_type}
253and an information about how many @code{Lisp_Object} fields this structure 253and an information about how many @code{Lisp_Object} fields this structure
254contains and what the size of the rest data is. This information is 254contains and what the size of the rest data is. This information is
@@ -1085,7 +1085,7 @@ Some of the fields of @code{struct buffer} are:
1085 1085
1086@table @code 1086@table @code
1087@item header 1087@item header
1088A header of type @code{struct vectorlike_header} is common to all 1088A header of type @code{union vectorlike_header} is common to all
1089vectorlike objects. 1089vectorlike objects.
1090 1090
1091@item own_text 1091@item own_text