summaryrefslogtreecommitdiff
path: root/table
diff options
context:
space:
mode:
authorVictor Costan <costan@google.com>2020-04-29 19:59:39 +0000
committerVictor Costan <costan@google.com>2020-04-29 20:51:13 +0000
commit3f934e3705444a3df80b128ddefc4cf440441ffe (patch)
tree7f9003632579b80fb7ba535ecd2abbfc911502d0 /table
parent23d67e7c1f4396919bd0c73c0eced13a0dac37f3 (diff)
downloadleveldb-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 'table')
-rw-r--r--table/block.h4
-rw-r--r--table/block_builder.cc3
-rw-r--r--table/block_builder.h3
-rw-r--r--table/filter_block.h5
-rw-r--r--table/format.h3
-rw-r--r--table/table_builder.cc2
6 files changed, 8 insertions, 12 deletions
diff --git a/table/block.h b/table/block.h
index c8f1f7b..5224108 100644
--- a/table/block.h
+++ b/table/block.h
@@ -5,8 +5,8 @@
#ifndef STORAGE_LEVELDB_TABLE_BLOCK_H_
#define STORAGE_LEVELDB_TABLE_BLOCK_H_
-#include <stddef.h>
-#include <stdint.h>
+#include <cstddef>
+#include <cstdint>
#include "leveldb/iterator.h"
diff --git a/table/block_builder.cc b/table/block_builder.cc
index 919cff5..37d4008 100644
--- a/table/block_builder.cc
+++ b/table/block_builder.cc
@@ -28,9 +28,8 @@
#include "table/block_builder.h"
-#include <assert.h>
-
#include <algorithm>
+#include <cassert>
#include "leveldb/comparator.h"
#include "leveldb/options.h"
diff --git a/table/block_builder.h b/table/block_builder.h
index f91f5e6..7a481cd 100644
--- a/table/block_builder.h
+++ b/table/block_builder.h
@@ -5,8 +5,7 @@
#ifndef STORAGE_LEVELDB_TABLE_BLOCK_BUILDER_H_
#define STORAGE_LEVELDB_TABLE_BLOCK_BUILDER_H_
-#include <stdint.h>
-
+#include <cstdint>
#include <vector>
#include "leveldb/slice.h"
diff --git a/table/filter_block.h b/table/filter_block.h
index 73b5399..25ab75b 100644
--- a/table/filter_block.h
+++ b/table/filter_block.h
@@ -9,9 +9,8 @@
#ifndef STORAGE_LEVELDB_TABLE_FILTER_BLOCK_H_
#define STORAGE_LEVELDB_TABLE_FILTER_BLOCK_H_
-#include <stddef.h>
-#include <stdint.h>
-
+#include <cstddef>
+#include <cstdint>
#include <string>
#include <vector>
diff --git a/table/format.h b/table/format.h
index e49dfdc..f6ea304 100644
--- a/table/format.h
+++ b/table/format.h
@@ -5,8 +5,7 @@
#ifndef STORAGE_LEVELDB_TABLE_FORMAT_H_
#define STORAGE_LEVELDB_TABLE_FORMAT_H_
-#include <stdint.h>
-
+#include <cstdint>
#include <string>
#include "leveldb/slice.h"
diff --git a/table/table_builder.cc b/table/table_builder.cc
index 278febf..29a619d 100644
--- a/table/table_builder.cc
+++ b/table/table_builder.cc
@@ -4,7 +4,7 @@
#include "leveldb/table_builder.h"
-#include <assert.h>
+#include <cassert>
#include "leveldb/comparator.h"
#include "leveldb/env.h"