clang-format

This commit is contained in:
2024-09-10 13:03:02 -04:00
parent 53c617d779
commit d66450e427
381 changed files with 28864 additions and 34170 deletions

View File

@@ -30,7 +30,6 @@
#ifndef _STDARG_H_
#define _STDARG_H_
/* Get __PF() for declaring printf-like functions. */
#include <cdefs.h>
@@ -46,13 +45,13 @@
typedef __va_list va_list;
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)
#define va_start(ap, fmt) __builtin_stdarg_start(ap, fmt)
#define va_start(ap, fmt) __builtin_stdarg_start(ap, fmt)
#else
#define va_start(ap, fmt) __builtin_va_start(ap, fmt)
#define va_start(ap, fmt) __builtin_va_start(ap, fmt)
#endif
#define va_arg(ap,t) __builtin_va_arg(ap, t)
#define va_copy(ap1, ap2) __builtin_va_copy(ap1, ap2)
#define va_end(ap) __builtin_va_end(ap)
#define va_arg(ap, t) __builtin_va_arg(ap, t)
#define va_copy(ap1, ap2) __builtin_va_copy(ap1, ap2)
#define va_end(ap) __builtin_va_end(ap)
#endif
/*
@@ -62,8 +61,8 @@ typedef __va_list va_list;
* or split the definition of va_list into another header file, none
* of which seems entirely desirable.
*/
void vkprintf(const char *fmt, va_list ap) __PF(1,0);
int vsnprintf(char *buf, size_t maxlen, const char *fmt, va_list ap) __PF(3,0);
void vkprintf(const char *fmt, va_list ap) __PF(1, 0);
int vsnprintf(char *buf, size_t maxlen, const char *fmt, va_list ap) __PF(3, 0);
/*
* The printf driver function (shared with libc).
@@ -73,7 +72,6 @@ int vsnprintf(char *buf, size_t maxlen, const char *fmt, va_list ap) __PF(3,0);
* supplied length should be used explicitly.
*/
int __vprintf(void (*func)(void *clientdata, const char *str, size_t len),
void *clientdata, const char *format, va_list ap) __PF(3,0);
void *clientdata, const char *format, va_list ap) __PF(3, 0);
#endif /* _STDARG_H_ */