浏览代码

Move include files into a leveldb subdir.

git-svn-id: https://leveldb.googlecode.com/svn/trunk@18 62dab493-f737-651d-591e-8d6aee1b9529
main
jorlow@chromium.org 13 年前
父节点
当前提交
4671a695fc
共有 56 个文件被更改,包括 123 次插入117 次删除
  1. +1
    -1
      Makefile
  2. +3
    -3
      db/builder.cc
  3. +1
    -1
      db/builder.h
  4. +4
    -4
      db/corruption_test.cc
  5. +4
    -4
      db/db_bench.cc
  6. +5
    -5
      db/db_impl.cc
  7. +2
    -2
      db/db_impl.h
  8. +2
    -2
      db/db_iter.cc
  9. +1
    -1
      db/db_iter.h
  10. +3
    -3
      db/db_test.cc
  11. +4
    -4
      db/dbformat.h
  12. +1
    -1
      db/filename.cc
  13. +2
    -2
      db/filename.h
  14. +1
    -1
      db/log_reader.cc
  15. +2
    -2
      db/log_reader.h
  16. +1
    -1
      db/log_test.cc
  17. +1
    -1
      db/log_writer.cc
  18. +2
    -2
      db/log_writer.h
  19. +3
    -3
      db/memtable.cc
  20. +1
    -1
      db/memtable.h
  21. +3
    -3
      db/repair.cc
  22. +1
    -1
      db/skiplist_test.cc
  23. +1
    -1
      db/snapshot.h
  24. +2
    -2
      db/table_cache.cc
  25. +2
    -2
      db/table_cache.h
  26. +2
    -2
      db/version_set.cc
  27. +2
    -2
      db/write_batch.cc
  28. +1
    -1
      db/write_batch_internal.h
  29. +2
    -2
      db/write_batch_test.cc
  30. +17
    -11
      leveldb.gyp
  31. +1
    -1
      table/block.cc
  32. +1
    -1
      table/block.h
  33. +2
    -2
      table/block_builder.cc
  34. +1
    -1
      table/block_builder.h
  35. +1
    -1
      table/format.cc
  36. +3
    -3
      table/format.h
  37. +1
    -1
      table/iterator.cc
  38. +2
    -2
      table/merger.cc
  39. +3
    -3
      table/table.cc
  40. +3
    -3
      table/table_builder.cc
  41. +5
    -5
      table/table_test.cc
  42. +1
    -1
      table/two_level_iterator.cc
  43. +1
    -1
      table/two_level_iterator.h
  44. +1
    -1
      util/cache.cc
  45. +1
    -1
      util/cache_test.cc
  46. +1
    -1
      util/coding.h
  47. +2
    -2
      util/comparator.cc
  48. +1
    -1
      util/env.cc
  49. +2
    -2
      util/env_chromium.cc
  50. +2
    -2
      util/env_posix.cc
  51. +1
    -1
      util/env_test.cc
  52. +2
    -2
      util/logging.cc
  53. +3
    -3
      util/options.cc
  54. +1
    -1
      util/status.cc
  55. +2
    -2
      util/testharness.h
  56. +2
    -2
      util/testutil.h

+ 1
- 1
Makefile 查看文件

@ -8,7 +8,7 @@ CC = g++
#OPT = -O2 -DNDEBUG
OPT = -g2
CFLAGS = -c -DLEVELDB_PLATFORM_POSIX -I. -std=c++0x $(OPT)
CFLAGS = -c -DLEVELDB_PLATFORM_POSIX -I. -I./include -std=c++0x $(OPT)
LDFLAGS=-lpthread

+ 3
- 3
db/builder.cc 查看文件

