Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove boost/foreach includes & autoconf bit
  • Loading branch information
ahupowerdns committed Nov 26, 2015
1 parent abb873e commit fa8fd4d
Show file tree
Hide file tree
Showing 74 changed files with 73 additions and 74 deletions.
1 change: 0 additions & 1 deletion configure.ac
Expand Up @@ -113,7 +113,6 @@ PDNS_CHECK_LIBSODIUM
PDNS_CHECK_CLOCK_GETTIME

BOOST_REQUIRE([1.35])
BOOST_FOREACH
BOOST_PROGRAM_OPTIONS([mt])
BOOST_SERIALIZATION([mt])

Expand Down
2 changes: 1 addition & 1 deletion modules/bindbackend/bindbackend2.cc
Expand Up @@ -33,7 +33,7 @@
#include <fcntl.h>
#include <sstream>
#include <boost/algorithm/string.hpp>
#include <boost/foreach.hpp>

#include "pdns/dnsseckeeper.hh"
#include "pdns/dnssecinfra.hh"
#include "pdns/base32.hh"
Expand Down
2 changes: 1 addition & 1 deletion modules/geoipbackend/geoipbackend.hh
Expand Up @@ -9,7 +9,7 @@
#include <fstream>
#include <yaml-cpp/yaml.h>
#include <pthread.h>
#include <boost/foreach.hpp>

#include <GeoIP.h>
#include <GeoIPCity.h>
#include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion modules/gpgsqlbackend/spgsql.cc
Expand Up @@ -11,7 +11,7 @@
#include "pdns/dns.hh"
#include "pdns/namespaces.hh"
#include <algorithm>
#include <boost/foreach.hpp>


