summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-09-09 19:54:05 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-09-14 19:09:10 +0000
commit49bb43f6626b927b978eac765609844294523cad (patch)
tree8a56916651f51c63489cd1427e6fba2b6a19cbdb
parent7821cd84121ac8a4de5c70ab46d36bcbb881bb43 (diff)
Standardise header guards.
Using the full path including the repo name.
-rw-r--r--auto_tests/check_compat.h6
-rw-r--r--other/bootstrap_daemon/src/command_line_arguments.h6
-rw-r--r--other/bootstrap_daemon/src/config.h6
-rw-r--r--other/bootstrap_daemon/src/config_defaults.h6
-rw-r--r--other/bootstrap_daemon/src/global.h6
-rw-r--r--other/bootstrap_daemon/src/log.h6
-rw-r--r--other/bootstrap_daemon/src/log_backend_stdout.h6
-rw-r--r--other/bootstrap_daemon/src/log_backend_syslog.h6
-rw-r--r--other/bootstrap_node_packets.h6
-rw-r--r--toxav/audio.h6
-rw-r--r--toxav/bwcontroller.h6
-rw-r--r--toxav/msi.h6
-rw-r--r--toxav/ring_buffer.h6
-rw-r--r--toxav/rtp.h6
-rw-r--r--toxav/toxav.api.h6
-rw-r--r--toxav/toxav.h6
-rw-r--r--toxav/video.h6
-rw-r--r--toxcore/DHT.h4
-rw-r--r--toxcore/LAN_discovery.api.h6
-rw-r--r--toxcore/LAN_discovery.h4
-rw-r--r--toxcore/Messenger.h4
-rw-r--r--toxcore/TCP_client.h4
-rw-r--r--toxcore/TCP_connection.h4
-rw-r--r--toxcore/TCP_server.h4
-rw-r--r--toxcore/ccompat.h6
-rw-r--r--toxcore/crypto_core.api.h6
-rw-r--r--toxcore/crypto_core.h6
-rw-r--r--toxcore/friend_connection.h4
-rw-r--r--toxcore/friend_requests.h4
-rw-r--r--toxcore/group.h4
-rw-r--r--toxcore/list.h4
-rw-r--r--toxcore/logger.h6
-rw-r--r--toxcore/mono_time.h2
-rw-r--r--toxcore/net_crypto.h4
-rw-r--r--toxcore/network.h4
-rw-r--r--toxcore/onion.h4
-rw-r--r--toxcore/onion_announce.h4
-rw-r--r--toxcore/onion_client.h4
-rw-r--r--toxcore/ping.api.h6
-rw-r--r--toxcore/ping.h6
-rw-r--r--toxcore/ping_array.api.h2
-rw-r--r--toxcore/ping_array.h2
-rw-r--r--toxcore/tox.api.h6
-rw-r--r--toxcore/tox.h6
-rw-r--r--toxcore/util.h6
-rw-r--r--toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h5
-rw-r--r--toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_scrypt.h5
-rw-r--r--toxencryptsave/crypto_pwhash_scryptsalsa208sha256/export.h5
-rw-r--r--toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pbkdf2-sha256.h5
-rw-r--r--toxencryptsave/crypto_pwhash_scryptsalsa208sha256/runtime.h5
-rw-r--r--toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sysendian.h5
-rw-r--r--toxencryptsave/defines.h5
-rw-r--r--toxencryptsave/toxencryptsave.api.h6
-rw-r--r--toxencryptsave/toxencryptsave.h6
54 files changed, 155 insertions, 120 deletions
diff --git a/auto_tests/check_compat.h b/auto_tests/check_compat.h
index 2f83577d..b1b73e0f 100644
--- a/auto_tests/check_compat.h
+++ b/auto_tests/check_compat.h
@@ -1,5 +1,5 @@
1#ifndef CHECK_COMPAT_H 1#ifndef C_TOXCORE_AUTO_TESTS_CHECK_COMPAT_H
2#define CHECK_COMPAT_H 2#define C_TOXCORE_AUTO_TESTS_CHECK_COMPAT_H
3 3
4#include "../toxcore/ccompat.h" 4#include "../toxcore/ccompat.h"
5 5
@@ -64,4 +64,4 @@ static inline int srunner_ntests_failed(SRunner *r)
64 abort(); \ 64 abort(); \
65} while (0) 65} while (0)
66 66
67#endif // CHECK_COMPAT_H 67#endif // C_TOXCORE_AUTO_TESTS_CHECK_COMPAT_H
diff --git a/other/bootstrap_daemon/src/command_line_arguments.h b/other/bootstrap_daemon/src/command_line_arguments.h
index d0f07583..e6e69eed 100644
--- a/other/bootstrap_daemon/src/command_line_arguments.h
+++ b/other/bootstrap_daemon/src/command_line_arguments.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef COMMAND_LINE_ARGUMENTS_H 25#ifndef C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_COMMAND_LINE_ARGUMENTS_H
26#define COMMAND_LINE_ARGUMENTS_H 26#define C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_COMMAND_LINE_ARGUMENTS_H
27 27
28#include "log.h" 28#include "log.h"
29 29
@@ -40,4 +40,4 @@
40void handle_command_line_arguments(int argc, char *argv[], char **cfg_file_path, LOG_BACKEND *log_backend, 40void handle_command_line_arguments(int argc, char *argv[], char **cfg_file_path, LOG_BACKEND *log_backend,
41 bool *run_in_foreground); 41 bool *run_in_foreground);
42 42
43#endif // COMMAND_LINE_ARGUMENTS_H 43#endif // C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_COMMAND_LINE_ARGUMENTS_H
diff --git a/other/bootstrap_daemon/src/config.h b/other/bootstrap_daemon/src/config.h
index c6fca58e..022419bf 100644
--- a/other/bootstrap_daemon/src/config.h
+++ b/other/bootstrap_daemon/src/config.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef CONFIG_H 25#ifndef C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_CONFIG_H
26#define CONFIG_H 26#define C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_CONFIG_H
27 27
28#include "../../../toxcore/DHT.h" 28#include "../../../toxcore/DHT.h"
29 29
@@ -49,4 +49,4 @@ int get_general_config(const char *cfg_file_path, char **pid_file_path, char **k
49 */ 49 */
50int bootstrap_from_config(const char *cfg_file_path, DHT *dht, int enable_ipv6); 50int bootstrap_from_config(const char *cfg_file_path, DHT *dht, int enable_ipv6);
51 51
52#endif // CONFIG_H 52#endif // C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_CONFIG_H
diff --git a/other/bootstrap_daemon/src/config_defaults.h b/other/bootstrap_daemon/src/config_defaults.h
index 603968c2..2b9bbf8e 100644
--- a/other/bootstrap_daemon/src/config_defaults.h
+++ b/other/bootstrap_daemon/src/config_defaults.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef CONFIG_DEFAULTS_H 25#ifndef C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_CONFIG_DEFAULTS_H
26#define CONFIG_DEFAULTS_H 26#define C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_CONFIG_DEFAULTS_H
27 27
28#include "global.h" 28#include "global.h"
29 29
@@ -39,4 +39,4 @@
39#define DEFAULT_ENABLE_MOTD 1 // 1 - true, 0 - false 39#define DEFAULT_ENABLE_MOTD 1 // 1 - true, 0 - false
40#define DEFAULT_MOTD DAEMON_NAME 40#define DEFAULT_MOTD DAEMON_NAME
41 41
42#endif // CONFIG_DEFAULTS_H 42#endif // C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_CONFIG_DEFAULTS_H
diff --git a/other/bootstrap_daemon/src/global.h b/other/bootstrap_daemon/src/global.h
index 437dbadd..c939f19d 100644
--- a/other/bootstrap_daemon/src/global.h
+++ b/other/bootstrap_daemon/src/global.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef GLOBAL_H 25#ifndef C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_GLOBAL_H
26#define GLOBAL_H 26#define C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_GLOBAL_H
27 27
28#include "../../../toxcore/tox.h" 28#include "../../../toxcore/tox.h"
29 29
@@ -56,4 +56,4 @@
56#define MIN_ALLOWED_PORT 1 56#define MIN_ALLOWED_PORT 1
57#define MAX_ALLOWED_PORT 65535 57#define MAX_ALLOWED_PORT 65535
58 58
59#endif // GLOBAL_H 59#endif // C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_GLOBAL_H
diff --git a/other/bootstrap_daemon/src/log.h b/other/bootstrap_daemon/src/log.h
index 77e623f9..9327da6c 100644
--- a/other/bootstrap_daemon/src/log.h
+++ b/other/bootstrap_daemon/src/log.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef LOG_H 25#ifndef C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_LOG_H
26#define LOG_H 26#define C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_LOG_H
27 27
28#include <stdbool.h> 28#include <stdbool.h>
29 29
@@ -63,4 +63,4 @@ bool log_close(void);
63bool log_write(LOG_LEVEL level, const char *format, ...) GNU_PRINTF(2, 3); 63bool log_write(LOG_LEVEL level, const char *format, ...) GNU_PRINTF(2, 3);
64 64
65 65
66#endif // LOG_H 66#endif // C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_LOG_H
diff --git a/other/bootstrap_daemon/src/log_backend_stdout.h b/other/bootstrap_daemon/src/log_backend_stdout.h
index d24b5bf5..3ebcd069 100644
--- a/other/bootstrap_daemon/src/log_backend_stdout.h
+++ b/other/bootstrap_daemon/src/log_backend_stdout.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef LOG_STDOUT_H 25#ifndef C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_LOG_BACKEND_STDOUT_H
26#define LOG_STDOUT_H 26#define C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_LOG_BACKEND_STDOUT_H
27 27
28#include "log.h" 28#include "log.h"
29 29
@@ -31,4 +31,4 @@
31 31
32void log_backend_stdout_write(LOG_LEVEL level, const char *format, va_list args) GNU_PRINTF(2, 0); 32void log_backend_stdout_write(LOG_LEVEL level, const char *format, va_list args) GNU_PRINTF(2, 0);
33 33
34#endif // LOG_BACKEND_STDOUT_H 34#endif // C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_LOG_BACKEND_STDOUT_H
diff --git a/other/bootstrap_daemon/src/log_backend_syslog.h b/other/bootstrap_daemon/src/log_backend_syslog.h
index ed82fec5..6afae224 100644
--- a/other/bootstrap_daemon/src/log_backend_syslog.h
+++ b/other/bootstrap_daemon/src/log_backend_syslog.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef LOG_BACKEND_SYSLOG_H 25#ifndef C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_LOG_BACKEND_SYSLOG_H
26#define LOG_BACKEND_SYSLOG_H 26#define C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_LOG_BACKEND_SYSLOG_H
27 27
28#include "log.h" 28#include "log.h"
29 29
@@ -33,4 +33,4 @@ void log_backend_syslog_open(void);
33void log_backend_syslog_close(void); 33void log_backend_syslog_close(void);
34void log_backend_syslog_write(LOG_LEVEL level, const char *format, va_list args) GNU_PRINTF(2, 0); 34void log_backend_syslog_write(LOG_LEVEL level, const char *format, va_list args) GNU_PRINTF(2, 0);
35 35
36#endif // LOG_BACKEND_SYSLOG_H 36#endif // C_TOXCORE_OTHER_BOOTSTRAP_DAEMON_SRC_LOG_BACKEND_SYSLOG_H
diff --git a/other/bootstrap_node_packets.h b/other/bootstrap_node_packets.h
index 0ac314f4..1b8b87f2 100644
--- a/other/bootstrap_node_packets.h
+++ b/other/bootstrap_node_packets.h
@@ -23,8 +23,8 @@
23 * You should have received a copy of the GNU General Public License 23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 25 */
26#ifndef BOOTSTRAP_NODE_PACKETS_H 26#ifndef C_TOXCORE_OTHER_BOOTSTRAP_NODE_PACKETS_H
27#define BOOTSTRAP_NODE_PACKETS_H 27#define C_TOXCORE_OTHER_BOOTSTRAP_NODE_PACKETS_H
28 28
29#include "../toxcore/network.h" 29#include "../toxcore/network.h"
30 30
@@ -32,4 +32,4 @@
32 32
33int bootstrap_set_callbacks(Networking_Core *net, uint32_t version, uint8_t *motd, uint16_t motd_length); 33int bootstrap_set_callbacks(Networking_Core *net, uint32_t version, uint8_t *motd, uint16_t motd_length);
34 34
35#endif // BOOTSTRAP_NODE_PACKETS_H 35#endif // C_TOXCORE_OTHER_BOOTSTRAP_NODE_PACKETS_H
diff --git a/toxav/audio.h b/toxav/audio.h
index a323a08e..ccb28c10 100644
--- a/toxav/audio.h
+++ b/toxav/audio.h
@@ -17,8 +17,8 @@
17 * You should have received a copy of the GNU General Public License 17 * You should have received a copy of the GNU General Public License
18 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 18 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
19 */ 19 */
20#ifndef AUDIO_H 20#ifndef C_TOXCORE_TOXAV_AUDIO_H
21#define AUDIO_H 21#define C_TOXCORE_TOXAV_AUDIO_H
22 22
23#include "toxav.h" 23#include "toxav.h"
24 24
@@ -85,4 +85,4 @@ void ac_iterate(ACSession *ac);
85int ac_queue_message(Mono_Time *mono_time, void *acp, struct RTPMessage *msg); 85int ac_queue_message(Mono_Time *mono_time, void *acp, struct RTPMessage *msg);
86int ac_reconfigure_encoder(ACSession *ac, int32_t bit_rate, int32_t sampling_rate, uint8_t channels); 86int ac_reconfigure_encoder(ACSession *ac, int32_t bit_rate, int32_t sampling_rate, uint8_t channels);
87 87
88#endif /* AUDIO_H */ 88#endif // C_TOXCORE_TOXAV_AUDIO_H
diff --git a/toxav/bwcontroller.h b/toxav/bwcontroller.h
index 00342d97..c54cc5a6 100644
--- a/toxav/bwcontroller.h
+++ b/toxav/bwcontroller.h
@@ -17,8 +17,8 @@
17 * You should have received a copy of the GNU General Public License 17 * You should have received a copy of the GNU General Public License
18 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 18 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
19 */ 19 */
20#ifndef BWCONROLLER_H 20#ifndef C_TOXCORE_TOXAV_BWCONTROLLER_H
21#define BWCONROLLER_H 21#define C_TOXCORE_TOXAV_BWCONTROLLER_H
22 22
23#include "../toxcore/Messenger.h" 23#include "../toxcore/Messenger.h"
24 24
@@ -33,4 +33,4 @@ void bwc_kill(BWController *bwc);
33void bwc_add_lost(BWController *bwc, uint32_t bytes_lost); 33void bwc_add_lost(BWController *bwc, uint32_t bytes_lost);
34void bwc_add_recv(BWController *bwc, uint32_t recv_bytes); 34void bwc_add_recv(BWController *bwc, uint32_t recv_bytes);
35 35
36#endif /* BWCONROLLER_H */ 36#endif // C_TOXCORE_TOXAV_BWCONTROLLER_H
diff --git a/toxav/msi.h b/toxav/msi.h
index 30841498..af7f6f34 100644
--- a/toxav/msi.h
+++ b/toxav/msi.h
@@ -17,8 +17,8 @@
17 * You should have received a copy of the GNU General Public License 17 * You should have received a copy of the GNU General Public License
18 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 18 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
19 */ 19 */
20#ifndef MSI_H 20#ifndef C_TOXCORE_TOXAV_MSI_H
21#define MSI_H 21#define C_TOXCORE_TOXAV_MSI_H
22 22
23#include "audio.h" 23#include "audio.h"
24#include "video.h" 24#include "video.h"
@@ -148,4 +148,4 @@ int msi_answer(MSICall *call, uint8_t capabilities);
148 */ 148 */
149int msi_change_capabilities(MSICall *call, uint8_t capabilities); 149int msi_change_capabilities(MSICall *call, uint8_t capabilities);
150 150
151#endif /* MSI_H */ 151#endif // C_TOXCORE_TOXAV_MSI_H
diff --git a/toxav/ring_buffer.h b/toxav/ring_buffer.h
index 307e16ec..e63d08e4 100644
--- a/toxav/ring_buffer.h
+++ b/toxav/ring_buffer.h
@@ -19,8 +19,8 @@
19 * You should have received a copy of the GNU General Public License 19 * You should have received a copy of the GNU General Public License
20 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 20 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
21 */ 21 */
22#ifndef RING_BUFFER_H 22#ifndef C_TOXCORE_TOXAV_RING_BUFFER_H
23#define RING_BUFFER_H 23#define C_TOXCORE_TOXAV_RING_BUFFER_H
24 24
25#include <stdbool.h> 25#include <stdbool.h>
26#include <stdint.h> 26#include <stdint.h>
@@ -44,4 +44,4 @@ uint16_t rb_data(const RingBuffer *b, void **dest);
44} 44}
45#endif 45#endif
46 46
47#endif /* RING_BUFFER_H */ 47#endif // C_TOXCORE_TOXAV_RING_BUFFER_H
diff --git a/toxav/rtp.h b/toxav/rtp.h
index e068f6ac..4d6fb791 100644
--- a/toxav/rtp.h
+++ b/toxav/rtp.h
@@ -17,8 +17,8 @@
17 * You should have received a copy of the GNU General Public License 17 * You should have received a copy of the GNU General Public License
18 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 18 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
19 */ 19 */
20#ifndef RTP_H 20#ifndef C_TOXCORE_TOXAV_RTP_H
21#define RTP_H 21#define C_TOXCORE_TOXAV_RTP_H
22 22
23#include "bwcontroller.h" 23#include "bwcontroller.h"
24 24
@@ -220,4 +220,4 @@ int rtp_send_data(RTPSession *session, const uint8_t *data, uint32_t length,
220} // extern "C" 220} // extern "C"
221#endif 221#endif
222 222
223#endif /* RTP_H */ 223#endif // C_TOXCORE_TOXAV_RTP_H
diff --git a/toxav/toxav.api.h b/toxav/toxav.api.h
index 02f8bc9f..14c6a8e1 100644
--- a/toxav/toxav.api.h
+++ b/toxav/toxav.api.h
@@ -18,8 +18,8 @@
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 19 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
20 */ 20 */
21#ifndef TOXAV_H 21#ifndef C_TOXCORE_TOXAV_TOXAV_H
22#define TOXAV_H 22#define C_TOXCORE_TOXAV_TOXAV_H
23 23
24#include <stdbool.h> 24#include <stdbool.h>
25#include <stddef.h> 25#include <stddef.h>
@@ -668,5 +668,5 @@ typedef TOXAV_ERR_BIT_RATE_SET Toxav_Err_Bit_Rate_Set;
668typedef TOXAV_ERR_SEND_FRAME Toxav_Err_Send_Frame; 668typedef TOXAV_ERR_SEND_FRAME Toxav_Err_Send_Frame;
669typedef TOXAV_CALL_CONTROL Toxav_Call_Control; 669typedef TOXAV_CALL_CONTROL Toxav_Call_Control;
670 670
671#endif /* TOXAV_H */ 671#endif // C_TOXCORE_TOXAV_TOXAV_H
672%} 672%}
diff --git a/toxav/toxav.h b/toxav/toxav.h
index 4cc2af2c..bc634e91 100644
--- a/toxav/toxav.h
+++ b/toxav/toxav.h
@@ -17,8 +17,8 @@
17 * You should have received a copy of the GNU General Public License 17 * You should have received a copy of the GNU General Public License
18 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 18 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
19 */ 19 */
20#ifndef TOXAV_H 20#ifndef C_TOXCORE_TOXAV_TOXAV_H
21#define TOXAV_H 21#define C_TOXCORE_TOXAV_TOXAV_H
22 22
23#include <stdbool.h> 23#include <stdbool.h>
24#include <stddef.h> 24#include <stddef.h>
@@ -797,4 +797,4 @@ typedef TOXAV_ERR_BIT_RATE_SET Toxav_Err_Bit_Rate_Set;
797typedef TOXAV_ERR_SEND_FRAME Toxav_Err_Send_Frame; 797typedef TOXAV_ERR_SEND_FRAME Toxav_Err_Send_Frame;
798typedef TOXAV_CALL_CONTROL Toxav_Call_Control; 798typedef TOXAV_CALL_CONTROL Toxav_Call_Control;
799 799
800#endif /* TOXAV_H */ 800#endif // C_TOXCORE_TOXAV_TOXAV_H
diff --git a/toxav/video.h b/toxav/video.h
index 16f4658b..f7dfc992 100644
--- a/toxav/video.h
+++ b/toxav/video.h
@@ -17,8 +17,8 @@
17 * You should have received a copy of the GNU General Public License 17 * You should have received a copy of the GNU General Public License
18 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 18 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
19 */ 19 */
20#ifndef VIDEO_H 20#ifndef C_TOXCORE_TOXAV_VIDEO_H
21#define VIDEO_H 21#define C_TOXCORE_TOXAV_VIDEO_H
22 22
23#include "toxav.h" 23#include "toxav.h"
24 24
@@ -67,4 +67,4 @@ void vc_iterate(VCSession *vc);
67int vc_queue_message(Mono_Time *mono_time, void *vcp, struct RTPMessage *msg); 67int vc_queue_message(Mono_Time *mono_time, void *vcp, struct RTPMessage *msg);
68int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height, int16_t kf_max_dist); 68int vc_reconfigure_encoder(VCSession *vc, uint32_t bit_rate, uint16_t width, uint16_t height, int16_t kf_max_dist);
69 69
70#endif /* VIDEO_H */ 70#endif // C_TOXCORE_TOXAV_VIDEO_H
diff --git a/toxcore/DHT.h b/toxcore/DHT.h
index 9f5f1ec7..cbe905ce 100644
--- a/toxcore/DHT.h
+++ b/toxcore/DHT.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef DHT_H 24#ifndef C_TOXCORE_TOXCORE_DHT_H
25#define DHT_H 25#define C_TOXCORE_TOXCORE_DHT_H
26 26
27#include "crypto_core.h" 27#include "crypto_core.h"
28#include "logger.h" 28#include "logger.h"
diff --git a/toxcore/LAN_discovery.api.h b/toxcore/LAN_discovery.api.h
index 515552f7..31d6a5f6 100644
--- a/toxcore/LAN_discovery.api.h
+++ b/toxcore/LAN_discovery.api.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef LAN_DISCOVERY_H 25#ifndef C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
26#define LAN_DISCOVERY_H 26#define C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
27 27
28#include "DHT.h" 28#include "DHT.h"
29%} 29%}
@@ -68,5 +68,5 @@ static bool ip_is_local(iP::this ip);
68static bool ip_is_lan(iP::this ip); 68static bool ip_is_lan(iP::this ip);
69 69
70%{ 70%{
71#endif 71#endif // C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
72%} 72%}
diff --git a/toxcore/LAN_discovery.h b/toxcore/LAN_discovery.h
index 3e563782..8c48316d 100644
--- a/toxcore/LAN_discovery.h
+++ b/toxcore/LAN_discovery.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef LAN_DISCOVERY_H 24#ifndef C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
25#define LAN_DISCOVERY_H 25#define C_TOXCORE_TOXCORE_LAN_DISCOVERY_H
26 26
27#include "DHT.h" 27#include "DHT.h"
28 28
diff --git a/toxcore/Messenger.h b/toxcore/Messenger.h
index 09f631ff..b2de6a5a 100644
--- a/toxcore/Messenger.h
+++ b/toxcore/Messenger.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef MESSENGER_H 25#ifndef C_TOXCORE_TOXCORE_MESSENGER_H
26#define MESSENGER_H 26#define C_TOXCORE_TOXCORE_MESSENGER_H
27 27
28#include "friend_connection.h" 28#include "friend_connection.h"
29#include "friend_requests.h" 29#include "friend_requests.h"
diff --git a/toxcore/TCP_client.h b/toxcore/TCP_client.h
index 412e43e2..9d43d642 100644
--- a/toxcore/TCP_client.h
+++ b/toxcore/TCP_client.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TCP_CLIENT_H 24#ifndef C_TOXCORE_TOXCORE_TCP_CLIENT_H
25#define TCP_CLIENT_H 25#define C_TOXCORE_TOXCORE_TCP_CLIENT_H
26 26
27#include "TCP_server.h" 27#include "TCP_server.h"
28#include "crypto_core.h" 28#include "crypto_core.h"
diff --git a/toxcore/TCP_connection.h b/toxcore/TCP_connection.h
index 8ae9549f..1962fb1a 100644
--- a/toxcore/TCP_connection.h
+++ b/toxcore/TCP_connection.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TCP_CONNECTION_H 24#ifndef C_TOXCORE_TOXCORE_TCP_CONNECTION_H
25#define TCP_CONNECTION_H 25#define C_TOXCORE_TOXCORE_TCP_CONNECTION_H
26 26
27#include "TCP_client.h" 27#include "TCP_client.h"
28 28
diff --git a/toxcore/TCP_server.h b/toxcore/TCP_server.h
index fe05b5a5..1798ebeb 100644
--- a/toxcore/TCP_server.h
+++ b/toxcore/TCP_server.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TCP_SERVER_H 24#ifndef C_TOXCORE_TOXCORE_TCP_SERVER_H
25#define TCP_SERVER_H 25#define C_TOXCORE_TOXCORE_TCP_SERVER_H
26 26
27#include "crypto_core.h" 27#include "crypto_core.h"
28#include "list.h" 28#include "list.h"
diff --git a/toxcore/ccompat.h b/toxcore/ccompat.h
index 5b37a294..ba8c7fe8 100644
--- a/toxcore/ccompat.h
+++ b/toxcore/ccompat.h
@@ -1,8 +1,8 @@
1/* 1/*
2 * C language compatibility macros for varying compiler support. 2 * C language compatibility macros for varying compiler support.
3 */ 3 */
4#ifndef CCOMPAT_H 4#ifndef C_TOXCORE_TOXCORE_CCOMPAT_H
5#define CCOMPAT_H 5#define C_TOXCORE_TOXCORE_CCOMPAT_H
6 6
7// Variable length arrays. 7// Variable length arrays.
8// VLA(type, name, size) allocates a variable length array with automatic 8// VLA(type, name, size) allocates a variable length array with automatic
@@ -48,4 +48,4 @@
48#define GNU_PRINTF(f, a) 48#define GNU_PRINTF(f, a)
49#endif 49#endif
50 50
51#endif /* CCOMPAT_H */ 51#endif // C_TOXCORE_TOXCORE_CCOMPAT_H
diff --git a/toxcore/crypto_core.api.h b/toxcore/crypto_core.api.h
index 9623e5b3..94ccac47 100644
--- a/toxcore/crypto_core.api.h
+++ b/toxcore/crypto_core.api.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef CRYPTO_CORE_H 25#ifndef C_TOXCORE_TOXCORE_CRYPTO_CORE_H
26#define CRYPTO_CORE_H 26#define C_TOXCORE_TOXCORE_CRYPTO_CORE_H
27 27
28#include <stdbool.h> 28#include <stdbool.h>
29#include <stddef.h> 29#include <stddef.h>
@@ -264,5 +264,5 @@ static void new_symmetric_key(uint8_t[CRYPTO_SYMMETRIC_KEY_SIZE] key);
264} // extern "C" 264} // extern "C"
265#endif 265#endif
266 266
267#endif /* CRYPTO_CORE_H */ 267#endif // C_TOXCORE_TOXCORE_CRYPTO_CORE_H
268%} 268%}
diff --git a/toxcore/crypto_core.h b/toxcore/crypto_core.h
index 90b86990..b287b21e 100644
--- a/toxcore/crypto_core.h
+++ b/toxcore/crypto_core.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef CRYPTO_CORE_H 24#ifndef C_TOXCORE_TOXCORE_CRYPTO_CORE_H
25#define CRYPTO_CORE_H 25#define C_TOXCORE_TOXCORE_CRYPTO_CORE_H
26 26
27#include <stdbool.h> 27#include <stdbool.h>
28#include <stddef.h> 28#include <stddef.h>
@@ -249,4 +249,4 @@ void new_symmetric_key(uint8_t *key);
249} // extern "C" 249} // extern "C"
250#endif 250#endif
251 251
252#endif /* CRYPTO_CORE_H */ 252#endif // C_TOXCORE_TOXCORE_CRYPTO_CORE_H
diff --git a/toxcore/friend_connection.h b/toxcore/friend_connection.h
index 8a355377..149a4fa7 100644
--- a/toxcore/friend_connection.h
+++ b/toxcore/friend_connection.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef FRIEND_CONNECTION_H 24#ifndef C_TOXCORE_TOXCORE_FRIEND_CONNECTION_H
25#define FRIEND_CONNECTION_H 25#define C_TOXCORE_TOXCORE_FRIEND_CONNECTION_H
26 26
27#include "DHT.h" 27#include "DHT.h"
28#include "LAN_discovery.h" 28#include "LAN_discovery.h"
diff --git a/toxcore/friend_requests.h b/toxcore/friend_requests.h
index f8b3718c..7fcd3f0d 100644
--- a/toxcore/friend_requests.h
+++ b/toxcore/friend_requests.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef FRIEND_REQUESTS_H 24#ifndef C_TOXCORE_TOXCORE_FRIEND_REQUESTS_H
25#define FRIEND_REQUESTS_H 25#define C_TOXCORE_TOXCORE_FRIEND_REQUESTS_H
26 26
27#include "friend_connection.h" 27#include "friend_connection.h"
28 28
diff --git a/toxcore/group.h b/toxcore/group.h
index 110f5d44..7acd4637 100644
--- a/toxcore/group.h
+++ b/toxcore/group.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef GROUP_H 24#ifndef C_TOXCORE_TOXCORE_GROUP_H
25#define GROUP_H 25#define C_TOXCORE_TOXCORE_GROUP_H
26 26
27#include "Messenger.h" 27#include "Messenger.h"
28 28
diff --git a/toxcore/list.h b/toxcore/list.h
index 6ec67505..c9c72c2a 100644
--- a/toxcore/list.h
+++ b/toxcore/list.h
@@ -23,8 +23,8 @@
23 * You should have received a copy of the GNU General Public License 23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 25 */
26#ifndef LIST_H 26#ifndef C_TOXCORE_TOXCORE_LIST_H
27#define LIST_H 27#define C_TOXCORE_TOXCORE_LIST_H
28 28
29#include <stdint.h> 29#include <stdint.h>
30 30
diff --git a/toxcore/logger.h b/toxcore/logger.h
index aaca7612..6231ca4b 100644
--- a/toxcore/logger.h
+++ b/toxcore/logger.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TOXLOGGER_H 24#ifndef C_TOXCORE_TOXCORE_LOGGER_H
25#define TOXLOGGER_H 25#define C_TOXCORE_TOXCORE_LOGGER_H
26 26
27#include <stdint.h> 27#include <stdint.h>
28 28
@@ -90,4 +90,4 @@ void logger_write(
90#define LOGGER_WARNING(log, ...) LOGGER_WRITE(log, LOGGER_LEVEL_WARNING, __VA_ARGS__) 90#define LOGGER_WARNING(log, ...) LOGGER_WRITE(log, LOGGER_LEVEL_WARNING, __VA_ARGS__)
91#define LOGGER_ERROR(log, ...) LOGGER_WRITE(log, LOGGER_LEVEL_ERROR , __VA_ARGS__) 91#define LOGGER_ERROR(log, ...) LOGGER_WRITE(log, LOGGER_LEVEL_ERROR , __VA_ARGS__)
92 92
93#endif /* TOXLOGGER_H */ 93#endif // C_TOXCORE_TOXCORE_LOGGER_H
diff --git a/toxcore/mono_time.h b/toxcore/mono_time.h
index c2934d06..503548f2 100644
--- a/toxcore/mono_time.h
+++ b/toxcore/mono_time.h
@@ -66,4 +66,4 @@ void mono_time_set_current_time_callback(Mono_Time *mono_time,
66} 66}
67#endif 67#endif
68 68
69#endif // C_TOXCORE_TOXCORE_MONO_TIME_H 69#endif // C_TOXCORE_TOXCORE_MONO_TIME_H
diff --git a/toxcore/net_crypto.h b/toxcore/net_crypto.h
index 9fd47014..45e1a05e 100644
--- a/toxcore/net_crypto.h
+++ b/toxcore/net_crypto.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef NET_CRYPTO_H 24#ifndef C_TOXCORE_TOXCORE_NET_CRYPTO_H
25#define NET_CRYPTO_H 25#define C_TOXCORE_TOXCORE_NET_CRYPTO_H
26 26
27#include "DHT.h" 27#include "DHT.h"
28#include "LAN_discovery.h" 28#include "LAN_discovery.h"
diff --git a/toxcore/network.h b/toxcore/network.h
index 6c5b6781..a1d83842 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef NETWORK_H 24#ifndef C_TOXCORE_TOXCORE_NETWORK_H
25#define NETWORK_H 25#define C_TOXCORE_TOXCORE_NETWORK_H
26 26
27#include "logger.h" 27#include "logger.h"
28 28
diff --git a/toxcore/onion.h b/toxcore/onion.h
index c48d6566..26cf0039 100644
--- a/toxcore/onion.h
+++ b/toxcore/onion.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef ONION_H 24#ifndef C_TOXCORE_TOXCORE_ONION_H
25#define ONION_H 25#define C_TOXCORE_TOXCORE_ONION_H
26 26
27#include "DHT.h" 27#include "DHT.h"
28#include "mono_time.h" 28#include "mono_time.h"
diff --git a/toxcore/onion_announce.h b/toxcore/onion_announce.h
index adbffc6a..2eb5051b 100644
--- a/toxcore/onion_announce.h
+++ b/toxcore/onion_announce.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef ONION_ANNOUNCE_H 24#ifndef C_TOXCORE_TOXCORE_ONION_ANNOUNCE_H
25#define ONION_ANNOUNCE_H 25#define C_TOXCORE_TOXCORE_ONION_ANNOUNCE_H
26 26
27#include "onion.h" 27#include "onion.h"
28 28
diff --git a/toxcore/onion_client.h b/toxcore/onion_client.h
index ff090ba2..66e417d7 100644
--- a/toxcore/onion_client.h
+++ b/toxcore/onion_client.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef ONION_CLIENT_H 25#ifndef C_TOXCORE_TOXCORE_ONION_CLIENT_H
26#define ONION_CLIENT_H 26#define C_TOXCORE_TOXCORE_ONION_CLIENT_H
27 27
28#include "net_crypto.h" 28#include "net_crypto.h"
29#include "onion_announce.h" 29#include "onion_announce.h"
diff --git a/toxcore/ping.api.h b/toxcore/ping.api.h
index 9f8d319c..2ae5b365 100644
--- a/toxcore/ping.api.h
+++ b/toxcore/ping.api.h
@@ -24,8 +24,8 @@
24 * You should have received a copy of the GNU General Public License 24 * You should have received a copy of the GNU General Public License
25 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 25 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
26 */ 26 */
27#ifndef PING_H 27#ifndef C_TOXCORE_TOXCORE_PING_H
28#define PING_H 28#define C_TOXCORE_TOXCORE_PING_H
29 29
30#include "DHT.h" 30#include "DHT.h"
31#include "network.h" 31#include "network.h"
@@ -62,5 +62,5 @@ int32_t send_request(iP_Port::this ipp, const uint8_t *public_key);
62} 62}
63 63
64%{ 64%{
65#endif /* PING_H */ 65#endif // C_TOXCORE_TOXCORE_PING_H
66%} 66%}
diff --git a/toxcore/ping.h b/toxcore/ping.h
index da9a53f2..0413e285 100644
--- a/toxcore/ping.h
+++ b/toxcore/ping.h
@@ -23,8 +23,8 @@
23 * You should have received a copy of the GNU General Public License 23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 25 */
26#ifndef PING_H 26#ifndef C_TOXCORE_TOXCORE_PING_H
27#define PING_H 27#define C_TOXCORE_TOXCORE_PING_H
28 28
29#include "DHT.h" 29#include "DHT.h"
30#include "network.h" 30#include "network.h"
@@ -71,4 +71,4 @@ void ping_iterate(Ping *ping);
71 71
72int32_t ping_send_request(Ping *ping, struct IP_Port ipp, const uint8_t *public_key); 72int32_t ping_send_request(Ping *ping, struct IP_Port ipp, const uint8_t *public_key);
73 73
74#endif /* PING_H */ 74#endif // C_TOXCORE_TOXCORE_PING_H
diff --git a/toxcore/ping_array.api.h b/toxcore/ping_array.api.h
index b153db25..e0ac333b 100644
--- a/toxcore/ping_array.api.h
+++ b/toxcore/ping_array.api.h
@@ -77,5 +77,5 @@ int32_t check(const mono_Time::this *mono_time, uint8_t[length] data, uint64_t p
77} // extern "C" 77} // extern "C"
78#endif 78#endif
79 79
80#endif // C_TOXCORE_TOXCORE_PING_ARRAY_H 80#endif // C_TOXCORE_TOXCORE_PING_ARRAY_H
81%} 81%}
diff --git a/toxcore/ping_array.h b/toxcore/ping_array.h
index 90e10460..a2e57856 100644
--- a/toxcore/ping_array.h
+++ b/toxcore/ping_array.h
@@ -78,4 +78,4 @@ int32_t ping_array_check(struct Ping_Array *_array, const struct Mono_Time *mono
78} // extern "C" 78} // extern "C"
79#endif 79#endif
80 80
81#endif // C_TOXCORE_TOXCORE_PING_ARRAY_H 81#endif // C_TOXCORE_TOXCORE_PING_ARRAY_H
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h
index d960ee74..8beb86b7 100644
--- a/toxcore/tox.api.h
+++ b/toxcore/tox.api.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef TOX_H 25#ifndef C_TOXCORE_TOXCORE_TOX_H
26#define TOX_H 26#define C_TOXCORE_TOXCORE_TOX_H
27 27
28#include <stdbool.h> 28#include <stdbool.h>
29#include <stddef.h> 29#include <stddef.h>
@@ -2772,5 +2772,5 @@ typedef TOX_CONNECTION Tox_Connection;
2772typedef TOX_FILE_CONTROL Tox_File_Control; 2772typedef TOX_FILE_CONTROL Tox_File_Control;
2773typedef TOX_CONFERENCE_TYPE Tox_Conference_Type; 2773typedef TOX_CONFERENCE_TYPE Tox_Conference_Type;
2774 2774
2775#endif 2775#endif // C_TOXCORE_TOXCORE_TOX_H
2776%} 2776%}
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 5dcdd7f0..5a9ca450 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TOX_H 24#ifndef C_TOXCORE_TOXCORE_TOX_H
25#define TOX_H 25#define C_TOXCORE_TOXCORE_TOX_H
26 26
27#include <stdbool.h> 27#include <stdbool.h>
28#include <stddef.h> 28#include <stddef.h>
@@ -3167,4 +3167,4 @@ typedef TOX_CONNECTION Tox_Connection;
3167typedef TOX_FILE_CONTROL Tox_File_Control; 3167typedef TOX_FILE_CONTROL Tox_File_Control;
3168typedef TOX_CONFERENCE_TYPE Tox_Conference_Type; 3168typedef TOX_CONFERENCE_TYPE Tox_Conference_Type;
3169 3169
3170#endif 3170#endif // C_TOXCORE_TOXCORE_TOX_H
diff --git a/toxcore/util.h b/toxcore/util.h
index b4ba407d..85586724 100644
--- a/toxcore/util.h
+++ b/toxcore/util.h
@@ -23,8 +23,8 @@
23 * You should have received a copy of the GNU General Public License 23 * You should have received a copy of the GNU General Public License
24 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 24 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
25 */ 25 */
26#ifndef UTIL_H 26#ifndef C_TOXCORE_TOXCORE_UTIL_H
27#define UTIL_H 27#define C_TOXCORE_TOXCORE_UTIL_H
28 28
29#include <pthread.h> 29#include <pthread.h>
30#include <stdbool.h> 30#include <stdbool.h>
@@ -55,4 +55,4 @@ uint64_t min_u64(uint64_t a, uint64_t b);
55} // extern "C" 55} // extern "C"
56#endif 56#endif
57 57
58#endif /* UTIL_H */ 58#endif // C_TOXCORE_TOXCORE_UTIL_H
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h
index 5cb32f8d..8249fa1c 100644
--- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h
+++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h
@@ -1,3 +1,6 @@
1#ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_H
2#define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_H
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#endif 6#endif
@@ -90,3 +93,5 @@ int crypto_pwhash_scryptsalsa208sha256_ll(const uint8_t * passwd, size_t passwdl
90#endif 93#endif
91 94
92#endif 95#endif
96
97#endif
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_scrypt.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_scrypt.h
index 3f0b7d72..978ac918 100644
--- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_scrypt.h
+++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/crypto_scrypt.h
@@ -1,3 +1,6 @@
1#ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_CRYPTO_SCRYPT_H
2#define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_CRYPTO_SCRYPT_H
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#endif 6#endif
@@ -91,3 +94,5 @@ extern uint8_t * escrypt_gensalt_r(
91#endif /* !_CRYPTO_SCRYPT_H_ */ 94#endif /* !_CRYPTO_SCRYPT_H_ */
92 95
93#endif 96#endif
97
98#endif
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/export.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/export.h
index ee5b30f7..ebf8d9df 100644
--- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/export.h
+++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/export.h
@@ -1,3 +1,6 @@
1#ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_EXPORT_H
2#define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_EXPORT_H
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#endif 6#endif
@@ -36,3 +39,5 @@
36#endif 39#endif
37 40
38#endif 41#endif
42
43#endif
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pbkdf2-sha256.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pbkdf2-sha256.h
index b74bc6a3..17cd2112 100644
--- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pbkdf2-sha256.h
+++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/pbkdf2-sha256.h
@@ -1,3 +1,6 @@
1#ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_PBKDF2_SHA256_H
2#define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_PBKDF2_SHA256_H
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#endif 6#endif
@@ -50,3 +53,5 @@ void PBKDF2_SHA256(const uint8_t *, size_t, const uint8_t *, size_t,
50#endif /* !_SHA256_H_ */ 53#endif /* !_SHA256_H_ */
51 54
52#endif 55#endif
56
57#endif
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/runtime.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/runtime.h
index 874915ef..260a4550 100644
--- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/runtime.h
+++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/runtime.h
@@ -1,3 +1,6 @@
1#ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_RUNTIME_H
2#define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_RUNTIME_H
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#endif 6#endif
@@ -31,3 +34,5 @@ int sodium_runtime_has_sse3(void);
31#endif 34#endif
32 35
33#endif 36#endif
37
38#endif
diff --git a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sysendian.h b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sysendian.h
index 04e5c1ed..4deca4c6 100644
--- a/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sysendian.h
+++ b/toxencryptsave/crypto_pwhash_scryptsalsa208sha256/sysendian.h
@@ -1,3 +1,6 @@
1#ifndef C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SYSENDIAN_H
2#define C_TOXCORE_TOXENCRYPTSAVE_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SYSENDIAN_H
3
1#ifdef HAVE_CONFIG_H 4#ifdef HAVE_CONFIG_H
2#include "config.h" 5#include "config.h"
3#endif 6#endif
@@ -151,3 +154,5 @@ le64enc(void *pp, uint64_t x)
151#endif /* !_SYSENDIAN_H_ */ 154#endif /* !_SYSENDIAN_H_ */
152 155
153#endif 156#endif
157
158#endif
diff --git a/toxencryptsave/defines.h b/toxencryptsave/defines.h
index e3fca073..0bc1d9ed 100644
--- a/toxencryptsave/defines.h
+++ b/toxencryptsave/defines.h
@@ -1,2 +1,7 @@
1#ifndef C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H
2#define C_TOXCORE_TOXENCRYPTSAVE_DEFINES_H
3
1#define TOX_ENC_SAVE_MAGIC_NUMBER "toxEsave" 4#define TOX_ENC_SAVE_MAGIC_NUMBER "toxEsave"
2#define TOX_ENC_SAVE_MAGIC_LENGTH 8 5#define TOX_ENC_SAVE_MAGIC_LENGTH 8
6
7#endif
diff --git a/toxencryptsave/toxencryptsave.api.h b/toxencryptsave/toxencryptsave.api.h
index b034288a..28d7a650 100644
--- a/toxencryptsave/toxencryptsave.api.h
+++ b/toxencryptsave/toxencryptsave.api.h
@@ -22,8 +22,8 @@
22 * You should have received a copy of the GNU General Public License 22 * You should have received a copy of the GNU General Public License
23 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 23 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
24 */ 24 */
25#ifndef TOXENCRYPTSAVE_H 25#ifndef C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H
26#define TOXENCRYPTSAVE_H 26#define C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H
27 27
28#ifdef __cplusplus 28#ifdef __cplusplus
29extern "C" { 29extern "C" {
@@ -313,5 +313,5 @@ static bool is_data_encrypted(const uint8_t *data);
313} 313}
314#endif 314#endif
315 315
316#endif 316#endif // C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H
317%} 317%}
diff --git a/toxencryptsave/toxencryptsave.h b/toxencryptsave/toxencryptsave.h
index 78d377e5..400483cb 100644
--- a/toxencryptsave/toxencryptsave.h
+++ b/toxencryptsave/toxencryptsave.h
@@ -21,8 +21,8 @@
21 * You should have received a copy of the GNU General Public License 21 * You should have received a copy of the GNU General Public License
22 * along with Tox. If not, see <http://www.gnu.org/licenses/>. 22 * along with Tox. If not, see <http://www.gnu.org/licenses/>.
23 */ 23 */
24#ifndef TOXENCRYPTSAVE_H 24#ifndef C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H
25#define TOXENCRYPTSAVE_H 25#define C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H
26 26
27#ifdef __cplusplus 27#ifdef __cplusplus
28extern "C" { 28extern "C" {
@@ -375,4 +375,4 @@ bool tox_is_data_encrypted(const uint8_t *data);
375} 375}
376#endif 376#endif
377 377
378#endif 378#endif // C_TOXCORE_TOXENCRYPTSAVE_TOXENCRYPTSAVE_H