View | Details | Raw Unified | Return to bug 245
Collapse All | Expand All

(-)a/src/common/buffer.h (+1 lines)
 Lines 520-525   private: Link Here 
520
#ifdef BUFFER_USE_INLINE
520
#ifdef BUFFER_USE_INLINE
521
521
522
#include "ns3/assert.h"
522
#include "ns3/assert.h"
523
#include <string.h>
523
524
524
namespace ns3 {
525
namespace ns3 {
525
526
(-)a/src/common/data-rate.cc (-2 / +7 lines)
 Lines 29-35   DoParse (const std::string s, uint64_t * Link Here 
29
  std::string::size_type n = s.find_first_not_of("0123456789.");
29
  std::string::size_type n = s.find_first_not_of("0123456789.");
30
  if (n != std::string::npos)
30
  if (n != std::string::npos)
31
  { // Found non-numeric
31
  { // Found non-numeric
32
    double r = ::atof(s.substr(0, n).c_str());
32
    std::istringstream iss;
33
    iss.str (s.substr(0, n));
34
    double r;
35
    iss >> r;
33
    std::string trailer = s.substr(n, std::string::npos);
36
    std::string trailer = s.substr(n, std::string::npos);
34
    if (trailer == "bps")
37
    if (trailer == "bps")
35
      {
38
      {
 Lines 117-123   DoParse (const std::string s, uint64_t * Link Here 
117
      }
120
      }
118
    return true;
121
    return true;
119
  }
122
  }
120
  *v = ::atoll(s.c_str());
123
  std::istringstream iss;
124
  iss.str (s);
125
  iss >> *v;
121
  return true;
126
  return true;
122
}
127
}
123
128
(-)a/src/common/tag-list.cc (+1 lines)
 Lines 20-25    Link Here 
20
#include "tag-list.h"
20
#include "tag-list.h"
21
#include "ns3/log.h"
21
#include "ns3/log.h"
22
#include <vector>
22
#include <vector>
23
#include <string.h>
23
24
24
NS_LOG_COMPONENT_DEFINE ("TagList");
25
NS_LOG_COMPONENT_DEFINE ("TagList");
25
26
(-)a/src/contrib/config-store.cc (+1 lines)
 Lines 8-13    Link Here 
8
#include <fstream>
8
#include <fstream>
9
#include <iostream>
9
#include <iostream>
10
#include <unistd.h>
10
#include <unistd.h>
11
#include <stdlib.h>
11
12
12
NS_LOG_COMPONENT_DEFINE ("ConfigStore");
13
NS_LOG_COMPONENT_DEFINE ("ConfigStore");
13
14
(-)a/src/core/callback.h (+1 lines)
 Lines 25-30    Link Here 
25
#include "fatal-error.h"
25
#include "fatal-error.h"
26
#include "empty.h"
26
#include "empty.h"
27
#include "type-traits.h"
27
#include "type-traits.h"
28
#include <typeinfo>
28
29
29
namespace ns3 {
30
namespace ns3 {
30
31
(-)a/src/core/double.h (+1 lines)
 Lines 23-28    Link Here 
23
#include "attribute.h"
23
#include "attribute.h"
24
#include "attribute-helper.h"
24
#include "attribute-helper.h"
25
#include <stdint.h>
25
#include <stdint.h>
26
#include <limits>
26
27
27
namespace ns3 {
28
namespace ns3 {
28
29
(-)a/src/core/integer.h (+1 lines)
 Lines 23-28    Link Here 
23
#include "attribute.h"
23
#include "attribute.h"
24
#include "attribute-helper.h"
24
#include "attribute-helper.h"
25
#include <stdint.h>
25
#include <stdint.h>
26
#include <limits>
26
27
27
namespace ns3 {
28
namespace ns3 {
28
29
(-)a/src/core/uinteger.h (+1 lines)
 Lines 23-28    Link Here 
23
#include "attribute.h"
23
#include "attribute.h"
24
#include "attribute-helper.h"
24
#include "attribute-helper.h"
25
#include <stdint.h>
25
#include <stdint.h>
26
#include <limits>
26
27
27
namespace ns3 {
28
namespace ns3 {
28
29
(-)a/src/devices/wifi/status-code.h (+1 lines)
 Lines 21-26    Link Here 
21
#define STATUS_CODE_H
21
#define STATUS_CODE_H
22
22
23
#include <stdint.h>
23
#include <stdint.h>
24
#include <ostream>
24
#include "ns3/buffer.h"
25
#include "ns3/buffer.h"
25
26
26
namespace ns3 {
27
namespace ns3 {
(-)a/src/devices/wifi/supported-rates.h (+1 lines)
 Lines 21-26    Link Here 
21
#define SUPPORTED_RATES_H
21
#define SUPPORTED_RATES_H
22
22
23
#include <stdint.h>
23
#include <stdint.h>
24
#include <ostream>
24
#include "ns3/buffer.h"
25
#include "ns3/buffer.h"
25
26
26
namespace ns3 {
27
namespace ns3 {
(-)a/src/helper/internet-stack-helper.cc (+1 lines)
 Lines 26-31    Link Here 
26
#include "ns3/packet-socket-factory.h"
26
#include "ns3/packet-socket-factory.h"
27
#include "ns3/config.h"
27
#include "ns3/config.h"
28
#include "ns3/simulator.h"
28
#include "ns3/simulator.h"
29
#include <limits>
29
30
30
namespace ns3 {
31
namespace ns3 {
31
32
(-)a/src/helper/olsr-helper.h (-1 / +1 lines)
 Lines 39-45   public: Link Here 
39
   */
39
   */
40
  void SetAgent (std::string tid,
40
  void SetAgent (std::string tid,
41
		 std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
41
		 std::string n0 = "", const AttributeValue &v0 = EmptyAttributeValue (),
42
		 std::string n1 = "", const AttributeValue &v2 = EmptyAttributeValue (),
42
		 std::string n1 = "", const AttributeValue &v1 = EmptyAttributeValue (),
43
		 std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
43
		 std::string n2 = "", const AttributeValue &v2 = EmptyAttributeValue (),
44
		 std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
44
		 std::string n3 = "", const AttributeValue &v3 = EmptyAttributeValue (),
45
		 std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
45
		 std::string n4 = "", const AttributeValue &v4 = EmptyAttributeValue (),
(-)a/src/internet-stack/sgi-hashmap.h (-1 / +7 lines)
 Lines 20-27   namespace sgi = ::__gnu_cxx; // GC Link Here 
20
namespace sgi = ::__gnu_cxx;       // GCC 3.1 and later
20
namespace sgi = ::__gnu_cxx;       // GCC 3.1 and later
21
       #endif
21
       #endif
22
     #else  // gcc 4.x and later
22
     #else  // gcc 4.x and later
23
       #if __GNUC_MINOR__ < 3
23
       #include <ext/hash_map>
24
       #include <ext/hash_map>
24
       namespace sgi = ::__gnu_cxx;
25
namespace sgi = ::__gnu_cxx;
26
       #else
27
#undef __DEPRECATED
28
       #include <backward/hash_map>
29
namespace sgi = ::__gnu_cxx;
30
       #endif
25
     #endif
31
     #endif
26
  #endif
32
  #endif
27
#else      // ...  there are other compilers, right?
33
#else      // ...  there are other compilers, right?
(-)a/src/node/address.cc (+1 lines)
 Lines 1-5    Link Here 
1
#include "ns3/assert.h"
1
#include "ns3/assert.h"
2
#include "address.h"
2
#include "address.h"
3
#include <string.h>
3
#include <iostream>
4
#include <iostream>
4
#include <iomanip>
5
#include <iomanip>
5
6
(-)a/src/node/mac48-address.cc (+1 lines)
 Lines 22-27    Link Here 
22
#include "ns3/assert.h"
22
#include "ns3/assert.h"
23
#include <iomanip>
23
#include <iomanip>
24
#include <iostream>
24
#include <iostream>
25
#include <string.h>
25
26
26
namespace ns3 {
27
namespace ns3 {
27
28
(-)a/src/node/mac64-address.cc (+1 lines)
 Lines 22-27    Link Here 
22
#include "ns3/assert.h"
22
#include "ns3/assert.h"
23
#include <iomanip>
23
#include <iomanip>
24
#include <iostream>
24
#include <iostream>
25
#include <string.h>
25
26
26
namespace ns3 {
27
namespace ns3 {
27
28
(-)a/src/node/socket.cc (+1 lines)
 Lines 25-30    Link Here 
25
#include "node.h"
25
#include "node.h"
26
#include "socket.h"
26
#include "socket.h"
27
#include "socket-factory.h"
27
#include "socket-factory.h"
28
#include <limits>
28
29
29
NS_LOG_COMPONENT_DEFINE ("Socket");
30
NS_LOG_COMPONENT_DEFINE ("Socket");
30
31
(-)a/src/routing/global-routing/global-route-manager-impl.cc (+1 lines)
 Lines 1425-1430   GlobalRouteManagerImpl::SPFVertexAddPare Link Here 
1425
1425
1426
#include "ns3/test.h"
1426
#include "ns3/test.h"
1427
#include "ns3/simulator.h"
1427
#include "ns3/simulator.h"
1428
#include <stdlib.h>
1428
1429
1429
namespace ns3 {
1430
namespace ns3 {
1430
1431
(-)a/src/simulator/time.cc (-2 / +9 lines)
 Lines 72-78   TimeUnit<1>::TimeUnit(const std::string& Link Here 
72
  std::string::size_type n = s.find_first_not_of("0123456789.");
72
  std::string::size_type n = s.find_first_not_of("0123456789.");
73
  if (n != std::string::npos)
73
  if (n != std::string::npos)
74
  { // Found non-numeric
74
  { // Found non-numeric
75
    double r = atof(s.substr(0, n).c_str());
75
    std::istringstream iss;
76
    iss.str (s.substr(0, n));
77
    double r;
78
    iss >> r;
76
    std::string trailer = s.substr(n, std::string::npos);
79
    std::string trailer = s.substr(n, std::string::npos);
77
    if (trailer == std::string("s"))
80
    if (trailer == std::string("s"))
78
    {
81
    {
 Lines 113-119   TimeUnit<1>::TimeUnit(const std::string& Link Here 
113
  }
116
  }
114
  //else
117
  //else
115
  //they didn't provide units, assume seconds
118
  //they didn't provide units, assume seconds
116
  m_data = HighPrecision (atof(s.c_str()) * TimeStepPrecision::g_tsPrecFactor);
119
  std::istringstream iss;
120
  iss. str (s);
121
  double v;
122
  iss >> v;
123
  m_data = HighPrecision (v * TimeStepPrecision::g_tsPrecFactor);
117
}
124
}
118
125
119
double 
126
double 
(-)a/utils/bench-packets.cc (-1 / +4 lines)
 Lines 23-28    Link Here 
23
#include <iostream>
23
#include <iostream>
24
#include <sstream>
24
#include <sstream>
25
#include <string>
25
#include <string>
26
#include <stdlib.h>
26
27
27
using namespace ns3;
28
using namespace ns3;
28
29
 Lines 261-267   int main (int argc, char *argv[]) Link Here 
261
      if (strncmp ("--n=", argv[0],strlen ("--n=")) == 0) 
262
      if (strncmp ("--n=", argv[0],strlen ("--n=")) == 0) 
262
        {
263
        {
263
          char const *nAscii = argv[0] + strlen ("--n=");
264
          char const *nAscii = argv[0] + strlen ("--n=");
264
          n = atoi (nAscii);
265
          std::istringstream iss;
266
          iss.str (nAscii);
267
          iss >> n;
265
        }
268
        }
266
      argc--;
269
      argc--;
267
      argv++;
270
      argv++;
(-)a/utils/bench-simulator.cc (+1 lines)
 Lines 23-28    Link Here 
23
#include <iostream>
23
#include <iostream>
24
#include <fstream>
24
#include <fstream>
25
#include <vector>
25
#include <vector>
26
#include <string.h>
26
27
27
using namespace ns3;
28
using namespace ns3;
28
29
(-)a/utils/replay-simulation.cc (+1 lines)
 Lines 24-29    Link Here 
24
#include <deque>
24
#include <deque>
25
#include <fstream>
25
#include <fstream>
26
#include <iostream>
26
#include <iostream>
27
#include <string.h>
27
28
28
using namespace ns3;
29
using namespace ns3;
29
30

Return to bug 245