Skip to content

Commit 1cdcf93

Browse files
committed
cleanup: Add comment after every #endif.
This makes far-away endifs clearer, so we're applying the rule to all endifs to be consistent.
1 parent ba99d4d commit 1cdcf93

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+217
-214
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3acc3a1f08e67dac66d91657a36d98be397fa3f14bc4798d3349605e37a90fc3 /usr/local/bin/tox-bootstrapd
1+
09cd2be2005d21ad9f146a59d4f7d7b2221a07d7b6e72a63387dc468ea477a1d /usr/local/bin/tox-bootstrapd

testing/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CIMPLE_FILES = [
44
"//c-toxcore/toxav:cimple_files",
55
"//c-toxcore/toxcore:cimple_files",
66
"//c-toxcore/toxencryptsave:cimple_files",
7+
"//c-toxcore/third_party:cimple_files",
78
]
89

910
sh_test(
@@ -40,7 +41,6 @@ sh_test(
4041
"-RTS",
4142
],
4243
data = CIMPLE_FILES + [
43-
"//c-toxcore/third_party:headers",
4444
"//hs-tokstyle:headers",
4545
"@libsodium//:headers",
4646
"@libvpx//:headers",

testing/misc_tools.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int cmdline_parsefor_ipv46(int argc, char **argv, bool *ipv6enabled);
2121
int use_test_rng(uint32_t seed);
2222

2323
#ifdef __cplusplus
24-
}
24+
} /* extern "C" */
2525
#endif
2626

2727
#endif

third_party/BUILD.bazel

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ cc_library(
99
)
1010

1111
filegroup(
12-
name = "headers",
13-
srcs = ["cmp/cmp.h"],
12+
name = "cimple_files",
13+
srcs = [
14+
"cmp/cmp.c",
15+
"cmp/cmp.h",
16+
],
1417
visibility = ["//c-toxcore:__subpackages__"],
1518
)

toxav/audio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,4 @@ void ac_iterate(ACSession *ac);
7070
int ac_queue_message(Mono_Time *mono_time, void *cs, struct RTPMessage *msg);
7171
int ac_reconfigure_encoder(ACSession *ac, uint32_t bit_rate, uint32_t sampling_rate, uint8_t channels);
7272

73-
#endif // C_TOXCORE_TOXAV_AUDIO_H
73+
#endif /* C_TOXCORE_TOXAV_AUDIO_H */

toxav/bwcontroller.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ void bwc_kill(BWController *bwc);
2020
void bwc_add_lost(BWController *bwc, uint32_t bytes_lost);
2121
void bwc_add_recv(BWController *bwc, uint32_t recv_bytes);
2222

23-
#endif // C_TOXCORE_TOXAV_BWCONTROLLER_H
23+
#endif /* C_TOXCORE_TOXAV_BWCONTROLLER_H */

toxav/groupav.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ int groupchat_disable_av(const Group_Chats *g_c, uint32_t conference_number);
6161
/** Return whether A/V is enabled in the conference. */
6262
bool groupchat_av_enabled(const Group_Chats *g_c, uint32_t conference_number);
6363

64-
#endif // C_TOXCORE_TOXAV_GROUPAV_H
64+
#endif /* C_TOXCORE_TOXAV_GROUPAV_H */

toxav/msi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,4 +144,4 @@ int msi_answer(MSICall *call, uint8_t capabilities);
144144
*/
145145
int msi_change_capabilities(MSICall *call, uint8_t capabilities);
146146

147-
#endif // C_TOXCORE_TOXAV_MSI_H
147+
#endif /* C_TOXCORE_TOXAV_MSI_H */

toxav/ring_buffer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ uint16_t rb_size(const RingBuffer *b);
2525
uint16_t rb_data(const RingBuffer *b, void **dest);
2626

2727
#ifdef __cplusplus
28-
}
28+
} /* extern "C" */
2929
#endif
3030

31-
#endif // C_TOXCORE_TOXAV_RING_BUFFER_H
31+
#endif /* C_TOXCORE_TOXAV_RING_BUFFER_H */

0 commit comments

Comments
 (0)