summaryrefslogtreecommitdiff
path: root/src/thread.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2017-11-13 08:51:41 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2017-11-13 10:16:51 -0800
commit5d68dc9a2fd1b9b883db6bc1c226541b50de8bb1 (patch)
tree196afa86890522fcde540c618ac85e307194127b /src/thread.h
parent6aa0a26b46240d79eddd7e0d275454e235a60b84 (diff)
downloademacs-5d68dc9a2fd1b9b883db6bc1c226541b50de8bb1.tar.gz
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/>. */
struct thread_state
{
- struct vectorlike_header header;
+ union vectorlike_header header;
/* The buffer in which the last search was performed, or
Qt if the last search was done in a string;
@@ -230,7 +230,7 @@ typedef struct
/* A mutex as a lisp object. */
struct Lisp_Mutex
{
- struct vectorlike_header header;
+ union vectorlike_header header;
/* The name of the mutex, or nil. */
Lisp_Object name;
@@ -261,7 +261,7 @@ XMUTEX (Lisp_Object a)
/* A condition variable as a lisp object. */
struct Lisp_CondVar
{
- struct vectorlike_header header;
+ union vectorlike_header header;
/* The associated mutex. */
Lisp_Object mutex;