diff options
| author | Paul Eggert | 2017-11-13 08:51:41 -0800 |
|---|---|---|
| committer | Paul Eggert | 2017-11-13 10:16:51 -0800 |
| commit | 5d68dc9a2fd1b9b883db6bc1c226541b50de8bb1 (patch) | |
| tree | 196afa86890522fcde540c618ac85e307194127b /doc | |
| parent | 6aa0a26b46240d79eddd7e0d275454e235a60b84 (diff) | |
| download | emacs-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.texi | 4 |
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 |
| 250 | frame are managed as if they were vectors. The corresponding C data | 250 | frame are managed as if they were vectors. The corresponding C data |
| 251 | structures include the @code{struct vectorlike_header} field whose | 251 | structures 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} |
| 253 | and an information about how many @code{Lisp_Object} fields this structure | 253 | and an information about how many @code{Lisp_Object} fields this structure |
| 254 | contains and what the size of the rest data is. This information is | 254 | contains 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 |
| 1088 | A header of type @code{struct vectorlike_header} is common to all | 1088 | A header of type @code{union vectorlike_header} is common to all |
| 1089 | vectorlike objects. | 1089 | vectorlike objects. |
| 1090 | 1090 | ||
| 1091 | @item own_text | 1091 | @item own_text |