File tree 40 files changed +65
-76
lines changed
40 files changed +65
-76
lines changed Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file. See the AUTHORS file for names of contributors.
4
4
5
- #include < stdio.h>
6
- #include < stdlib.h>
7
5
#include < sys/types.h>
8
6
7
+ #include < cstdio>
8
+ #include < cstdlib>
9
+
9
10
#include " leveldb/cache.h"
10
11
#include " leveldb/db.h"
11
12
#include " leveldb/env.h"
Original file line number Diff line number Diff line change 3
3
// found in the LICENSE file. See the AUTHORS file for names of contributors.
4
4
5
5
#include < sqlite3.h>
6
- #include < stdio.h>
7
- #include < stdlib.h>
6
+
7
+ #include < cstdio>
8
+ #include < cstdlib>
8
9
9
10
#include " util/histogram.h"
10
11
#include " util/random.h"
Original file line number Diff line number Diff line change 3
3
// found in the LICENSE file. See the AUTHORS file for names of contributors.
4
4
5
5
#include < kcpolydb.h>
6
- #include < stdio.h>
7
- #include < stdlib.h>
6
+
7
+ #include < cstdio>
8
+ #include < cstdlib>
8
9
9
10
#include " util/histogram.h"
10
11
#include " util/random.h"
Original file line number Diff line number Diff line change 4
4
5
5
#include " db/db_impl.h"
6
6
7
- #include < stdint.h>
8
- #include < stdio.h>
9
-
10
7
#include < algorithm>
11
8
#include < atomic>
9
+ #include < cstdint>
10
+ #include < cstdio>
12
11
#include < set>
13
12
#include < string>
14
13
#include < vector>
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_DB_DB_ITER_H_
6
6
#define STORAGE_LEVELDB_DB_DB_ITER_H_
7
7
8
- #include < stdint.h >
8
+ #include < cstdint >
9
9
10
10
#include " db/dbformat.h"
11
11
#include " leveldb/db.h"
Original file line number Diff line number Diff line change 4
4
5
5
#include " db/dbformat.h"
6
6
7
- #include < stdio.h>
8
-
7
+ #include < cstdio>
9
8
#include < sstream>
10
9
11
10
#include " port/port.h"
Original file line number Diff line number Diff line change 4
4
5
5
#include " leveldb/dumpfile.h"
6
6
7
- #include < stdio.h >
7
+ #include < cstdio >
8
8
9
9
#include " db/dbformat.h"
10
10
#include " db/filename.h"
Original file line number Diff line number Diff line change 4
4
5
5
#include " db/filename.h"
6
6
7
- #include < ctype.h >
8
- #include < stdio.h >
7
+ #include < cassert >
8
+ #include < cstdio >
9
9
10
10
#include " db/dbformat.h"
11
11
#include " leveldb/env.h"
Original file line number Diff line number Diff line change 7
7
#ifndef STORAGE_LEVELDB_DB_FILENAME_H_
8
8
#define STORAGE_LEVELDB_DB_FILENAME_H_
9
9
10
- #include < stdint.h>
11
-
10
+ #include < cstdint>
12
11
#include < string>
13
12
14
13
#include " leveldb/slice.h"
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file. See the AUTHORS file for names of contributors.
4
4
5
- #include < stdio.h >
5
+ #include < cstdio >
6
6
7
7
#include " leveldb/dumpfile.h"
8
8
#include " leveldb/env.h"
Original file line number Diff line number Diff line change 4
4
5
5
#include " db/log_reader.h"
6
6
7
- #include < stdio.h >
7
+ #include < cstdio >
8
8
9
9
#include " leveldb/env.h"
10
10
#include " util/coding.h"
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_DB_LOG_READER_H_
6
6
#define STORAGE_LEVELDB_DB_LOG_READER_H_
7
7
8
- #include < stdint.h >
8
+ #include < cstdint >
9
9
10
10
#include " db/log_format.h"
11
11
#include " leveldb/slice.h"
Original file line number Diff line number Diff line change 4
4
5
5
#include " db/log_writer.h"
6
6
7
- #include < stdint.h >
7
+ #include < cstdint >
8
8
9
9
#include " leveldb/env.h"
10
10
#include " util/coding.h"
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_DB_LOG_WRITER_H_
6
6
#define STORAGE_LEVELDB_DB_LOG_WRITER_H_
7
7
8
- #include < stdint.h >
8
+ #include < cstdint >
9
9
10
10
#include " db/log_format.h"
11
11
#include " leveldb/slice.h"
Original file line number Diff line number Diff line change 7
7
#ifndef STORAGE_LEVELDB_DB_TABLE_CACHE_H_
8
8
#define STORAGE_LEVELDB_DB_TABLE_CACHE_H_
9
9
10
- #include < stdint.h>
11
-
10
+ #include < cstdint>
12
11
#include < string>
13
12
14
13
#include " db/dbformat.h"
Original file line number Diff line number Diff line change 4
4
5
5
#include " db/version_set.h"
6
6
7
- #include < stdio.h>
8
-
9
7
#include < algorithm>
8
+ #include < cstdio>
10
9
11
10
#include " db/filename.h"
12
11
#include " db/log_reader.h"
Original file line number Diff line number Diff line change 4
4
5
5
#include " helpers/memenv/memenv.h"
6
6
7
- #include < string.h>
8
-
7
+ #include < cstring>
9
8
#include < limits>
10
9
#include < map>
11
10
#include < string>
Original file line number Diff line number Diff line change 18
18
#ifndef STORAGE_LEVELDB_INCLUDE_CACHE_H_
19
19
#define STORAGE_LEVELDB_INCLUDE_CACHE_H_
20
20
21
- #include < stdint.h >
21
+ #include < cstdint >
22
22
23
23
#include " leveldb/export.h"
24
24
#include " leveldb/slice.h"
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_INCLUDE_DB_H_
6
6
#define STORAGE_LEVELDB_INCLUDE_DB_H_
7
7
8
- #include < stdint.h >
9
- #include < stdio.h >
8
+ #include < cstdint >
9
+ #include < cstdio >
10
10
11
11
#include " leveldb/export.h"
12
12
#include " leveldb/iterator.h"
Original file line number Diff line number Diff line change 13
13
#ifndef STORAGE_LEVELDB_INCLUDE_ENV_H_
14
14
#define STORAGE_LEVELDB_INCLUDE_ENV_H_
15
15
16
- #include < stdarg.h>
17
- #include < stdint.h>
18
-
16
+ #include < cstdarg>
17
+ #include < cstdint>
19
18
#include < string>
20
19
#include < vector>
21
20
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_INCLUDE_OPTIONS_H_
6
6
#define STORAGE_LEVELDB_INCLUDE_OPTIONS_H_
7
7
8
- #include < stddef.h >
8
+ #include < cstddef >
9
9
10
10
#include " leveldb/export.h"
11
11
Original file line number Diff line number Diff line change 15
15
#ifndef STORAGE_LEVELDB_INCLUDE_SLICE_H_
16
16
#define STORAGE_LEVELDB_INCLUDE_SLICE_H_
17
17
18
- #include < assert.h>
19
- #include < stddef.h>
20
- #include < string.h>
21
-
18
+ #include < cassert>
19
+ #include < cstddef>
20
+ #include < cstring>
22
21
#include < string>
23
22
24
23
#include " leveldb/export.h"
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_INCLUDE_TABLE_H_
6
6
#define STORAGE_LEVELDB_INCLUDE_TABLE_H_
7
7
8
- #include < stdint.h >
8
+ #include < cstdint >
9
9
10
10
#include " leveldb/export.h"
11
11
#include " leveldb/iterator.h"
Original file line number Diff line number Diff line change 13
13
#ifndef STORAGE_LEVELDB_INCLUDE_TABLE_BUILDER_H_
14
14
#define STORAGE_LEVELDB_INCLUDE_TABLE_BUILDER_H_
15
15
16
- #include < stdint.h >
16
+ #include < cstdint >
17
17
18
18
#include " leveldb/export.h"
19
19
#include " leveldb/options.h"
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_TABLE_BLOCK_H_
6
6
#define STORAGE_LEVELDB_TABLE_BLOCK_H_
7
7
8
- #include < stddef.h >
9
- #include < stdint.h >
8
+ #include < cstddef >
9
+ #include < cstdint >
10
10
11
11
#include " leveldb/iterator.h"
12
12
Original file line number Diff line number Diff line change 28
28
29
29
#include " table/block_builder.h"
30
30
31
- #include < assert.h>
32
-
33
31
#include < algorithm>
32
+ #include < cassert>
34
33
35
34
#include " leveldb/comparator.h"
36
35
#include " leveldb/options.h"
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_TABLE_BLOCK_BUILDER_H_
6
6
#define STORAGE_LEVELDB_TABLE_BLOCK_BUILDER_H_
7
7
8
- #include < stdint.h>
9
-
8
+ #include < cstdint>
10
9
#include < vector>
11
10
12
11
#include " leveldb/slice.h"
Original file line number Diff line number Diff line change 9
9
#ifndef STORAGE_LEVELDB_TABLE_FILTER_BLOCK_H_
10
10
#define STORAGE_LEVELDB_TABLE_FILTER_BLOCK_H_
11
11
12
- #include < stddef.h>
13
- #include < stdint.h>
14
-
12
+ #include < cstddef>
13
+ #include < cstdint>
15
14
#include < string>
16
15
#include < vector>
17
16
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_TABLE_FORMAT_H_
6
6
#define STORAGE_LEVELDB_TABLE_FORMAT_H_
7
7
8
- #include < stdint.h>
9
-
8
+ #include < cstdint>
10
9
#include < string>
11
10
12
11
#include " leveldb/slice.h"
Original file line number Diff line number Diff line change 4
4
5
5
#include " leveldb/table_builder.h"
6
6
7
- #include < assert.h >
7
+ #include < cassert >
8
8
9
9
#include " leveldb/comparator.h"
10
10
#include " leveldb/env.h"
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file. See the AUTHORS file for names of contributors.
4
4
5
- #include < assert.h>
6
- #include < stdio.h>
7
- #include < stdlib.h>
8
-
9
5
#include " leveldb/cache.h"
6
+
7
+ #include < cassert>
8
+ #include < cstdio>
9
+ #include < cstdlib>
10
+
10
11
#include " port/port.h"
11
12
#include " port/thread_annotations.h"
12
13
#include " util/hash.h"
Original file line number Diff line number Diff line change 6
6
7
7
#include " util/crc32c.h"
8
8
9
- #include < stddef.h >
10
- #include < stdint.h >
9
+ #include < cstddef >
10
+ #include < cstdint >
11
11
12
12
#include " port/port.h"
13
13
#include " util/coding.h"
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_UTIL_CRC32C_H_
6
6
#define STORAGE_LEVELDB_UTIL_CRC32C_H_
7
7
8
- #include < stddef.h >
9
- #include < stdint.h >
8
+ #include < cstddef >
9
+ #include < cstdint >
10
10
11
11
namespace leveldb {
12
12
namespace crc32c {
Original file line number Diff line number Diff line change 4
4
5
5
#include " util/hash.h"
6
6
7
- #include < string.h >
7
+ #include < cstring >
8
8
9
9
#include " util/coding.h"
10
10
Original file line number Diff line number Diff line change 7
7
#ifndef STORAGE_LEVELDB_UTIL_HASH_H_
8
8
#define STORAGE_LEVELDB_UTIL_HASH_H_
9
9
10
- #include < stddef.h >
11
- #include < stdint.h >
10
+ #include < cstddef >
11
+ #include < cstdint >
12
12
13
13
namespace leveldb {
14
14
Original file line number Diff line number Diff line change 4
4
5
5
#include " util/histogram.h"
6
6
7
- #include < math.h >
8
- #include < stdio.h >
7
+ #include < cmath >
8
+ #include < cstdio >
9
9
10
10
#include " port/port.h"
11
11
Original file line number Diff line number Diff line change 4
4
5
5
#include " util/logging.h"
6
6
7
- #include < errno.h>
8
- #include < stdarg.h>
9
- #include < stdio.h>
10
- #include < stdlib.h>
11
-
7
+ #include < cstdarg>
8
+ #include < cstdio>
9
+ #include < cstdlib>
12
10
#include < limits>
13
11
14
12
#include " leveldb/env.h"
Original file line number Diff line number Diff line change 8
8
#ifndef STORAGE_LEVELDB_UTIL_LOGGING_H_
9
9
#define STORAGE_LEVELDB_UTIL_LOGGING_H_
10
10
11
- #include < stdint.h>
12
- #include < stdio.h>
13
-
11
+ #include < cstdint>
12
+ #include < cstdio>
14
13
#include < string>
15
14
16
15
#include " port/port.h"
Original file line number Diff line number Diff line change 5
5
#ifndef STORAGE_LEVELDB_UTIL_RANDOM_H_
6
6
#define STORAGE_LEVELDB_UTIL_RANDOM_H_
7
7
8
- #include < stdint.h >
8
+ #include < cstdint >
9
9
10
10
namespace leveldb {
11
11
Original file line number Diff line number Diff line change 4
4
5
5
#include " leveldb/status.h"
6
6
7
- #include < stdio.h >
7
+ #include < cstdio >
8
8
9
9
#include " port/port.h"
10
10
You can’t perform that action at this time.
0 commit comments