summaryrefslogtreecommitdiff
path: root/toxcore/tox.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-09-11 15:47:51 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-09-13 00:32:02 +0100
commit0aa2840164fc782f150cd45f8668ca623e6002cf (patch)
tree68d4b762c6233946fc3e73af546e2a5a5f6cdb16 /toxcore/tox.c
parent2b2dc07f6f7fe28a8e558125d977d2fa9cef3881 (diff)
Group #include directives in 3-4 groups.
1. Current module (if C file). 2. Headers from current library. 3. Headers from other library (e.g. toxcore includes in toxav). 4. System headers.
Diffstat (limited to 'toxcore/tox.c')
-rw-r--r--toxcore/tox.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/toxcore/tox.c b/toxcore/tox.c
index 40746656..9ec472c0 100644
--- a/toxcore/tox.c
+++ b/toxcore/tox.c
@@ -25,17 +25,16 @@
25#include "config.h" 25#include "config.h"
26#endif 26#endif
27 27
28#define TOX_DEFINED
29typedef struct Messenger Tox;
30#include "tox.h"
31
28#include "Messenger.h" 32#include "Messenger.h"
29#include "group.h" 33#include "group.h"
30#include "logger.h" 34#include "logger.h"
31 35
32#include "../toxencryptsave/defines.h" 36#include "../toxencryptsave/defines.h"
33 37
34#define TOX_DEFINED
35typedef struct Messenger Tox;
36
37#include "tox.h"
38
39#define SET_ERROR_PARAMETER(param, x) {if(param) {*param = x;}} 38#define SET_ERROR_PARAMETER(param, x) {if(param) {*param = x;}}
40 39
41#if TOX_HASH_LENGTH != crypto_hash_sha256_BYTES 40#if TOX_HASH_LENGTH != crypto_hash_sha256_BYTES