diff options
author | iphydf <iphydf@users.noreply.github.com> | 2020-04-09 23:56:19 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2020-04-16 11:05:08 +0000 |
commit | c08b2fb3e2c3c8e8a5722e7350b61efd6992be45 (patch) | |
tree | bc6f5738bb6a948146cedb612cc12abb3e158fb4 /toxcore/ccompat.h | |
parent | 7f9f8045cd6f8d92559cdc9f7d297cf92e960e49 (diff) |
Remove tokstyle exemptions from build files.
We put some tokstyle exemptions into the source files themselves,
instead. This way we can check some of the code in those files, and more
in the future when tokstyle supports more constructs (like apidsl).
Also: hacked ping_array.api.h to not emit `_array` as parameter names.
We'll need to fix apidsl to do this better. This works for now.
Diffstat (limited to 'toxcore/ccompat.h')
-rw-r--r-- | toxcore/ccompat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toxcore/ccompat.h b/toxcore/ccompat.h index ba8c7fe8..8ff6563d 100644 --- a/toxcore/ccompat.h +++ b/toxcore/ccompat.h | |||
@@ -4,6 +4,8 @@ | |||
4 | #ifndef C_TOXCORE_TOXCORE_CCOMPAT_H | 4 | #ifndef C_TOXCORE_TOXCORE_CCOMPAT_H |
5 | #define C_TOXCORE_TOXCORE_CCOMPAT_H | 5 | #define C_TOXCORE_TOXCORE_CCOMPAT_H |
6 | 6 | ||
7 | //!TOKSTYLE- | ||
8 | |||
7 | // Variable length arrays. | 9 | // Variable length arrays. |
8 | // VLA(type, name, size) allocates a variable length array with automatic | 10 | // VLA(type, name, size) allocates a variable length array with automatic |
9 | // storage duration. VLA_SIZE(name) evaluates to the runtime size of that array | 11 | // storage duration. VLA_SIZE(name) evaluates to the runtime size of that array |
@@ -48,4 +50,6 @@ | |||
48 | #define GNU_PRINTF(f, a) | 50 | #define GNU_PRINTF(f, a) |
49 | #endif | 51 | #endif |
50 | 52 | ||
53 | //!TOKSTYLE+ | ||
54 | |||
51 | #endif // C_TOXCORE_TOXCORE_CCOMPAT_H | 55 | #endif // C_TOXCORE_TOXCORE_CCOMPAT_H |