aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-05-31 23:07:25 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-06-01 15:32:58 +0200
commit2cc529aa1fc82211dfa4f90a6e24ad2607d6817a (patch)
tree281dc498326f2801586c133325f0a259ebe591a8
parent5970b712b4aacd09799ace6b3ba533d1ed6b9af0 (diff)
Reduce fastos.h dependency.
-rw-r--r--searchlib/src/vespa/searchlib/aggregation/fs4hit.cpp1
-rw-r--r--searchlib/src/vespa/searchlib/aggregation/hit.cpp1
-rw-r--r--searchlib/src/vespa/searchlib/aggregation/rawrank.cpp1
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attribute.cpp3
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributefactory.cpp5
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributefile.cpp11
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributefilebufferwriter.cpp4
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributefilesavetarget.cpp12
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributememoryfilebufferwriter.cpp5
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributememoryfilewriter.cpp7
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributememorysavetarget.cpp7
-rw-r--r--searchlib/src/vespa/searchlib/attribute/attributesaver.cpp5
-rw-r--r--searchlib/src/vespa/searchlib/attribute/configconverter.cpp3
-rw-r--r--searchlib/src/vespa/searchlib/attribute/defines.cpp3
-rw-r--r--searchlib/src/vespa/searchlib/attribute/dociditerator.cpp3
-rw-r--r--searchlib/src/vespa/searchlib/attribute/enumattribute.cpp3
16 files changed, 17 insertions, 57 deletions
diff --git a/searchlib/src/vespa/searchlib/aggregation/fs4hit.cpp b/searchlib/src/vespa/searchlib/aggregation/fs4hit.cpp
index f63f44d3a12..aac21a0ae66 100644
--- a/searchlib/src/vespa/searchlib/aggregation/fs4hit.cpp
+++ b/searchlib/src/vespa/searchlib/aggregation/fs4hit.cpp
@@ -1,5 +1,4 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "fs4hit.h"
#include <vespa/vespalib/objects/visit.h>
diff --git a/searchlib/src/vespa/searchlib/aggregation/hit.cpp b/searchlib/src/vespa/searchlib/aggregation/hit.cpp
index 9bb7cf95757..501249cf867 100644
--- a/searchlib/src/vespa/searchlib/aggregation/hit.cpp
+++ b/searchlib/src/vespa/searchlib/aggregation/hit.cpp
@@ -1,5 +1,4 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "hit.h"
#include <vespa/vespalib/objects/visit.h>
diff --git a/searchlib/src/vespa/searchlib/aggregation/rawrank.cpp b/searchlib/src/vespa/searchlib/aggregation/rawrank.cpp
index b570c7795c0..7674cde1de7 100644
--- a/searchlib/src/vespa/searchlib/aggregation/rawrank.cpp
+++ b/searchlib/src/vespa/searchlib/aggregation/rawrank.cpp
@@ -1,5 +1,4 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "rawrank.h"
#include <vespa/vespalib/util/sort.h>
#include <algorithm>
diff --git a/searchlib/src/vespa/searchlib/attribute/attribute.cpp b/searchlib/src/vespa/searchlib/attribute/attribute.cpp
index 649ac1c9786..e0a47db521f 100644
--- a/searchlib/src/vespa/searchlib/attribute/attribute.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attribute.cpp
@@ -1,10 +1,7 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "attribute.h"
-#include <vespa/log/log.h>
-LOG_SETUP(".searchlib.attribute.attribute");
namespace search {
} // namespace search
diff --git a/searchlib/src/vespa/searchlib/attribute/attributefactory.cpp b/searchlib/src/vespa/searchlib/attribute/attributefactory.cpp
index f7d5adbe049..e80fd2ab8c0 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributefactory.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributefactory.cpp
@@ -1,11 +1,10 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
+#include "attributefactory.h"
+
#include <vespa/log/log.h>
LOG_SETUP(".searchlib.attributefactory");
-#include "attributefactory.h"
-
namespace search {
using attribute::CollectionType;
diff --git a/searchlib/src/vespa/searchlib/attribute/attributefile.cpp b/searchlib/src/vespa/searchlib/attribute/attributefile.cpp
index a2f12ad3a1d..8394fc36fb6 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributefile.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributefile.cpp
@@ -1,12 +1,11 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "attributefile.h"
-#include <stdexcept>
+#include <vespa/searchlib/util/filesizecalculator.h>
#include <vespa/vespalib/util/error.h>
#include <vespa/vespalib/util/exceptions.h>
#include <vespa/vespalib/data/fileheader.h>
-#include <vespa/searchlib/util/filesizecalculator.h>
+#include <stdexcept>
#include <vespa/log/log.h>
LOG_SETUP(".attributefile");
@@ -15,13 +14,11 @@ using vespalib::IllegalStateException;
using search::common::FileHeaderContext;
using vespalib::getLastErrorString;
-namespace search
-{
+namespace search {
using attribute::BasicType;
-namespace
-{
+namespace {
void
updateHeader(const vespalib::string &name)
diff --git a/searchlib/src/vespa/searchlib/attribute/attributefilebufferwriter.cpp b/searchlib/src/vespa/searchlib/attribute/attributefilebufferwriter.cpp
index 15eceae889d..561993c7bce 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributefilebufferwriter.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributefilebufferwriter.cpp
@@ -1,10 +1,8 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "attributefilebufferwriter.h"
-namespace search
-{
+namespace search {
AttributeFileBufferWriter::
AttributeFileBufferWriter(IAttributeFileWriter &fileWriter)
diff --git a/searchlib/src/vespa/searchlib/attribute/attributefilesavetarget.cpp b/searchlib/src/vespa/searchlib/attribute/attributefilesavetarget.cpp
index ce77c3b8722..291f265c484 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributefilesavetarget.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributefilesavetarget.cpp
@@ -1,20 +1,18 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
-#include <vespa/log/log.h>
-LOG_SETUP(".searchlib.attribute.attributefilesavetarget");
-
#include "attributefilesavetarget.h"
#include "attributevector.h"
+#include <vespa/searchlib/common/fileheadercontext.h>
#include <vespa/vespalib/data/fileheader.h>
#include <vespa/vespalib/data/databuffer.h>
-#include <vespa/searchlib/common/fileheadercontext.h>
#include <vespa/vespalib/util/error.h>
+#include <vespa/log/log.h>
+LOG_SETUP(".searchlib.attribute.attributefilesavetarget");
+
using vespalib::getLastErrorString;
-namespace search
-{
+namespace search {
using common::FileHeaderContext;
diff --git a/searchlib/src/vespa/searchlib/attribute/attributememoryfilebufferwriter.cpp b/searchlib/src/vespa/searchlib/attribute/attributememoryfilebufferwriter.cpp
index 534a7d6ff2f..833171328a6 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributememoryfilebufferwriter.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributememoryfilebufferwriter.cpp
@@ -1,11 +1,8 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "attributememoryfilebufferwriter.h"
-namespace search
-{
-
+namespace search {
AttributeMemoryFileBufferWriter::
AttributeMemoryFileBufferWriter(IAttributeFileWriter &memoryFileWriter)
diff --git a/searchlib/src/vespa/searchlib/attribute/attributememoryfilewriter.cpp b/searchlib/src/vespa/searchlib/attribute/attributememoryfilewriter.cpp
index a9b72350c7e..b536cdae0b9 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributememoryfilewriter.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributememoryfilewriter.cpp
@@ -1,14 +1,11 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "attributememoryfilewriter.h"
#include "attributememoryfilebufferwriter.h"
-namespace search
-{
+namespace search {
-namespace
-{
+namespace {
const uint32_t MIN_ALIGNMENT = 4096;
diff --git a/searchlib/src/vespa/searchlib/attribute/attributememorysavetarget.cpp b/searchlib/src/vespa/searchlib/attribute/attributememorysavetarget.cpp
index 41166c8b76b..e93e2ee34db 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributememorysavetarget.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributememorysavetarget.cpp
@@ -1,15 +1,10 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
-#include <vespa/log/log.h>
-LOG_SETUP(".searchlib.attribute.attributememorysavetarget");
-
#include "attributememorysavetarget.h"
#include "attributefilesavetarget.h"
#include "attributevector.h"
-namespace search
-{
+namespace search {
using search::common::FileHeaderContext;
diff --git a/searchlib/src/vespa/searchlib/attribute/attributesaver.cpp b/searchlib/src/vespa/searchlib/attribute/attributesaver.cpp
index f00a14127aa..f03fecce67c 100644
--- a/searchlib/src/vespa/searchlib/attribute/attributesaver.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/attributesaver.cpp
@@ -1,14 +1,11 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "attributesaver.h"
#include "iattributesavetarget.h"
-
using vespalib::GenerationHandler;
-namespace search
-{
+namespace search {
AttributeSaver::AttributeSaver(GenerationHandler::Guard &&guard,
const attribute::AttributeHeader &header)
diff --git a/searchlib/src/vespa/searchlib/attribute/configconverter.cpp b/searchlib/src/vespa/searchlib/attribute/configconverter.cpp
index 9e3c6156dbf..63c964c3bf9 100644
--- a/searchlib/src/vespa/searchlib/attribute/configconverter.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/configconverter.cpp
@@ -1,8 +1,5 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
-#include <vespa/log/log.h>
-LOG_SETUP(".searchlib.attribute.configconverter");
#include "configconverter.h"
using namespace vespa::config::search;
diff --git a/searchlib/src/vespa/searchlib/attribute/defines.cpp b/searchlib/src/vespa/searchlib/attribute/defines.cpp
index cbe69920ac3..9af6da89662 100644
--- a/searchlib/src/vespa/searchlib/attribute/defines.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/defines.cpp
@@ -1,10 +1,7 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "defines.h"
-#include <vespa/log/log.h>
-LOG_SETUP(".searchlib.attribute.defines");
namespace search {
} // namespace search
diff --git a/searchlib/src/vespa/searchlib/attribute/dociditerator.cpp b/searchlib/src/vespa/searchlib/attribute/dociditerator.cpp
index f7429070f34..400676cece6 100644
--- a/searchlib/src/vespa/searchlib/attribute/dociditerator.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/dociditerator.cpp
@@ -1,10 +1,7 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "dociditerator.h"
-#include <vespa/log/log.h>
-LOG_SETUP(".searchlib.attribute.dociditerator");
namespace search {
} // namespace search
diff --git a/searchlib/src/vespa/searchlib/attribute/enumattribute.cpp b/searchlib/src/vespa/searchlib/attribute/enumattribute.cpp
index 396c50eba65..34f2c63eb00 100644
--- a/searchlib/src/vespa/searchlib/attribute/enumattribute.cpp
+++ b/searchlib/src/vespa/searchlib/attribute/enumattribute.cpp
@@ -1,11 +1,8 @@
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
-#include <vespa/fastos/fastos.h>
#include "enumattribute.h"
#include "enumattribute.hpp"
-#include <vespa/log/log.h>
-LOG_SETUP(".searchlib.attribute.enumattribute");
namespace search {
} // namespace search