clang-format 19.0.0git

This commit is contained in:
Jōshin 2024-06-15 13:27:02 -07:00
parent ef1647ca79
commit ecd8046585
No known key found for this signature in database
4 changed files with 11 additions and 6 deletions

View file

@ -23,9 +23,10 @@ struct sock_fprog {
#define BPF_TAX 0x00
#define BPF_TXA 0x80
#define BPF_STMT(code, k) {(unsigned short)(code), 0, 0, k}
#define BPF_STMT(code, k) \
{ (unsigned short)(code), 0, 0, k }
#define BPF_JUMP(code, k, jumptrue, jumpfalse) \
{(unsigned short)(code), jumptrue, jumpfalse, k}
{ (unsigned short)(code), jumptrue, jumpfalse, k }
#define BPF_MEMWORDS 16

View file

@ -108,10 +108,11 @@ https://github.com/piscisaureus/wepoll");
(EPOLLIN | EPOLLPRI | EPOLLOUT | EPOLLERR | EPOLLHUP | EPOLLRDNORM | \
EPOLLRDBAND | EPOLLWRNORM | EPOLLWRBAND | EPOLLMSG | EPOLLRDHUP)
#define RTL_CONSTANT_STRING(s) {sizeof(s) - sizeof((s)[0]), sizeof(s), s}
#define RTL_CONSTANT_STRING(s) \
{ sizeof(s) - sizeof((s)[0]), sizeof(s), s }
#define RTL_CONSTANT_OBJECT_ATTRIBUTES(ObjectName, Attributes) \
{sizeof(struct NtObjectAttributes), 0, ObjectName, Attributes, NULL, NULL}
{ sizeof(struct NtObjectAttributes), 0, ObjectName, Attributes, NULL, NULL }
#define RETURN_MAP_ERROR(value) \
do { \

View file

@ -44,7 +44,9 @@ COSMOPOLITAN_C_START_
#define PTHREAD_COND_INITIALIZER _PTHREAD_INIT
#define PTHREAD_RWLOCK_INITIALIZER _PTHREAD_INIT
#define PTHREAD_MUTEX_INITIALIZER _PTHREAD_INIT
#define _PTHREAD_INIT {0}
#define _PTHREAD_INIT \
{ 0 }
typedef uintptr_t pthread_t;
typedef int pthread_id_np_t;

View file

@ -30,7 +30,8 @@
#define OPEN_MAX 16
#define I(x, y) {x, y, 0, (y - x) * FRAMESIZE + FRAMESIZE}
#define I(x, y) \
{ x, y, 0, (y - x) * FRAMESIZE + FRAMESIZE }
void SetUpOnce(void) {
ASSERT_SYS(0, 0, pledge("stdio rpath", 0));