File tree 22 files changed +23
-24
lines changed
22 files changed +23
-24
lines changed Original file line number Diff line number Diff line change 6
6
#ifndef BITCOIN_CONSENSUS_CONSENSUS_H
7
7
#define BITCOIN_CONSENSUS_CONSENSUS_H
8
8
9
- #include <stdlib.h >
9
+ #include <cstdlib >
10
10
#include <stdint.h>
11
11
12
12
/** The maximum allowed size for a serialized block, in bytes (only for buffer size limits) */
Original file line number Diff line number Diff line change 5
5
#ifndef BITCOIN_CRYPTO_CHACHA20_H
6
6
#define BITCOIN_CRYPTO_CHACHA20_H
7
7
8
+ #include < cstdlib>
8
9
#include < stdint.h>
9
- #include < stdlib.h>
10
10
11
11
/* * A class for ChaCha20 256-bit stream cipher developed by Daniel J. Bernstein
12
12
https://cr.yp.to/chacha/chacha-20080128.pdf */
Original file line number Diff line number Diff line change 7
7
8
8
#include < crypto/hmac_sha256.h>
9
9
10
+ #include < cstdlib>
10
11
#include < stdint.h>
11
- #include < stdlib.h>
12
12
13
13
/* * A rfc5869 HKDF implementation with HMAC_SHA256 and fixed key output length of 32 bytes (L=32) */
14
14
class CHKDF_HMAC_SHA256_L32
Original file line number Diff line number Diff line change 7
7
8
8
#include < crypto/sha256.h>
9
9
10
+ #include < cstdlib>
10
11
#include < stdint.h>
11
- #include < stdlib.h>
12
12
13
13
/* * A hasher class for HMAC-SHA-256. */
14
14
class CHMAC_SHA256
Original file line number Diff line number Diff line change 7
7
8
8
#include < crypto/sha512.h>
9
9
10
+ #include < cstdlib>
10
11
#include < stdint.h>
11
- #include < stdlib.h>
12
12
13
13
/* * A hasher class for HMAC-SHA-512. */
14
14
class CHMAC_SHA512
Original file line number Diff line number Diff line change 5
5
#ifndef BITCOIN_CRYPTO_POLY1305_H
6
6
#define BITCOIN_CRYPTO_POLY1305_H
7
7
8
+ #include <cstdlib>
8
9
#include <stdint.h>
9
- #include <stdlib.h>
10
10
11
11
#define POLY1305_KEYLEN 32
12
12
#define POLY1305_TAGLEN 16
Original file line number Diff line number Diff line change 5
5
#ifndef BITCOIN_CRYPTO_RIPEMD160_H
6
6
#define BITCOIN_CRYPTO_RIPEMD160_H
7
7
8
+ #include < cstdlib>
8
9
#include < stdint.h>
9
- #include < stdlib.h>
10
10
11
11
/* * A hasher class for RIPEMD-160. */
12
12
class CRIPEMD160
Original file line number Diff line number Diff line change 5
5
#ifndef BITCOIN_CRYPTO_SHA1_H
6
6
#define BITCOIN_CRYPTO_SHA1_H
7
7
8
+ #include < cstdlib>
8
9
#include < stdint.h>
9
- #include < stdlib.h>
10
10
11
11
/* * A hasher class for SHA1. */
12
12
class CSHA1
Original file line number Diff line number Diff line change 5
5
#ifndef BITCOIN_CRYPTO_SHA256_H
6
6
#define BITCOIN_CRYPTO_SHA256_H
7
7
8
+ #include < cstdlib>
8
9
#include < stdint.h>
9
- #include < stdlib.h>
10
10
#include < string>
11
11
12
12
/* * A hasher class for SHA-256. */
Original file line number Diff line number Diff line change 5
5
// This is a translation to GCC extended asm syntax from YASM code by Intel
6
6
// (available at the bottom of this file).
7
7
8
+ #include < cstdlib>
8
9
#include < stdint.h>
9
- #include < stdlib.h>
10
10
11
11
#if defined(__x86_64__) || defined(__amd64__)
12
12
Original file line number Diff line number Diff line change 7
7
8
8
#include < span.h>
9
9
10
+ #include < cstdlib>
10
11
#include < stdint.h>
11
- #include < stdlib.h>
12
12
13
13
// ! The Keccak-f[1600] transform.
14
14
void KeccakF (uint64_t (&st)[25]);
Original file line number Diff line number Diff line change 5
5
#ifndef BITCOIN_CRYPTO_SHA512_H
6
6
#define BITCOIN_CRYPTO_SHA512_H
7
7
8
+ #include < cstdlib>
8
9
#include < stdint.h>
9
- #include < stdlib.h>
10
10
11
11
/* * A hasher class for SHA-512. */
12
12
class CSHA512
Original file line number Diff line number Diff line change 22
22
#include < util/translation.h>
23
23
24
24
#include < cstdio>
25
+ #include < cstdlib>
25
26
#include < deque>
26
27
#include < memory>
27
28
#include < optional>
28
- #include < stdlib.h>
29
29
#include < string>
30
30
31
31
#include < sys/types.h>
Original file line number Diff line number Diff line change 13
13
#include < util/system.h>
14
14
15
15
#include < cstdio>
16
+ #include < cstdlib>
16
17
#include < functional>
17
18
#include < memory>
18
19
#include < stdexcept>
19
- #include < stdlib.h>
20
20
#include < string.h>
21
21
#include < string>
22
22
#include < unistd.h>
Original file line number Diff line number Diff line change 10
10
#include < util/strencodings.h>
11
11
12
12
#include < cstdint>
13
+ #include < cstdlib>
13
14
#include < exception>
14
15
#include < iostream>
15
16
#include < stdexcept>
16
- #include < stdlib.h>
17
17
#include < string.h>
18
18
#include < system_error>
19
19
#include < unistd.h>
Original file line number Diff line number Diff line change 8
8
#include < indirectmap.h>
9
9
#include < prevector.h>
10
10
11
- #include < stdlib.h>
12
-
13
11
#include < cassert>
12
+ #include < cstdlib>
14
13
#include < map>
15
14
#include < memory>
16
15
#include < set>
Original file line number Diff line number Diff line change 6
6
#define BITCOIN_PREVECTOR_H
7
7
8
8
#include < assert.h>
9
- #include < stdlib.h >
9
+ #include < cstdlib >
10
10
#include < stdint.h>
11
11
#include < string.h>
12
12
Original file line number Diff line number Diff line change 21
21
#include < util/time.h> // for GetTimeMicros()
22
22
23
23
#include < cmath>
24
- #include < stdlib.h >
24
+ #include < cstdlib >
25
25
#include < thread>
26
26
27
27
#ifndef WIN32
Original file line number Diff line number Diff line change 13
13
#include < string>
14
14
#include < vector>
15
15
16
- #include < stdlib.h>
17
16
#include < assert.h>
17
+ #include < cstdlib>
18
18
19
19
#include < policy/policy.h>
20
20
#include < primitives/transaction.h>
Original file line number Diff line number Diff line change 6
6
#ifndef BITCOIN_SUPPORT_CLEANSE_H
7
7
#define BITCOIN_SUPPORT_CLEANSE_H
8
8
9
- #include <stdlib.h >
9
+ #include <cstdlib >
10
10
11
11
/** Secure overwrite a buffer (possibly containing secret data) with zero-bytes. The write
12
12
* operation will not be optimized out by the compiler. */
Original file line number Diff line number Diff line change 4
4
5
5
#include < boost/test/unit_test.hpp>
6
6
7
- #include < stdlib.h>
8
-
9
7
#include < chain.h>
10
8
#include < rpc/blockchain.h>
11
9
#include < test/util/setup_common.h>
12
10
#include < util/string.h>
13
11
12
+ #include < cstdlib>
13
+
14
14
/* Equality between doubles is imprecise. Comparison should be done
15
15
* with a small threshold of tolerance, rather than exact equality.
16
16
*/
Original file line number Diff line number Diff line change 4
4
5
5
#include < event2/event.h>
6
6
7
+ #include < cstdlib>
7
8
#include < map>
8
- #include < stdlib.h>
9
9
10
10
#include < support/events.h>
11
11
You can’t perform that action at this time.
0 commit comments