diff options
author | Victor Costan <costan@google.com> | 2020-04-29 19:59:39 +0000 |
---|---|---|
committer | Victor Costan <costan@google.com> | 2020-04-29 20:51:13 +0000 |
commit | 3f934e3705444a3df80b128ddefc4cf440441ffe (patch) | |
tree | 7f9003632579b80fb7ba535ecd2abbfc911502d0 /include/leveldb | |
parent | 23d67e7c1f4396919bd0c73c0eced13a0dac37f3 (diff) | |
download | leveldb-3f934e3705444a3df80b128ddefc4cf440441ffe.tar.gz |
Switch from C headers to C++ headers.
This CL makes the following substitutions.
* assert.h -> cassert
* math.h -> cmath
* stdarg.h -> cstdarg
* stddef.h -> cstddef
* stdint.h -> cstdint
* stdio.h -> cstdio
* stdlib.h -> cstdlib
* string.h -> cstring
PiperOrigin-RevId: 309080151
Diffstat (limited to 'include/leveldb')
-rw-r--r-- | include/leveldb/cache.h | 2 | ||||
-rw-r--r-- | include/leveldb/db.h | 4 | ||||
-rw-r--r-- | include/leveldb/env.h | 5 | ||||
-rw-r--r-- | include/leveldb/options.h | 2 | ||||
-rw-r--r-- | include/leveldb/slice.h | 7 | ||||
-rw-r--r-- | include/leveldb/table.h | 2 | ||||
-rw-r--r-- | include/leveldb/table_builder.h | 2 |
7 files changed, 11 insertions, 13 deletions
diff --git a/include/leveldb/cache.h b/include/leveldb/cache.h index 7d1a221..98c95ac 100644 --- a/include/leveldb/cache.h +++ b/include/leveldb/cache.h @@ -18,7 +18,7 @@ #ifndef STORAGE_LEVELDB_INCLUDE_CACHE_H_ #define STORAGE_LEVELDB_INCLUDE_CACHE_H_ -#include <stdint.h> +#include <cstdint> #include "leveldb/export.h" #include "leveldb/slice.h" diff --git a/include/leveldb/db.h b/include/leveldb/db.h index b73014a..2a995ec 100644 --- a/include/leveldb/db.h +++ b/include/leveldb/db.h @@ -5,8 +5,8 @@ #ifndef STORAGE_LEVELDB_INCLUDE_DB_H_ #define STORAGE_LEVELDB_INCLUDE_DB_H_ -#include <stdint.h> -#include <stdio.h> +#include <cstdint> +#include <cstdio> #include "leveldb/export.h" #include "leveldb/iterator.h" diff --git a/include/leveldb/env.h b/include/leveldb/env.h index 6501fa4..3ef0393 100644 --- a/include/leveldb/env.h +++ b/include/leveldb/env.h @@ -13,9 +13,8 @@ #ifndef STORAGE_LEVELDB_INCLUDE_ENV_H_ #define STORAGE_LEVELDB_INCLUDE_ENV_H_ -#include <stdarg.h> -#include <stdint.h> - +#include <cstdarg> +#include <cstdint> #include <string> #include <vector> diff --git a/include/leveldb/options.h b/include/leveldb/options.h index b748772..0f285bc 100644 --- a/include/leveldb/options.h +++ b/include/leveldb/options.h @@ -5,7 +5,7 @@ #ifndef STORAGE_LEVELDB_INCLUDE_OPTIONS_H_ #define STORAGE_LEVELDB_INCLUDE_OPTIONS_H_ -#include <stddef.h> +#include <cstddef> #include "leveldb/export.h" diff --git a/include/leveldb/slice.h b/include/leveldb/slice.h index 2df417d..37cb821 100644 --- a/include/leveldb/slice.h +++ b/include/leveldb/slice.h @@ -15,10 +15,9 @@ #ifndef STORAGE_LEVELDB_INCLUDE_SLICE_H_ #define STORAGE_LEVELDB_INCLUDE_SLICE_H_ -#include <assert.h> -#include <stddef.h> -#include <string.h> - +#include <cassert> +#include <cstddef> +#include <cstring> #include <string> #include "leveldb/export.h" diff --git a/include/leveldb/table.h b/include/leveldb/table.h index 25c6013..a30e903 100644 --- a/include/leveldb/table.h +++ b/include/leveldb/table.h @@ -5,7 +5,7 @@ #ifndef STORAGE_LEVELDB_INCLUDE_TABLE_H_ #define STORAGE_LEVELDB_INCLUDE_TABLE_H_ -#include <stdint.h> +#include <cstdint> #include "leveldb/export.h" #include "leveldb/iterator.h" diff --git a/include/leveldb/table_builder.h b/include/leveldb/table_builder.h index 7d8896b..85710c3 100644 --- a/include/leveldb/table_builder.h +++ b/include/leveldb/table_builder.h @@ -13,7 +13,7 @@ #ifndef STORAGE_LEVELDB_INCLUDE_TABLE_BUILDER_H_ #define STORAGE_LEVELDB_INCLUDE_TABLE_BUILDER_H_ -#include <stdint.h> +#include <cstdint> #include "leveldb/export.h" #include "leveldb/options.h" |