class SPgSQLStatement: public SSqlStatement
{
Expand Down
2 changes: 1 addition & 1 deletion modules/remotebackend/httpconnector.cc
Expand Up @@ -5,7 +5,7 @@
#include <sys/socket.h>
#include <unistd.h>
#include <fcntl.h>
#include <boost/foreach.hpp>

#include <sstream>
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/remotebackend/remotebackend.cc
Expand Up @@ -2,7 +2,7 @@
#include "config.h"
#endif
#include "remotebackend.hh"
#include <boost/foreach.hpp>


static const char *kBackendId = "[RemoteBackend]";

Expand Down
2 changes: 1 addition & 1 deletion modules/remotebackend/test-remotebackend-http.cc
Expand Up @@ -38,7 +38,7 @@ DNSBackend *be;

#include <boost/test/unit_test.hpp>
#include <boost/assign/list_of.hpp>
#include <boost/foreach.hpp>

#include <boost/tuple/tuple.hpp>

struct RemotebackendSetup {
Expand Down
2 changes: 1 addition & 1 deletion modules/remotebackend/test-remotebackend-json.cc
Expand Up @@ -38,7 +38,7 @@ DNSBackend *be;

#include <boost/test/unit_test.hpp>
#include <boost/assign/list_of.hpp>
#include <boost/foreach.hpp>

#include <boost/tuple/tuple.hpp>

struct RemotebackendSetup {
Expand Down
2 changes: 1 addition & 1 deletion modules/remotebackend/test-remotebackend-pipe.cc
Expand Up @@ -7,7 +7,7 @@
#endif
#include <boost/test/unit_test.hpp>
#include <boost/assign/list_of.hpp>
#include <boost/foreach.hpp>

#include <boost/tuple/tuple.hpp>
#include "pdns/namespaces.hh"
#include "pdns/dns.hh"
Expand Down
2 changes: 1 addition & 1 deletion modules/remotebackend/test-remotebackend-post.cc
Expand Up @@ -38,7 +38,7 @@ DNSBackend *be;

#include <boost/test/unit_test.hpp>
#include <boost/assign/list_of.hpp>
#include <boost/foreach.hpp>

#include <boost/tuple/tuple.hpp>

struct RemotebackendSetup {
Expand Down
2 changes: 1 addition & 1 deletion modules/remotebackend/test-remotebackend-unix.cc
Expand Up @@ -7,7 +7,7 @@
#endif
#include <boost/test/unit_test.hpp>
#include <boost/assign/list_of.hpp>
#include <boost/foreach.hpp>

#include <boost/tuple/tuple.hpp>
#include "pdns/namespaces.hh"
#include "pdns/dns.hh"
Expand Down
2 changes: 1 addition & 1 deletion modules/remotebackend/test-remotebackend-zeromq.cc
Expand Up @@ -6,7 +6,7 @@
#include "config.h"
#endif
#include <boost/assign/list_of.hpp>
#include <boost/foreach.hpp>

#include <boost/tuple/tuple.hpp>
#include "pdns/namespaces.hh"
#include "pdns/dns.hh"
Expand Down
2 changes: 1 addition & 1 deletion modules/remotebackend/test-remotebackend.cc
Expand Up @@ -6,7 +6,7 @@
#endif
#include <boost/test/unit_test.hpp>
#include <boost/assign/list_of.hpp>
#include <boost/foreach.hpp>

#include <boost/tuple/tuple.hpp>
#include "pdns/namespaces.hh"
#include "pdns/dns.hh"
Expand Down
2 changes: 1 addition & 1 deletion modules/remotebackend/zmqconnector.cc
Expand Up @@ -7,7 +7,7 @@
#include <sys/socket.h>
#include <unistd.h>
#include <fcntl.h>
#include <boost/foreach.hpp>

#include <sstream>
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"
Expand Down
2 changes: 1 addition & 1 deletion modules/tinydnsbackend/tinydnsbackend.cc
Expand Up @@ -9,7 +9,7 @@
#include "pdns/dnspacket.hh"
#include "pdns/dnsrecords.hh"
#include <utility>
#include <boost/foreach.hpp>


static string backendname="[TinyDNSBackend] ";
uint32_t TinyDNSBackend::s_lastId;
Expand Down
2 changes: 1 addition & 1 deletion pdns/arguments.cc
Expand Up @@ -26,7 +26,7 @@
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/compare.hpp>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/foreach.hpp>

#include "namespaces.hh"
#include "logger.hh"
#include <sys/types.h>
Expand Down
2 changes: 1 addition & 1 deletion pdns/auth-carbon.cc
Expand Up @@ -7,7 +7,7 @@
#include "sstuff.hh"
#include "arguments.hh"
#include "common_startup.hh"
#include <boost/foreach.hpp>

#include "namespaces.hh"

void* carbonDumpThread(void*)
Expand Down
2 changes: 1 addition & 1 deletion pdns/common_startup.cc
Expand Up @@ -28,7 +28,7 @@
#include <sys/time.h>
#include <sys/resource.h>
#include "dynhandler.hh"
#include <boost/foreach.hpp>


bool g_anyToTcp;
typedef Distributor<DNSPacket,DNSPacket,PacketHandler> DNSDistributor;
Expand Down
2 changes: 1 addition & 1 deletion pdns/dbdnsseckeeper.cc
Expand Up @@ -28,7 +28,7 @@
#include "ueberbackend.hh"
#include "statbag.hh"
#include <iostream>
#include <boost/foreach.hpp>

#include <sys/stat.h>
#include <sys/types.h>
#include <fstream>
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnsdist-carbon.cc
Expand Up @@ -4,7 +4,7 @@
#include "iputils.hh"
#include "dolog.hh"
#include "sstuff.hh"
#include <boost/foreach.hpp>

#include "namespaces.hh"
#undef L
#include "dnsdist.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnspacket.cc
Expand Up @@ -33,7 +33,7 @@
#include <boost/tokenizer.hpp>
#include <boost/algorithm/string.hpp>
#include <algorithm>
#include <boost/foreach.hpp>

#include "dnsseckeeper.hh"
#include "dns.hh"
#include "dnsbackend.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnsproxy.cc
Expand Up @@ -31,7 +31,7 @@
#include "dns.hh"
#include "logger.hh"
#include "statbag.hh"
#include <boost/foreach.hpp>


extern StatBag S;
extern PacketCache PC;
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnsrecords.cc
Expand Up @@ -26,7 +26,7 @@
#include "utility.hh"
#include "dnsrecords.hh"
#include "iputils.hh"
#include <boost/foreach.hpp>


void DNSResourceRecord::setContent(const string &cont) {
content = cont;
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnsscope.cc
Expand Up @@ -14,7 +14,7 @@
#include <algorithm>
#include "anadns.hh"
#include <boost/program_options.hpp>
#include <boost/foreach.hpp>

#include <boost/logic/tribool.hpp>
#include "arguments.hh"
#include "namespaces.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnssecinfra.cc
Expand Up @@ -8,7 +8,7 @@
#include "dnsrecords.hh"
#include "statbag.hh"
#include "iputils.hh"
#include <boost/foreach.hpp>

#include <boost/algorithm/string.hpp>
#include "dnssecinfra.hh"
#include "dnsseckeeper.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnssecsigner.cc
Expand Up @@ -24,7 +24,7 @@
#endif
#include "dnssecinfra.hh"
#include "namespaces.hh"
#include <boost/foreach.hpp>

#include "md5.hh"
#include "dnsseckeeper.hh"
#include "dns_random.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnstcpbench.cc
Expand Up @@ -37,7 +37,7 @@
#include <netinet/tcp.h>
#include <boost/array.hpp>
#include <boost/program_options.hpp>
#include <boost/foreach.hpp>


StatBag S;
namespace po = boost::program_options;
Expand Down
2 changes: 1 addition & 1 deletion pdns/dnswriter.cc
Expand Up @@ -4,7 +4,7 @@
#include "dnswriter.hh"
#include "misc.hh"
#include "dnsparser.hh"
#include <boost/foreach.hpp>

#include <limits.h>

DNSPacketWriter::DNSPacketWriter(vector<uint8_t>& content, const DNSName& qname, uint16_t qtype, uint16_t qclass, uint8_t opcode)
Expand Down
2 changes: 1 addition & 1 deletion pdns/gss_context.cc
Expand Up @@ -11,7 +11,7 @@
#include "logger.hh"
#include "lock.hh"
#include "arguments.hh"
#include <boost/foreach.hpp>

#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include "gss_context.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/inflighter.cc
Expand Up @@ -4,7 +4,7 @@
#include <vector>
#include <deque>
#include <iostream>
#include <boost/foreach.hpp>

#include <boost/multi_index_container.hpp>
#include <boost/format.hpp>
#include <sys/time.h>
Expand Down
2 changes: 1 addition & 1 deletion pdns/ixplore.cc
Expand Up @@ -14,7 +14,7 @@
#include "statbag.hh"
#include "base32.hh"
#include "dnssecinfra.hh"
#include <boost/foreach.hpp>

#include "dns_random.hh"
#include "gss_context.hh"
#include "zoneparser-tng.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/json.cc
Expand Up @@ -25,7 +25,7 @@
#include "json.hh"
#include "namespaces.hh"
#include "misc.hh"
#include <boost/foreach.hpp>

#include "rapidjson/document.h"
#include "rapidjson/stringbuffer.h"
#include "rapidjson/writer.h"
Expand Down
2 changes: 1 addition & 1 deletion pdns/lua-auth.cc
Expand Up @@ -46,7 +46,7 @@ extern "C" {
#include <string>
#include <vector>
#include <stdexcept>
#include <boost/foreach.hpp>

#include "logger.hh"
#include "namespaces.hh"

Expand Down
2 changes: 1 addition & 1 deletion pdns/lua-pdns.cc
Expand Up @@ -3,7 +3,7 @@
#endif
#include "lua-pdns.hh"
// #include "syncres.hh"
#include <boost/foreach.hpp>


#if !defined(HAVE_LUA)

Expand Down
2 changes: 1 addition & 1 deletion pdns/lua-recursor.cc
Expand Up @@ -60,7 +60,7 @@ extern "C" {
#include <string>
#include <vector>
#include <stdexcept>
#include <boost/foreach.hpp>

#include "logger.hh"
#include "dnsparser.hh"
#include "namespaces.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/mastercommunicator.cc
Expand Up @@ -28,7 +28,7 @@
#include "communicator.hh"
#include <set>
#include <boost/utility.hpp>
#include <boost/foreach.hpp>

#include "dnsbackend.hh"
#include "ueberbackend.hh"
#include "packethandler.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/mbedtlssigners.cc
Expand Up @@ -14,7 +14,7 @@
#include "mbedtlscompat.hh"
#endif
#include <boost/assign/std/vector.hpp> // for 'operator+=()'
#include <boost/foreach.hpp>

#include "sha.hh"
#include "dnssecinfra.hh"
using namespace boost::assign;
Expand Down
2 changes: 1 addition & 1 deletion pdns/nameserver.hh
Expand Up @@ -31,7 +31,7 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <vector>
#include <boost/foreach.hpp>

#include "statbag.hh"
#include "namespaces.hh"
#include "dnspacket.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/nsec3dig.cc
Expand Up @@ -9,7 +9,7 @@
#include "statbag.hh"
#include "base32.hh"
#include "dnssecinfra.hh"
#include <boost/foreach.hpp>


StatBag S;

Expand Down
2 changes: 1 addition & 1 deletion pdns/pdns_hw.cc
Expand Up @@ -7,7 +7,7 @@
#include <boost/tuple/tuple_comparison.hpp>
#include <boost/multi_index/key_extractors.hpp>
#include <boost/multi_index/sequenced_index.hpp>
#include <boost/foreach.hpp>

#include <iostream>
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion pdns/pdns_recursor.cc
Expand Up @@ -26,7 +26,7 @@
#include <netdb.h>
#include <sys/stat.h>
#include <unistd.h>
#include <boost/foreach.hpp>

#include "ws-recursor.hh"
#include <pthread.h>
#include "recpacketcache.hh"
Expand Down
2 changes: 1 addition & 1 deletion pdns/pdnssec.cc
Expand Up @@ -6,7 +6,7 @@
#include "statbag.hh"
#include "base32.hh"
#include "base64.hh"
#include <boost/foreach.hpp>

#include <boost/program_options.hpp>
#include <boost/assign/std/vector.hpp>
#include <boost/assign/list_of.hpp>
Expand Down
2 changes: 1 addition & 1 deletion pdns/pkcs11signers.cc
Expand Up @@ -4,7 +4,7 @@
#include <boost/assign/std/vector.hpp> // for 'operator+=()'
#include <boost/assign/list_of.hpp>
#include <boost/make_shared.hpp>
#include <boost/foreach.hpp>

#include <boost/format.hpp>
#include <p11-kit/p11-kit.h>

Expand Down
2 changes: 1 addition & 1 deletion pdns/rec-carbon.cc
Expand Up @@ -8,7 +8,7 @@
#include "logger.hh"
#include "arguments.hh"
#include "lock.hh"
#include <boost/foreach.hpp>


void doCarbonDump(void*)
try
Expand Down

0 comments on commit fa8fd4d

Please sign in to comment.