diff options
Diffstat (limited to 'system/include')
112 files changed, 10492 insertions, 6318 deletions
diff --git a/system/include/libc/_ansi.h b/system/include/libc/_ansi.h index 8548e0fe..c38e22e8 100644 --- a/system/include/libc/_ansi.h +++ b/system/include/libc/_ansi.h @@ -105,9 +105,9 @@ #ifndef _ATTRIBUTE /* XXX Emscripten */ #ifdef __GNUC__ -#define _ATTRIBUTE(attrs) __attribute__ (attrs) +#define _ATTRIBUTE(attr) __attribute__ ((attr)) #else -#define _ATTRIBUTE(attrs) +#define _ATTRIBUTE(attr) #endif #endif /* XXX Emscripten */ diff --git a/system/include/libc/assert.h b/system/include/libc/assert.h index 6035227f..8d112839 100644 --- a/system/include/libc/assert.h +++ b/system/include/libc/assert.h @@ -36,10 +36,10 @@ extern "C" { # endif /* !__ASSERT_FUNC */ #endif /* !NDEBUG */ -void _EXFUN(__assert, (const char *, int, const char *)); -/* _ATTRIBUTE ((__noreturn__))); */ -void _EXFUN(__assert_func, (const char *, int, const char *, const char *)); -/* _ATTRIBUTE ((__noreturn__))); */ +void _EXFUN(__assert, (const char *, int, const char *) + _ATTRIBUTE(noreturn)); +void _EXFUN(__assert_func, (const char *, int, const char *, const char *) + _ATTRIBUTE(noreturn)); #ifdef __cplusplus } diff --git a/system/include/libc/stdio.h b/system/include/libc/stdio.h index 4e14df79..19e11039 100644 --- a/system/include/libc/stdio.h +++ b/system/include/libc/stdio.h @@ -184,22 +184,22 @@ int _EXFUN(fflush, (FILE *)); FILE * _EXFUN(freopen, (const char *, const char *, FILE *)); void _EXFUN(setbuf, (FILE *, char *)); int _EXFUN(setvbuf, (FILE *, char *, int, size_t)); -int _EXFUN(fprintf, (FILE *, const char *, ...)); -/* XXX Emscripten_ATTRIBUTE ((__format__ (__printf__, 2, 3)))); */ -int _EXFUN(fscanf, (FILE *, const char *, ...)); -/* _ATTRIBUTE ((__format__ (__scanf__, 2, 3)))); */ -int _EXFUN(printf, (const char *, ...)); -/* _ATTRIBUTE ((__format__ (__printf__, 1, 2)))); */ -int _EXFUN(scanf, (const char *, ...)); -/* _ATTRIBUTE ((__format__ (__scanf__, 1, 2)))); */ -int _EXFUN(sscanf, (const char *, const char *, ...)); -/* _ATTRIBUTE ((__format__ (__scanf__, 2, 3)))); */ -int _EXFUN(vfprintf, (FILE *, const char *, __VALIST)); -/* _ATTRIBUTE ((__format__ (__printf__, 2, 0)))); */ -int _EXFUN(vprintf, (const char *, __VALIST)); -/* _ATTRIBUTE ((__format__ (__printf__, 1, 0)))); */ -int _EXFUN(vsprintf, (char *, const char *, __VALIST)); -/* _ATTRIBUTE ((__format__ (__printf__, 2, 0)))); */ +int _EXFUN(fprintf, (FILE *, const char *, ...) + _ATTRIBUTE (__format__ (_ |