mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-08-16 06:36:26 +00:00
Avoid using user identifiers in function declarations. (#124)
MultiSource/Benchmarks/McCat in llvm-test-suite has a macro named `n`, so rename function parameters to avoid colliding.
This commit is contained in:
parent
8048aeb500
commit
ec3ee5e985
@ -10,13 +10,13 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void *malloc(size_t size) __attribute__((__malloc__, __warn_unused_result__));
|
void *malloc(size_t __size) __attribute__((__malloc__, __warn_unused_result__));
|
||||||
void free(void *ptr);
|
void free(void *__ptr);
|
||||||
void *calloc(size_t nmemb, size_t size) __attribute__((__malloc__, __warn_unused_result__));
|
void *calloc(size_t __nmemb, size_t __size) __attribute__((__malloc__, __warn_unused_result__));
|
||||||
void *realloc(void *ptr, size_t size) __attribute__((__warn_unused_result__));
|
void *realloc(void *__ptr, size_t __size) __attribute__((__warn_unused_result__));
|
||||||
|
|
||||||
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
|
||||||
void *reallocarray(void *, size_t, size_t) __attribute__((__warn_unused_result__));
|
void *reallocarray(void *__ptr, size_t __nmemb, size_t __size) __attribute__((__warn_unused_result__));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -9,9 +9,9 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void *memcpy(void *__restrict__ dst, const void *__restrict__ src, size_t n) __attribute__((__nothrow__, __leaf__, __nonnull__(1, 2)));
|
void *memcpy(void *__restrict__ __dst, const void *__restrict__ __src, size_t __n) __attribute__((__nothrow__, __leaf__, __nonnull__(1, 2)));
|
||||||
void *memmove(void *dst, const void *src, size_t n) __attribute__((__nothrow__, __leaf__, __nonnull__(1, 2)));
|
void *memmove(void *__dst, const void *__src, size_t __n) __attribute__((__nothrow__, __leaf__, __nonnull__(1, 2)));
|
||||||
void *memset(void *dst, int c, size_t n) __attribute__((__nothrow__, __leaf__, __nonnull__(1)));
|
void *memset(void *__dst, int __c, size_t __n) __attribute__((__nothrow__, __leaf__, __nonnull__(1)));
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user