diff options
| author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-11-08 10:20:19 +0000 |
|---|---|---|
| committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-11-08 10:20:19 +0000 |
| commit | c3cf06f1a3a9b9ee8ac7a0ae505f95c45f7dca84 (patch) | |
| tree | a10cbb4dba8a33d5a444ed37486f013f19eab635 /include/lib/libc/aarch64 | |
| parent | f5ae1b0e098277a5b02a823a23f61577e53eadf2 (diff) | |
Standardise header guards across codebase
All identifiers, regardless of use, that start with two underscores are
reserved. This means they can't be used in header guards.
The style that this project is now to use the full name of the file in
capital letters followed by 'H'. For example, for a file called
"uart_example.h", the header guard is UART_EXAMPLE_H.
The exceptions are files that are imported from other projects:
- CryptoCell driver
- dt-bindings folders
- zlib headers
Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/lib/libc/aarch64')
| -rw-r--r-- | include/lib/libc/aarch64/endian_.h | 6 | ||||
| -rw-r--r-- | include/lib/libc/aarch64/stddef_.h | 5 | ||||
| -rw-r--r-- | include/lib/libc/aarch64/stdio_.h | 5 | ||||
| -rw-r--r-- | include/lib/libc/aarch64/stdlib_.h | 5 | ||||
| -rw-r--r-- | include/lib/libc/aarch64/string_.h | 5 | ||||
| -rw-r--r-- | include/lib/libc/aarch64/time_.h | 5 |
6 files changed, 28 insertions, 3 deletions
diff --git a/include/lib/libc/aarch64/endian_.h b/include/lib/libc/aarch64/endian_.h index c60b4752..7c79fd43 100644 --- a/include/lib/libc/aarch64/endian_.h +++ b/include/lib/libc/aarch64/endian_.h @@ -36,8 +36,8 @@ * All rights reserved. */ -#ifndef AARCH64_ENDIAN_H -#define AARCH64_ENDIAN_H +#ifndef ENDIAN__H +#define ENDIAN__H #include <stdint.h> @@ -125,4 +125,4 @@ __bswap16_var(uint16_t v) #define __bswap32(x) __bswap32_var(x) #endif /* __OPTIMIZE__ */ -#endif /* AARCH64_ENDIAN_H */ +#endif /* ENDIAN__H */ diff --git a/include/lib/libc/aarch64/stddef_.h b/include/lib/libc/aarch64/stddef_.h index 3e5883ec..b7d8209a 100644 --- a/include/lib/libc/aarch64/stddef_.h +++ b/include/lib/libc/aarch64/stddef_.h @@ -4,6 +4,9 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#ifndef STDDEF__H +#define STDDEF__H + #ifndef SIZET_ typedef unsigned long size_t; #define SIZET_ @@ -13,3 +16,5 @@ typedef unsigned long size_t; typedef long ptrdiff_t; #define _PTRDIFF_T #endif + +#endif /* STDDEF__H */ diff --git a/include/lib/libc/aarch64/stdio_.h b/include/lib/libc/aarch64/stdio_.h index ad0b2006..09b0172d 100644 --- a/include/lib/libc/aarch64/stdio_.h +++ b/include/lib/libc/aarch64/stdio_.h @@ -4,6 +4,9 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#ifndef STDIO__H +#define STDIO__H + #ifndef SIZET_ typedef unsigned long size_t; #define SIZET_ @@ -13,3 +16,5 @@ typedef unsigned long size_t; typedef long ssize_t; #define SSIZET_ #endif + +#endif /* STDIO__H */ diff --git a/include/lib/libc/aarch64/stdlib_.h b/include/lib/libc/aarch64/stdlib_.h index 3612c990..81a39d14 100644 --- a/include/lib/libc/aarch64/stdlib_.h +++ b/include/lib/libc/aarch64/stdlib_.h @@ -4,6 +4,9 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#ifndef STDLIB__H +#define STDLIB__H + #ifndef SIZET_ typedef unsigned long size_t; #define SIZET_ @@ -11,3 +14,5 @@ typedef unsigned long size_t; #define EXIT_FAILURE 1 #define EXIT_SUCCESS 0 + +#endif /* STDLIB__H */ diff --git a/include/lib/libc/aarch64/string_.h b/include/lib/libc/aarch64/string_.h index a88a751a..71c51a6c 100644 --- a/include/lib/libc/aarch64/string_.h +++ b/include/lib/libc/aarch64/string_.h @@ -4,7 +4,12 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#ifndef STRING__H +#define STRING__H + #ifndef SIZET_ typedef unsigned long size_t; #define SIZET_ #endif + +#endif /* STRING__H */ diff --git a/include/lib/libc/aarch64/time_.h b/include/lib/libc/aarch64/time_.h index cbc34e76..68ab1b8d 100644 --- a/include/lib/libc/aarch64/time_.h +++ b/include/lib/libc/aarch64/time_.h @@ -4,9 +4,14 @@ * SPDX-License-Identifier: BSD-3-Clause */ +#ifndef TIME__H +#define TIME__H + #ifndef SIZET_ typedef unsigned long size_t; #define SIZET_ #endif typedef long int time_t; + +#endif /* TIME__H */ |