@ -8,9 +8,9 @@
#include "db/dbformat.h"
#include "db/table_cache.h"
#include "db/version_edit.h"
#include "include/db.h"
#include "include/env.h"
#include "include/iterator.h"
#include "leveldb/db.h"
#include "leveldb/env.h"
#include "leveldb/iterator.h"
namespace leveldb {

+ 1
- 1
db/builder.h 查看文件

@ -5,7 +5,7 @@
#ifndef STORAGE_LEVELDB_DB_BUILDER_H_
#define STORAGE_LEVELDB_DB_BUILDER_H_
#include "include/status.h"
#include "leveldb/status.h"
namespace leveldb {

+ 4
- 4
db/corruption_test.cc 查看文件

@ -2,15 +2,15 @@
// 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 "include/db.h"
#include "leveldb/db.h"
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "include/env.h"
#include "include/table.h"
#include "include/write_batch.h"
#include "leveldb/env.h"
#include "leveldb/table.h"
#include "leveldb/write_batch.h"
#include "db/db_impl.h"
#include "db/filename.h"
#include "db/log_format.h"

+ 4
- 4
db/db_bench.cc 查看文件

@ -7,10 +7,10 @@
#include <stdlib.h>
#include "db/db_impl.h"
#include "db/version_set.h"
#include "include/cache.h"
#include "include/db.h"
#include "include/env.h"
#include "include/write_batch.h"
#include "leveldb/cache.h"
#include "leveldb/db.h"
#include "leveldb/env.h"
#include "leveldb/write_batch.h"
#include "port/port.h"
#include "util/crc32c.h"
#include "util/histogram.h"

+ 5
- 5
db/db_impl.cc 查看文件

@ -20,11 +20,11 @@
#include "db/table_cache.h"
#include "db/version_set.h"
#include "db/write_batch_internal.h"
#include "include/db.h"
#include "include/env.h"
#include "include/status.h"
#include "include/table.h"
#include "include/table_builder.h"
#include "leveldb/db.h"
#include "leveldb/env.h"
#include "leveldb/status.h"
#include "leveldb/table.h"
#include "leveldb/table_builder.h"
#include "port/port.h"
#include "table/block.h"
#include "table/merger.h"

+ 2
- 2
db/db_impl.h 查看文件

@ -9,8 +9,8 @@
#include "db/dbformat.h"
#include "db/log_writer.h"
#include "db/snapshot.h"
#include "include/db.h"
#include "include/env.h"
#include "leveldb/db.h"
#include "leveldb/env.h"
#include "port/port.h"
namespace leveldb {

+ 2
- 2
db/db_iter.cc 查看文件

@ -6,8 +6,8 @@
#include "db/filename.h"
#include "db/dbformat.h"
#include "include/env.h"
#include "include/iterator.h"
#include "leveldb/env.h"
#include "leveldb/iterator.h"
#include "port/port.h"
#include "util/logging.h"
#include "util/mutexlock.h"

+ 1
- 1
db/db_iter.h 查看文件

@ -6,7 +6,7 @@
#define STORAGE_LEVELDB_DB_DB_ITER_H_
#include <stdint.h>
#include "include/db.h"
#include "leveldb/db.h"
#include "db/dbformat.h"
namespace leveldb {

+ 3
- 3
db/db_test.cc 查看文件

@ -2,14 +2,14 @@
// 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 "include/db.h"
#include "leveldb/db.h"
#include "db/db_impl.h"
#include "db/filename.h"
#include "db/version_set.h"
#include "db/write_batch_internal.h"
#include "include/env.h"
#include "include/table.h"
#include "leveldb/env.h"
#include "leveldb/table.h"
#include "util/logging.h"
#include "util/testharness.h"
#include "util/testutil.h"

+ 4
- 4
db/dbformat.h 查看文件

@ -6,10 +6,10 @@
#define STORAGE_LEVELDB_DB_FORMAT_H_
#include <stdio.h>
#include "include/comparator.h"
#include "include/db.h"
#include "include/slice.h"
#include "include/table_builder.h"
#include "leveldb/comparator.h"
#include "leveldb/db.h"
#include "leveldb/slice.h"
#include "leveldb/table_builder.h"
#include "util/coding.h"
#include "util/logging.h"

+ 1
- 1
db/filename.cc 查看文件

@ -6,7 +6,7 @@
#include <stdio.h>
#include "db/filename.h"
#include "db/dbformat.h"
#include "include/env.h"
#include "leveldb/env.h"
#include "util/logging.h"
namespace leveldb {

+ 2
- 2
db/filename.h 查看文件

@ -9,8 +9,8 @@
#include <stdint.h>
#include <string>
#include "include/slice.h"
#include "include/status.h"
#include "leveldb/slice.h"
#include "leveldb/status.h"
#include "port/port.h"
namespace leveldb {

+ 1
- 1
db/log_reader.cc 查看文件

@ -5,7 +5,7 @@
#include "db/log_reader.h"
#include <stdint.h>
#include "include/env.h"
#include "leveldb/env.h"
#include "util/coding.h"
#include "util/crc32c.h"

+ 2
- 2
db/log_reader.h 查看文件

@ -6,8 +6,8 @@
#define STORAGE_LEVELDB_DB_LOG_READER_H_
#include "db/log_format.h"
#include "include/slice.h"
#include "include/status.h"
#include "leveldb/slice.h"
#include "leveldb/status.h"
namespace leveldb {

+ 1
- 1
db/log_test.cc 查看文件

@ -4,7 +4,7 @@
#include "db/log_reader.h"
#include "db/log_writer.h"
#include "include/env.h"
#include "leveldb/env.h"
#include "util/coding.h"
#include "util/crc32c.h"
#include "util/random.h"

+ 1
- 1
db/log_writer.cc 查看文件

@ -5,7 +5,7 @@
#include "db/log_writer.h"
#include <stdint.h>
#include "include/env.h"
#include "leveldb/env.h"
#include "util/coding.h"
#include "util/crc32c.h"

+ 2
- 2
db/log_writer.h 查看文件

@ -7,8 +7,8 @@
#include <stdint.h>
#include "db/log_format.h"
#include "include/slice.h"
#include "include/status.h"
#include "leveldb/slice.h"
#include "leveldb/status.h"
namespace leveldb {

+ 3
- 3
db/memtable.cc 查看文件

@ -4,9 +4,9 @@
#include "db/memtable.h"
#include "db/dbformat.h"
#include "include/comparator.h"
#include "include/env.h"
#include "include/iterator.h"
#include "leveldb/comparator.h"
#include "leveldb/env.h"
#include "leveldb/iterator.h"
#include "util/coding.h"
namespace leveldb {

+ 1
- 1
db/memtable.h 查看文件

@ -6,7 +6,7 @@
#define STORAGE_LEVELDB_DB_MEMTABLE_H_
#include <string>
#include "include/db.h"
#include "leveldb/db.h"
#include "db/dbformat.h"
#include "db/skiplist.h"
#include "util/arena.h"

+ 3
- 3
db/repair.cc 查看文件

@ -36,9 +36,9 @@
#include "db/table_cache.h"
#include "db/version_edit.h"
#include "db/write_batch_internal.h"
#include "include/comparator.h"
#include "include/db.h"
#include "include/env.h"
#include "leveldb/comparator.h"
#include "leveldb/db.h"
#include "leveldb/env.h"
namespace leveldb {

+ 1
- 1
db/skiplist_test.cc 查看文件

@ -4,7 +4,7 @@
#include "db/skiplist.h"
#include <set>
#include "include/env.h"
#include "leveldb/env.h"
#include "util/arena.h"
#include "util/hash.h"
#include "util/random.h"

+ 1
- 1
db/snapshot.h 查看文件

@ -5,7 +5,7 @@
#ifndef STORAGE_LEVELDB_DB_SNAPSHOT_H_
#define STORAGE_LEVELDB_DB_SNAPSHOT_H_
#include "include/db.h"
#include "leveldb/db.h"
namespace leveldb {

+ 2
- 2
db/table_cache.cc 查看文件

@ -5,8 +5,8 @@
#include "db/table_cache.h"
#include "db/filename.h"
#include "include/env.h"
#include "include/table.h"
#include "leveldb/env.h"
#include "leveldb/table.h"
#include "util/coding.h"
namespace leveldb {

+ 2
- 2
db/table_cache.h 查看文件

@ -10,8 +10,8 @@
#include <string>
#include <stdint.h>
#include "db/dbformat.h"
#include "include/cache.h"
#include "include/table.h"
#include "leveldb/cache.h"
#include "leveldb/table.h"
#include "port/port.h"
namespace leveldb {

+ 2
- 2
db/version_set.cc 查看文件

@ -11,8 +11,8 @@
#include "db/log_writer.h"
#include "db/memtable.h"
#include "db/table_cache.h"
#include "include/env.h"
#include "include/table_builder.h"
#include "leveldb/env.h"
#include "leveldb/table_builder.h"
#include "table/merger.h"
#include "table/two_level_iterator.h"
#include "util/coding.h"

+ 2
- 2
db/write_batch.cc 查看文件

@ -14,9 +14,9 @@
// len: varint32
// data: uint8[len]
#include "include/write_batch.h"
#include "leveldb/write_batch.h"
#include "include/db.h"
#include "leveldb/db.h"
#include "db/dbformat.h"
#include "db/memtable.h"
#include "db/write_batch_internal.h"

+ 1
- 1
db/write_batch_internal.h 查看文件

@ -5,7 +5,7 @@
#ifndef STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_
#define STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_
#include "include/write_batch.h"
#include "leveldb/write_batch.h"
namespace leveldb {

+ 2
- 2
db/write_batch_test.cc 查看文件

@ -2,11 +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 "include/db.h"
#include "leveldb/db.h"
#include "db/memtable.h"
#include "db/write_batch_internal.h"
#include "include/env.h"
#include "leveldb/env.h"
#include "util/logging.h"
#include "util/testharness.h"

+ 17
- 11
leveldb.gyp 查看文件

@ -12,6 +12,7 @@
],
'include_dirs': [
'.',
'include/',
],
'conditions': [
['OS == "win"', {
@ -42,6 +43,11 @@
],
}],
],
'direct_dependent_settings': {
'include_dirs': [
'include/',
],
},
'sources': [
# Include and then exclude so that all files show up in IDEs, even if
# they don't build.
@ -73,17 +79,17 @@
'db/version_set.h',
'db/write_batch.cc',
'db/write_batch_internal.h',
'include/cache.h',
'include/comparator.h',
'include/db.h',
'include/env.h',
'include/iterator.h',
'include/options.h',
'include/slice.h',
'include/status.h',
'include/table.h',
'include/table_builder.h',
'include/write_batch.h',
'include/leveldb/cache.h',
'include/leveldb/comparator.h',
'include/leveldb/db.h',
'include/leveldb/env.h',
'include/leveldb/iterator.h',
'include/leveldb/options.h',
'include/leveldb/slice.h',
'include/leveldb/status.h',
'include/leveldb/table.h',
'include/leveldb/table_builder.h',
'include/leveldb/write_batch.h',
'port/port.h',
'port/port_chromium.cc',
'port/port_chromium.h',

+ 1
- 1
table/block.cc 查看文件

@ -8,7 +8,7 @@
#include <vector>
#include <algorithm>
#include "include/comparator.h"
#include "leveldb/comparator.h"
#include "util/coding.h"
#include "util/logging.h"

+ 1
- 1
table/block.h 查看文件

@ -7,7 +7,7 @@
#include <stddef.h>
#include <stdint.h>
#include "include/iterator.h"
#include "leveldb/iterator.h"
namespace leveldb {

+ 2
- 2
table/block_builder.cc 查看文件

@ -30,8 +30,8 @@
#include <algorithm>
#include <assert.h>
#include "include/comparator.h"
#include "include/table_builder.h"
#include "leveldb/comparator.h"
#include "leveldb/table_builder.h"
#include "util/coding.h"
namespace leveldb {

+ 1
- 1
table/block_builder.h 查看文件

@ -8,7 +8,7 @@
#include <vector>
#include <stdint.h>
#include "include/slice.h"
#include "leveldb/slice.h"
namespace leveldb {

+ 1
- 1
table/format.cc 查看文件

@ -4,7 +4,7 @@
#include "table/format.h"
#include "include/env.h"
#include "leveldb/env.h"
#include "port/port.h"
#include "table/block.h"
#include "util/coding.h"

+ 3
- 3
table/format.h 查看文件

@ -7,9 +7,9 @@
#include <string>
#include <stdint.h>
#include "include/slice.h"
#include "include/status.h"
#include "include/table_builder.h"
#include "leveldb/slice.h"
#include "leveldb/status.h"
#include "leveldb/table_builder.h"
namespace leveldb {

+ 1
- 1
table/iterator.cc 查看文件

@ -2,7 +2,7 @@
// 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 "include/iterator.h"
#include "leveldb/iterator.h"
#include "util/logging.h"
namespace leveldb {

+ 2
- 2
table/merger.cc 查看文件

@ -4,8 +4,8 @@
#include "table/merger.h"
#include "include/comparator.h"
#include "include/iterator.h"
#include "leveldb/comparator.h"
#include "leveldb/iterator.h"
#include "table/iterator_wrapper.h"
namespace leveldb {

+ 3
- 3
table/table.cc 查看文件

@ -2,10 +2,10 @@
// 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 "include/table.h"
#include "leveldb/table.h"
#include "include/cache.h"
#include "include/env.h"
#include "leveldb/cache.h"
#include "leveldb/env.h"
#include "table/block.h"
#include "table/format.h"
#include "table/two_level_iterator.h"

+ 3
- 3
table/table_builder.cc 查看文件

@ -2,12 +2,12 @@
// 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 "include/table_builder.h"
#include "leveldb/table_builder.h"
#include <assert.h>
#include <stdio.h>
#include "include/comparator.h"
#include "include/env.h"
#include "leveldb/comparator.h"
#include "leveldb/env.h"
#include "table/block_builder.h"
#include "table/format.h"
#include "util/coding.h"

+ 5
- 5
table/table_test.cc 查看文件

@ -2,16 +2,16 @@
// 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 "include/table.h"
#include "leveldb/table.h"
#include <map>
#include "db/dbformat.h"
#include "db/memtable.h"
#include "db/write_batch_internal.h"
#include "include/db.h"
#include "include/env.h"
#include "include/iterator.h"
#include "include/table_builder.h"
#include "leveldb/db.h"
#include "leveldb/env.h"
#include "leveldb/iterator.h"
#include "leveldb/table_builder.h"
#include "table/block.h"
#include "table/block_builder.h"
#include "table/format.h"

+ 1
- 1
table/two_level_iterator.cc 查看文件

@ -4,7 +4,7 @@
#include "table/two_level_iterator.h"
#include "include/table.h"
#include "leveldb/table.h"
#include "table/block.h"
#include "table/format.h"
#include "table/iterator_wrapper.h"

+ 1
- 1
table/two_level_iterator.h 查看文件

@ -5,7 +5,7 @@
#ifndef STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_
#define STORAGE_LEVELDB_TABLE_TWO_LEVEL_ITERATOR_H_
#include "include/iterator.h"
#include "leveldb/iterator.h"
namespace leveldb {

+ 1
- 1
util/cache.cc 查看文件

@ -12,7 +12,7 @@
#include <assert.h>
#include "include/cache.h"
#include "leveldb/cache.h"
#include "port/port.h"
#include "util/hash.h"
#include "util/mutexlock.h"

+ 1
- 1
util/cache_test.cc 查看文件

@ -2,7 +2,7 @@
// 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 "include/cache.h"
#include "leveldb/cache.h"
#include <vector>
#include "util/coding.h"

+ 1
- 1
util/coding.h 查看文件

@ -13,7 +13,7 @@
#include <stdint.h>
#include <string.h>
#include <string>
#include "include/slice.h"
#include "leveldb/slice.h"
#include "port/port.h"
namespace leveldb {

+ 2
- 2
util/comparator.cc 查看文件

@ -3,8 +3,8 @@
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include <stdint.h>
#include "include/comparator.h"
#include "include/slice.h"
#include "leveldb/comparator.h"
#include "leveldb/slice.h"
#include "util/logging.h"
namespace leveldb {

+ 1
- 1
util/env.cc 查看文件

@ -2,7 +2,7 @@
// 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 "include/env.h"
#include "leveldb/env.h"
namespace leveldb {

+ 2
- 2
util/env_chromium.cc 查看文件

@ -19,8 +19,8 @@
#include "base/threading/platform_thread.h"
#include "base/threading/thread.h"
#include "base/utf_string_conversions.h"
#include "include/env.h"
#include "include/slice.h"
#include "leveldb/env.h"
#include "leveldb/slice.h"
#include "port/port.h"
#include "util/logging.h"

+ 2
- 2
util/env_posix.cc 查看文件

@ -19,8 +19,8 @@
#if defined(LEVELDB_PLATFORM_ANDROID)
#include <sys/stat.h>
#endif
#include "include/env.h"
#include "include/slice.h"
#include "leveldb/env.h"
#include "leveldb/slice.h"
#include "port/port.h"
#include "util/logging.h"

+ 1
- 1
util/env_test.cc 查看文件

@ -2,7 +2,7 @@
// 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 "include/env.h"
#include "leveldb/env.h"
#include "port/port.h"
#include "util/testharness.h"

+ 2
- 2
util/logging.cc 查看文件

@ -8,8 +8,8 @@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include "include/env.h"
#include "include/slice.h"
#include "leveldb/env.h"
#include "leveldb/slice.h"
namespace leveldb {

+ 3
- 3
util/options.cc 查看文件

@ -2,10 +2,10 @@
// 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 "include/options.h"
#include "leveldb/options.h"
#include "include/comparator.h"
#include "include/env.h"
#include "leveldb/comparator.h"
#include "leveldb/env.h"
namespace leveldb {

+ 1
- 1
util/status.cc 查看文件

@ -4,7 +4,7 @@
#include <stdio.h>
#include "port/port.h"
#include "include/status.h"
#include "leveldb/status.h"
namespace leveldb {

+ 2
- 2
util/testharness.h 查看文件

@ -8,8 +8,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include "include/env.h"
#include "include/slice.h"
#include "leveldb/env.h"
#include "leveldb/slice.h"
#include "util/random.h"
namespace leveldb {

+ 2
- 2
util/testutil.h 查看文件

@ -5,8 +5,8 @@
#ifndef STORAGE_LEVELDB_UTIL_TESTUTIL_H_
#define STORAGE_LEVELDB_UTIL_TESTUTIL_H_
#include "include/env.h"
#include "include/slice.h"
#include "leveldb/env.h"
#include "leveldb/slice.h"
#include "util/random.h"
namespace leveldb {

正在加载...
取消
保存