Changeset 1427

Show
Ignore:
Timestamp:
10/11/09 14:50:52 (4 years ago)
Author:
ahu
Message:

huge batch of namespace & stdint cleanups

Location:
trunk/pdns/pdns
Files:
42 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/pdns/Makefile-recursor

    r1410 r1427  
    2626rec_channel.o rec_channel_rec.o selectmplexer.o sillyrecords.o \ 
    2727dns_random.o aescrypt.o aeskey.o aes_modes.o aestab.o lua-pdns-recursor.o \ 
    28 randomhelper.o 
     28randomhelper.o md5.o 
    2929 
    3030REC_CONTROL_OBJECTS=rec_channel.o rec_control.o arguments.o  
  • trunk/pdns/pdns/aes/brg_types.h

    r1159 r1427  
    4848#  define ptrint_t intptr_t 
    4949#elif defined( __GNUC__ ) && ( __GNUC__ >= 3 ) 
    50 #  include <stdint.h> 
     50#  include <inttypes.h> 
    5151#  define ptrint_t intptr_t 
    5252#else 
  • trunk/pdns/pdns/anadns.hh

    r477 r1427  
    88#include "dnsparser.hh" 
    99 
    10 using namespace boost; 
     10#include "namespaces.hh" 
    1111using namespace std; 
    1212 
  • trunk/pdns/pdns/argtng.hh

    r333 r1427  
    88#include <boost/regex.hpp> 
    99using namespace std; 
    10 using namespace boost; 
     10#include "namespaces.hh" 
    1111 
    1212#define decl(x,y) typeof((y)) (x) = (y) 
  • trunk/pdns/pdns/arguments.cc

    r1348 r1427  
    1818#include "arguments.hh" 
    1919#include <boost/algorithm/string.hpp> 
    20 using namespace boost; 
     20#include "namespaces.hh" 
    2121 
    2222const ArgvMap::param_t::const_iterator ArgvMap::begin() 
  • trunk/pdns/pdns/base64.cc

    r1394 r1427  
    11#include "base64.hh" 
    2 #include <stdint.h> 
     2 
    33 
    44namespace anonpdns { 
  • trunk/pdns/pdns/devpollmplexer.cc

    r1421 r1427  
    88#include "syncres.hh" 
    99 
    10 using namespace boost; 
     10#include "namespaces.hh" 
    1111using namespace std; 
    1212 
  • trunk/pdns/pdns/dnsdemog.cc

    r1275 r1427  
    1111#include "anadns.hh" 
    1212 
    13 using namespace boost; 
     13#include "namespaces.hh" 
    1414using namespace std; 
    1515 
  • trunk/pdns/pdns/dnsgram.cc

    r1275 r1427  
    1212#include "anadns.hh" 
    1313 
    14 using namespace boost; 
     14#include "namespaces.hh" 
    1515using namespace std; 
    1616 
  • trunk/pdns/pdns/dnspacket.cc

    r1346 r1427  
    482482  qdomain=mdp.d_qname; 
    483483  if(!qdomain.empty()) // strip dot 
    484     erase_tail(qdomain, 1); 
     484    boost::erase_tail(qdomain, 1); 
    485485 
    486486  if(!ntohs(d.qdcount)) { 
  • trunk/pdns/pdns/dnsparser.cc

    r1359 r1427  
    2222#include <boost/algorithm/string.hpp> 
    2323 
    24 using namespace boost; 
     24#include "namespaces.hh" 
    2525 
    2626class UnknownRecordContent : public DNSRecordContent 
  • trunk/pdns/pdns/dnsparser.hh

    r1369 r1427  
    4949     
    5050using namespace std; 
    51 using namespace boost; 
     51#include "namespaces.hh" 
    5252 
    5353class MOADNSException : public runtime_error 
  • trunk/pdns/pdns/dnspcap.cc

    r862 r1427  
    44#include <fcntl.h> 
    55 
    6 using namespace boost; 
     6#include "namespaces.hh" 
    77PcapPacketReader::PcapPacketReader(const string& fname) : d_fname(fname) 
    88{ 
  • trunk/pdns/pdns/dnsrecords.hh

    r1363 r1427  
    2727 
    2828using namespace std; 
    29 using namespace boost; 
     29#include "namespaces.hh" 
    3030 
    3131#define includeboilerplate(RNAME)   RNAME##RecordContent(const DNSRecord& dr, PacketReader& pr); \ 
  • trunk/pdns/pdns/dnsreplay.cc

    r1402 r1427  
    6060#include <boost/multi_index/key_extractors.hpp> 
    6161 
    62 using namespace boost; 
     62#include "namespaces.hh" 
    6363using namespace ::boost::multi_index; 
    6464using namespace std; 
  • trunk/pdns/pdns/dnsscan.cc

    r1275 r1427  
    1818#include <cctype> 
    1919 
    20 using namespace boost; 
     20#include "namespaces.hh" 
    2121using namespace ::boost::multi_index; 
    2222using namespace std; 
  • trunk/pdns/pdns/dnsscope.cc

    r1276 r1427  
    1111#include "anadns.hh" 
    1212 
    13 using namespace boost; 
     13#include "namespaces.hh" 
    1414using namespace std; 
    1515 
  • trunk/pdns/pdns/dnswasher.cc

    r1275 r1427  
    1616#include "dnspcap.hh" 
    1717 
    18 using namespace boost; 
     18#include "namespaces.hh" 
    1919using namespace std; 
    2020 
  • trunk/pdns/pdns/dnswriter.hh

    r1370 r1427  
    66#include <map> 
    77#if !defined SOLARIS8 && !defined WIN32 
    8 #include <stdint.h> 
     8 
    99#elif defined WIN32 
    1010#include "utility.hh" 
  • trunk/pdns/pdns/dynloader.cc

    r1267 r1427  
    3939#include "misc.hh" 
    4040using namespace std; 
    41 using namespace boost; 
     41#include "namespaces.hh" 
    4242 
    4343ArgvMap &arg() 
  • trunk/pdns/pdns/epollmplexer.cc

    r1115 r1427  
    1010#endif 
    1111 
    12 using namespace boost; 
     12#include "namespaces.hh" 
    1313using namespace std; 
    1414 
  • trunk/pdns/pdns/htimer.cc

    r1070 r1427  
    66 
    77using namespace std; 
    8 using namespace boost; 
     8#include "namespaces.hh" 
    99 
    1010 
  • trunk/pdns/pdns/kqueuemplexer.cc

    r1115 r1427  
    1212#include <sys/time.h> 
    1313 
    14 using namespace boost; 
     14#include "namespaces.hh" 
    1515using namespace std; 
    1616 
  • trunk/pdns/pdns/md5.cc

    r1417 r1427  
    66#include <sys/types.h> 
    77#include <stdexcept> 
    8 #include <stdint.h> 
     8 
    99#include "md5.hh" 
    1010 
  • trunk/pdns/pdns/md5.hh

    r1417 r1427  
    33 
    44#include <string> 
    5 #include <stdint.h> 
     5 
    66 
    77 
  • trunk/pdns/pdns/misc.hh

    r1402 r1427  
    1919#ifndef MISC_HH 
    2020#define MISC_HH 
    21 #include <stdint.h> 
     21#include <inttypes.h> 
    2222#include <cstring> 
    2323#include <cstdio> 
  • trunk/pdns/pdns/mtasker.cc

    r1402 r1427  
    11/* 
    22    PowerDNS Versatile Database Driven Nameserver 
    3     Copyright (C) 2002 - 2006  PowerDNS.COM BV 
     3    Copyright (C) 2002 - 2009  PowerDNS.COM BV 
    44 
    55    This program is free software; you can redistribute it and/or modify 
  • trunk/pdns/pdns/mtasker.hh

    r1402 r1427  
    3333#include <boost/multi_index/ordered_index.hpp> 
    3434#include <boost/multi_index/key_extractors.hpp> 
    35 using namespace boost; 
     35#include "namespaces.hh" 
    3636using namespace ::boost::multi_index; 
    3737 
  • trunk/pdns/pdns/nameserver.cc

    r1271 r1427  
    3434#include "statbag.hh" 
    3535 
    36 using namespace boost; 
     36#include "namespaces.hh" 
    3737 
    3838extern StatBag S; 
  • trunk/pdns/pdns/notify.cc

    r1321 r1427  
    1313#include "mplexer.hh" 
    1414 
    15 using namespace boost; 
     15#include "namespaces.hh" 
    1616using namespace ::boost::multi_index; 
    1717using namespace std; 
  • trunk/pdns/pdns/nproxy.cc

    r1275 r1427  
    1717#include "mplexer.hh" 
    1818 
    19 using namespace boost; 
     19#include "namespaces.hh" 
    2020using namespace ::boost::multi_index; 
    2121using namespace std; 
  • trunk/pdns/pdns/packetcache.hh

    r1399 r1427  
    2929using namespace ::boost::multi_index; 
    3030 
    31 using namespace boost; 
     31#include "namespaces.hh" 
    3232#include "dnspacket.hh" 
    3333#include "lock.hh" 
  • trunk/pdns/pdns/portsmplexer.cc

    r1372 r1427  
    1212#endif 
    1313 
    14 using namespace boost; 
     14#include "namespaces.hh" 
    1515using namespace std; 
    1616 
  • trunk/pdns/pdns/rcpgenerator.hh

    r1100 r1427  
    2424#include <stdexcept> 
    2525#if !defined SOLARIS8 && !defined WIN32 
    26 # include <stdint.h> 
     26 
    2727#elif defined WIN32 
    2828# include "utility.hh" 
  • trunk/pdns/pdns/rec_channel.hh

    r1366 r1427  
    44#include <map> 
    55#if !defined SOLARIS8 && !defined WIN32 
    6 #include <stdint.h> 
     6 
    77#elif defined WIN32 
    88#include "utility.hh" 
  • trunk/pdns/pdns/recursor_cache.cc

    r1413 r1427  
    1010 
    1111using namespace std; 
    12 using namespace boost; 
     12#include "namespaces.hh" 
    1313 
    1414#include "config.h" 
  • trunk/pdns/pdns/recursor_cache.hh

    r1403 r1427  
    2323 
    2424#define L theL() 
    25 using namespace boost; 
     25#include "namespaces.hh" 
    2626using namespace ::boost::multi_index; 
    2727 
  • trunk/pdns/pdns/recursor_memcached.hh

    r1362 r1427  
    22#define PDNS_RECURSOR_MEMCACHED_HH 
    33#include <string> 
    4 #include <stdint.h> 
     4 
    55 
    66class MemcachedCommunicator 
  • trunk/pdns/pdns/selectmplexer.cc

    r1115 r1427  
    88 
    99 
    10 using namespace boost; 
     10#include "namespaces.hh" 
    1111using namespace std; 
    1212 
  • trunk/pdns/pdns/sstuff.hh

    r1412 r1427  
    2121#include <csignal> 
    2222using namespace std; 
    23 using namespace boost; 
     23#include "namespaces.hh" 
    2424 
    2525 
  • trunk/pdns/pdns/syncres.hh

    r1410 r1427  
    526526  uint64_t ednsPingMismatches; 
    527527  uint64_t noPingOutQueries, noEdnsOutQueries; 
     528  uint64_t packetCacheHits; 
    528529  time_t startupTime; 
    529530 
     
    557558std::string reloadAuthAndForwards(); 
    558559ComboAddress parseIPAndPort(const std::string& input, uint16_t port); 
     560ComboAddress getQueryLocalAddress(int family); 
    559561#endif 
  • trunk/pdns/pdns/tcpreceiver.cc

    r1360 r1427  
    4242#include "resolver.hh" 
    4343#include "communicator.hh" 
    44 using namespace boost; 
     44#include "namespaces.hh" 
    4545 
    4646extern PacketCache PC;