aboutsummaryrefslogtreecommitdiffstats
path: root/src/thread.h
diff options
context:
space:
mode:
authorPaul Eggert2017-11-13 08:51:41 -0800
committerPaul Eggert2017-11-13 10:16:51 -0800
commit5d68dc9a2fd1b9b883db6bc1c226541b50de8bb1 (patch)
tree196afa86890522fcde540c618ac85e307194127b /src/thread.h
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 'src/thread.h')
-rw-r--r--src/thread.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/thread.h b/src/thread.h
index 19baafbf8a1..1845974bc28 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -35,7 +35,7 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
35 35
36struct thread_state 36struct thread_state
37{ 37{
38 struct vectorlike_header header; 38 union vectorlike_header header;
39 39
40 /* The buffer in which the last search was performed, or 40 /* The buffer in which the last search was performed, or
41 Qt if the last search was done in a string; 41 Qt if the last search was done in a string;
@@ -230,7 +230,7 @@ typedef struct
230/* A mutex as a lisp object. */ 230/* A mutex as a lisp object. */
231struct Lisp_Mutex 231struct Lisp_Mutex
232{ 232{
233 struct vectorlike_header header; 233 union vectorlike_header header;
234 234
235 /* The name of the mutex, or nil. */ 235 /* The name of the mutex, or nil. */
236 Lisp_Object name; 236 Lisp_Object name;
@@ -261,7 +261,7 @@ XMUTEX (Lisp_Object a)
261/* A condition variable as a lisp object. */ 261/* A condition variable as a lisp object. */
262struct Lisp_CondVar 262struct Lisp_CondVar
263{ 263{
264 struct vectorlike_header header; 264 union vectorlike_header header;
265 265
266 /* The associated mutex. */ 266 /* The associated mutex. */
267 Lisp_Object mutex; 267 Lisp_Object mutex;