From: Rudolf Polzer Date: Sat, 24 Apr 2010 19:13:16 +0000 (+0200) Subject: include guards X-Git-Tag: xonotic-v0.1.0preview~54 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3326b270ce41d54cabaad04f3d17d922dcd74bbf;p=xonotic%2Fd0_blind_id.git include guards --- diff --git a/d0_bignum.h b/d0_bignum.h index 7eb0e0a..5f78c49 100644 --- a/d0_bignum.h +++ b/d0_bignum.h @@ -1,3 +1,6 @@ +#ifndef __D0_BIGNUM_H__ +#define __D0_BIGNUM_H__ + #include "d0.h" #include "d0_iobuf.h" @@ -36,3 +39,5 @@ WARN_UNUSED_RESULT int d0_bignum_isprime(d0_bignum_t *r, int param); WARN_UNUSED_RESULT d0_bignum_t *d0_bignum_gcd(d0_bignum_t *r, d0_bignum_t *s, d0_bignum_t *t, const d0_bignum_t *a, const d0_bignum_t *b); WARN_UNUSED_RESULT char *d0_bignum_tostring(const d0_bignum_t *x, unsigned int base); // allocates! + +#endif diff --git a/d0_blind_id.h b/d0_blind_id.h index 849285f..ed5bcda 100644 --- a/d0_blind_id.h +++ b/d0_blind_id.h @@ -1,3 +1,6 @@ +#ifndef __D0_BLIND_ID_H__ +#define __D0_BLIND_ID_H__ + #include "d0.h" typedef struct d0_blind_id_s d0_blind_id_t; @@ -27,3 +30,5 @@ WARN_UNUSED_RESULT BOOL d0_blind_id_fingerprint64_public_id(d0_blind_id_t *ctx, void d0_blind_id_INITIALIZE(); void d0_blind_id_SHUTDOWN(); + +#endif diff --git a/d0_iobuf.h b/d0_iobuf.h index 396215d..6b86c96 100644 --- a/d0_iobuf.h +++ b/d0_iobuf.h @@ -1,3 +1,6 @@ +#ifndef __D0_IOBUF_H__ +#define __D0_IOBUF_H__ + #include "d0.h" typedef struct d0_iobuf_s d0_iobuf_t; @@ -11,3 +14,5 @@ WARN_UNUSED_RESULT size_t d0_iobuf_write_raw(d0_iobuf_t *buf, const void *s, siz WARN_UNUSED_RESULT size_t d0_iobuf_read_raw(d0_iobuf_t *buf, void *s, size_t n); WARN_UNUSED_RESULT BOOL d0_iobuf_write_packet(d0_iobuf_t *buf, const void *s, size_t n); WARN_UNUSED_RESULT BOOL d0_iobuf_read_packet(d0_iobuf_t *buf, void *s, size_t *n); + +#endif diff --git a/sha1.h b/sha1.h index 79dd900..bbff148 100644 --- a/sha1.h +++ b/sha1.h @@ -1,3 +1,6 @@ +#ifndef __SHA1_H__ +#define __SHA1_H__ + #define SHA_DATASIZE 64 #define SHA_DATALEN 16 #define SHA_DIGESTSIZE 20 @@ -27,3 +30,5 @@ void sha_copy(struct sha_ctx *dest, struct sha_ctx *src); | EXTRACT_UCHAR(s+3)) unsigned char *sha(unsigned char *buffer, unsigned int len); + +#endif