Skip to content

Commit 2da1ce2

Browse files
attempt reformat
1 parent ff3e6d9 commit 2da1ce2

File tree

1 file changed

+9
-24
lines changed

1 file changed

+9
-24
lines changed

libc/include/llvm-libc-macros/pthread-macros.h

Lines changed: 9 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,9 @@
3030
#ifdef __linux__
3131
#define PTHREAD_MUTEX_INITIALIZER \
3232
{ \
33-
/* .__timed = */ 0, \
34-
/* .__recursive = */ 0, \
35-
/* .__robust = */ 0, \
36-
/* .__owner = */ NULL, \
37-
/* .__lock_count = */ 0, /* .__futex_word = */ \
38-
{ \
39-
/* .__word = */ 0, \
40-
}, \
33+
/* .__timed = */ 0, /* .__recursive = */ 0, \
34+
/* .__robust = */ 0, /* .__owner = */ NULL, \
35+
/* .__lock_count = */ 0, /* .__futex_word = */ {0}, \
4136
}
4237
#else
4338
#define PTHREAD_MUTEX_INITIALIZER \
@@ -53,22 +48,12 @@
5348
/* .__is_pshared = */ 0, \
5449
/* .__preference = */ 0, \
5550
/* .__state = */ 0, \
56-
/* .__write_tid = */ 0, /* .__wait_queue_mutex = */ \
57-
{ \
58-
/* .__word = */ 0, \
59-
}, /* .__pending_readers = */ \
60-
{ \
61-
/* .__word = */ 0, \
62-
}, /* .__pending_writers = */ \
63-
{ \
64-
/* .__word = */ 0, \
65-
}, /* .__reader_serialization = */ \
66-
{ \
67-
/* .__word = */ 0, \
68-
}, /* .__writer_serialization = */ \
69-
{ \
70-
/* .__word = */ 0, \
71-
}, \
51+
/* .__write_tid = */ 0, \
52+
/* .__wait_queue_mutex = */ {0}, \
53+
/* .__pending_readers = */ {0}, \
54+
/* .__pending_writers = */ {0}, \
55+
/* .__reader_serialization = */ {0}, \
56+
/* .__writer_serialization = */ {0}, \
7257
}
7358

7459
// glibc extensions

0 commit comments

Comments
 (0)