summaryrefslogtreecommitdiff
path: root/benchmarks
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 /benchmarks
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 'benchmarks')
-rw-r--r--benchmarks/db_bench.cc5
-rw-r--r--benchmarks/db_bench_sqlite3.cc5
-rw-r--r--benchmarks/db_bench_tree_db.cc5
3 files changed, 9 insertions, 6 deletions
diff --git a/benchmarks/db_bench.cc b/benchmarks/db_bench.cc
index 82ed892..3dcd751 100644
--- a/benchmarks/db_bench.cc
+++ b/benchmarks/db_bench.cc
@@ -2,10 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
-#include <stdio.h>
-#include <stdlib.h>
#include <sys/types.h>
+#include <cstdio>
+#include <cstdlib>
+
#include "leveldb/cache.h"
#include "leveldb/db.h"
#include "leveldb/env.h"
diff --git a/benchmarks/db_bench_sqlite3.cc b/benchmarks/db_bench_sqlite3.cc
index 9c32a2d..2563481 100644
--- a/benchmarks/db_bench_sqlite3.cc
+++ b/benchmarks/db_bench_sqlite3.cc
@@ -3,8 +3,9 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <sqlite3.h>
-#include <stdio.h>
-#include <stdlib.h>
+
+#include <cstdio>
+#include <cstdlib>
#include "util/histogram.h"
#include "util/random.h"
diff --git a/benchmarks/db_bench_tree_db.cc b/benchmarks/db_bench_tree_db.cc
index 43f0f65..60ab3b0 100644
--- a/benchmarks/db_bench_tree_db.cc
+++ b/benchmarks/db_bench_tree_db.cc
@@ -3,8 +3,9 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <kcpolydb.h>
-#include <stdio.h>
-#include <stdlib.h>
+
+#include <cstdio>
+#include <cstdlib>
#include "util/histogram.h"
#include "util/random.h"