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/tox_api.c | |
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/tox_api.c')
-rw-r--r-- | toxcore/tox_api.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/tox_api.c b/toxcore/tox_api.c index 8503f237..63b4bea3 100644 --- a/toxcore/tox_api.c +++ b/toxcore/tox_api.c | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | #define SET_ERROR_PARAMETER(param, x) do { if (param) { *param = x; } } while (0) | 8 | #define SET_ERROR_PARAMETER(param, x) do { if (param) { *param = x; } } while (0) |
9 | 9 | ||
10 | //!TOKSTYLE- | ||
10 | 11 | ||
11 | #define CONST_FUNCTION(lowercase, uppercase) \ | 12 | #define CONST_FUNCTION(lowercase, uppercase) \ |
12 | uint32_t tox_##lowercase(void) \ | 13 | uint32_t tox_##lowercase(void) \ |
@@ -60,6 +61,8 @@ ACCESSORS(void *, log_, user_data) | |||
60 | ACCESSORS(bool,, local_discovery_enabled) | 61 | ACCESSORS(bool,, local_discovery_enabled) |
61 | ACCESSORS(bool,, experimental_thread_safety) | 62 | ACCESSORS(bool,, experimental_thread_safety) |
62 | 63 | ||
64 | //!TOKSTYLE+ | ||
65 | |||
63 | const uint8_t *tox_options_get_savedata_data(const struct Tox_Options *options) | 66 | const uint8_t *tox_options_get_savedata_data(const struct Tox_Options *options) |
64 | { | 67 | { |
65 | return options->savedata_data; | 68 | return options->savedata_data; |