Reformat the code with new uncrustify.cfg

This commit is contained in:
Andrea Mazzoleni 2026-02-27 00:39:22 +01:00
parent ed15ad23a4
commit d451f911c7
7 changed files with 20 additions and 20 deletions

View file

@ -414,7 +414,7 @@ int windows_key_create(windows_key_t* key, void (*destructor)(void*));
int windows_key_delete(windows_key_t key);
void* windows_getspecific(windows_key_t key);
int windows_setspecific(windows_key_t key, void* value);
int windows_create(thread_id_t* thread, void* attr, void* (*func)(void*), void *arg);
int windows_create(thread_id_t* thread, void* attr, void* (*func)(void*), void* arg);
int windows_join(thread_id_t thread, void** retval);
#endif

View file

@ -28,7 +28,7 @@
/**
* Differential us of two timeval.
*/
static int64_t diffgettimeofday(struct timeval *start, struct timeval *stop)
static int64_t diffgettimeofday(struct timeval* start, struct timeval* stop)
{
int64_t d;
@ -144,9 +144,9 @@ void speed(int period, int nd, int size)
printf("CPU is not a x86/x64\n");
#endif
#if WORDS_BIGENDIAN
printf("Memory is big-endian %d-bit\n", (int)sizeof(void *) * 8);
printf("Memory is big-endian %d-bit\n", (int)sizeof(void*) * 8);
#else
printf("Memory is little-endian %d-bit\n", (int)sizeof(void *) * 8);
printf("Memory is little-endian %d-bit\n", (int)sizeof(void*) * 8);
#endif
#if HAVE_FUTIMENS

View file

@ -955,7 +955,7 @@ char* worddigitstr(const char* haystack, const char* needle)
if (s == haystack || isspace((unsigned char)s[-1]) || isdigit((unsigned char)s[-1])) {
/* right boundary */
if (s[len] == '\0' || isspace((unsigned char)s[len]) || isdigit((unsigned char)s[len])) {
return (char *)s;
return (char*)s;
}
}
}
@ -2430,7 +2430,7 @@ void thread_cond_broadcast_and_unlock(thread_cond_t* cond, thread_mutex_t* mutex
}
}
void thread_create(thread_id_t* thread, void* (*func)(void*), void *arg)
void thread_create(thread_id_t* thread, void* (*func)(void*), void* arg)
{
if (pthread_create(thread, 0, func, arg) != 0) {
/* LCOV_EXCL_START */

View file

@ -507,7 +507,7 @@ void thread_cond_broadcast(thread_cond_t* cond);
void thread_cond_wait(thread_cond_t* cond, thread_mutex_t* mutex);
void thread_cond_signal_and_unlock(thread_cond_t* cond, thread_mutex_t* mutex);
void thread_cond_broadcast_and_unlock(thread_cond_t* cond, thread_mutex_t* mutex);
void thread_create(thread_id_t* thread, void* (* func)(void *), void *arg);
void thread_create(thread_id_t* thread, void* (*func)(void*), void* arg);
void thread_join(thread_id_t thread, void** retval);
void thread_yield(void);
#endif

View file

@ -2336,7 +2336,7 @@ void os_abort(void)
#ifdef __GNUC__
printf(", gcc " __VERSION__);
#endif
printf(", %d-bit", (int)sizeof(void *) * 8);
printf(", %d-bit", (int)sizeof(void*) * 8);
printf(", PATH_MAX=%d", PATH_MAX);
printf("\n");

View file

@ -576,7 +576,7 @@ static inline void util_write64(void* ptr, uint64_t v)
* Overwrites B contents with C's high 64 bits.
*/
#if defined(__x86_64__) || defined(_M_X64)
static inline void util_mum(uint64_t *A, uint64_t *B)
static inline void util_mum(uint64_t* A, uint64_t* B)
{
uint64_t a = *A;
uint64_t b = *B;
@ -593,7 +593,7 @@ static inline void util_mum(uint64_t *A, uint64_t *B)
*B = high;
}
#elif defined(__aarch64__) || defined(_M_ARM64)
static inline void util_mum(uint64_t *A, uint64_t *B)
static inline void util_mum(uint64_t* A, uint64_t* B)
{
uint64_t a = *A;
uint64_t b = *B;
@ -608,14 +608,14 @@ static inline void util_mum(uint64_t *A, uint64_t *B)
*B = high;
}
#elif defined(__SIZEOF_INT128__)
static inline void util_mum(uint64_t *A, uint64_t *B)
static inline void util_mum(uint64_t* A, uint64_t* B)
{
__uint128_t product = ((__uint128_t)*A) * ((__uint128_t)*B);
*A = (uint64_t)product;
*B = (uint64_t)(product >> 64);
}
#else
static inline void util_mum(uint64_t *A, uint64_t *B)
static inline void util_mum(uint64_t* A, uint64_t* B)
{
uint64_t a = *A;
uint64_t b = *B;