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/ping_array.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/ping_array.h')
-rw-r--r-- | toxcore/ping_array.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/ping_array.h b/toxcore/ping_array.h index 589573c8..70c517de 100644 --- a/toxcore/ping_array.h +++ b/toxcore/ping_array.h | |||
@@ -39,14 +39,14 @@ struct Ping_Array *ping_array_new(uint32_t size, uint32_t timeout); | |||
39 | /** | 39 | /** |
40 | * Free all the allocated memory in a Ping_Array. | 40 | * Free all the allocated memory in a Ping_Array. |
41 | */ | 41 | */ |
42 | void ping_array_kill(struct Ping_Array *_array); | 42 | void ping_array_kill(struct Ping_Array *array); |
43 | 43 | ||
44 | /** | 44 | /** |
45 | * Add a data with length to the Ping_Array list and return a ping_id. | 45 | * Add a data with length to the Ping_Array list and return a ping_id. |
46 | * | 46 | * |
47 | * @return ping_id on success, 0 on failure. | 47 | * @return ping_id on success, 0 on failure. |
48 | */ | 48 | */ |
49 | uint64_t ping_array_add(struct Ping_Array *_array, const struct Mono_Time *mono_time, const uint8_t *data, | 49 | uint64_t ping_array_add(struct Ping_Array *array, const struct Mono_Time *mono_time, const uint8_t *data, |
50 | uint32_t length); | 50 | uint32_t length); |
51 | 51 | ||
52 | /** | 52 | /** |
@@ -56,7 +56,7 @@ uint64_t ping_array_add(struct Ping_Array *_array, const struct Mono_Time *mono_ | |||
56 | * | 56 | * |
57 | * @return length of data copied on success, -1 on failure. | 57 | * @return length of data copied on success, -1 on failure. |
58 | */ | 58 | */ |
59 | int32_t ping_array_check(struct Ping_Array *_array, const struct Mono_Time *mono_time, uint8_t *data, size_t length, | 59 | int32_t ping_array_check(struct Ping_Array *array, const struct Mono_Time *mono_time, uint8_t *data, size_t length, |
60 | uint64_t ping_id); | 60 | uint64_t ping_id); |
61 | 61 | ||
62 | #ifdef __cplusplus | 62 | #ifdef __cplusplus |