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 14 years ago
parent 4d66fd5af3
commit 4671a695fc
  1. 2
      Makefile
  2. 6
      db/builder.cc
  3. 2
      db/builder.h
  4. 8
      db/corruption_test.cc
  5. 8
      db/db_bench.cc
  6. 10
      db/db_impl.cc
  7. 4
      db/db_impl.h
  8. 4
      db/db_iter.cc
  9. 2
      db/db_iter.h
  10. 6
      db/db_test.cc
  11. 8
      db/dbformat.h
  12. 2
      db/filename.cc
  13. 4
      db/filename.h
  14. 2
      db/log_reader.cc
  15. 4
      db/log_reader.h
  16. 2
      db/log_test.cc
  17. 2
      db/log_writer.cc
  18. 4
      db/log_writer.h
  19. 6
      db/memtable.cc
  20. 2
      db/memtable.h
  21. 6
      db/repair.cc
  22. 2
      db/skiplist_test.cc
  23. 2
      db/snapshot.h
  24. 4
      db/table_cache.cc
  25. 4
      db/table_cache.h
  26. 4
      db/version_set.cc
  27. 4
      db/write_batch.cc
  28. 2
      db/write_batch_internal.h
  29. 4
      db/write_batch_test.cc
  30. 28
      leveldb.gyp
  31. 2
      table/block.cc
  32. 2
      table/block.h
  33. 4
      table/block_builder.cc
  34. 2
      table/block_builder.h
  35. 2
      table/format.cc
  36. 6
      table/format.h
  37. 2
      table/iterator.cc
  38. 4
      table/merger.cc
  39. 6
      table/table.cc
  40. 6
      table/table_builder.cc
  41. 10
      table/table_test.cc
  42. 2
      table/two_level_iterator.cc
  43. 2
      table/two_level_iterator.h
  44. 2
      util/cache.cc
  45. 2
      util/cache_test.cc
  46. 2
      util/coding.h
  47. 4
      util/comparator.cc
  48. 2
      util/env.cc
  49. 4
      util/env_chromium.cc
  50. 4
      util/env_posix.cc
  51. 2
      util/env_test.cc
  52. 4
      util/logging.cc
  53. 6
      util/options.cc
  54. 2
      util/status.cc
  55. 4
      util/testharness.h
  56. 4
      util/testutil.h

@ -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

@ -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 {

@ -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 {

@ -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"

@ -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"

@ -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"

@ -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 {

@ -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"

@ -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 {

@ -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"

@ -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"

@ -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 {

@ -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 {

@ -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"

@ -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 {

@ -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"

@ -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"

@ -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 {

@ -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 {

@ -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"

@ -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 {

@ -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"

@ -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 {

@ -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 {

@ -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 {

@ -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"

@ -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"

@ -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,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"

@ -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',

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

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

@ -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 {

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

@ -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"

@ -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 {

@ -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 {

@ -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 {

@ -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"

@ -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"

@ -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"

@ -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"

@ -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 {

@ -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"

@ -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"

@ -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 {

@ -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 {

@ -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 {

@ -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"

@ -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"

@ -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"

@ -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 {

@ -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 {

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

@ -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 {

@ -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 {

Loading…
Cancel
Save