Commit Graph

1158 Commits

Author SHA1 Message Date
Tommaso Pecorella
fb985d0860 Show default attibute value in command line example - fix 2014-08-18 23:45:04 +02:00
Peter D. Barnes, Jr.
97f06df836 Show initial values of arguments; show attribute value. 2014-08-18 12:36:07 -07:00
Peter D. Barnes, Jr.
06fe039cd9 Fix misspelled argument name; refactor to use LookupAttributeByName 2014-08-18 12:35:33 -07:00
Tommaso Pecorella
27e7935c6c [PyBindGen] Rescan core module 2014-08-15 14:27:15 +02:00
Peter D. Barnes, Jr.
b8b676a8d7 CommandLine Attribute shorthand 2014-08-14 12:46:11 -07:00
Peter D. Barnes, Jr.
fa19c3d5e3 [doxygen] CommandLine formatting 2014-08-14 12:41:38 -07:00
Peter D. Barnes, Jr.
60505541ec Sort output of the CommandLine::Print functions 2014-08-14 11:31:12 -07:00
Peter D. Barnes, Jr.
49bf6a544f [Doxygen] Fix errors; fix organization of Callback; organize Time. 2014-08-13 17:17:26 -07:00
Peter D. Barnes, Jr.
e4f944939c NS_LOG_CONDITION to control logging based on file-local state. 2014-07-17 15:34:57 -07:00
Tom Henderson
70f3450c5e update bindings 2014-05-30 10:07:22 -07:00
Peter D. Barnes, Jr.
1164685c68 [doxygen] Fix generation of Time docs 2014-05-15 16:09:51 -07:00
Mitch Watrous
d7bd267c7e Bug 1717 - Detect unsettable attributes 2014-04-29 22:38:13 +02:00
Tom Henderson
af31d858d2 add missing include 2014-04-24 17:38:36 -07:00
Tommaso Pecorella
1abd142de9 [Python bindings] rescan core module 2014-04-05 07:53:58 +02:00
Peter D. Barnes, Jr.
45530120f2 Simplify output of Times in a specific unit; see Time::As () 2014-04-02 18:47:04 -07:00
Andrey Mazo
210aefc777 Bug 1170: Formulate best practices for dealing with unused debug variables.
Fixed clang-3.4 unused function warnings in optimized builds like the following:
"""
../examples/energy/energy-model-example.cc:39:1: error: unused function
'PrintReceivedPacket' [-Werror,-Wunused-function]
PrintReceivedPacket (Address& from)
^
1 error generated.
"""

Implemented "if (false)" trick inside NS_LOG* macros for optimized builds.

"sizeof()" trick might be a little better but it produces the following
warning with clang-3.4:
"""
../examples/energy/energy-model-example.cc:39:1: error: function
'PrintReceivedPacket' is not needed and will not be emitted
[-Werror,-Wunneeded-internal-declaration]
PrintReceivedPacket (Address& from)
^
1 error generated.
"""


Macros from log.h, that depend on NS3_LOG_ENABLE, were moved to log-macros-enabled.h and log-macros-disabled.h to make log.h smaller.
2014-03-23 19:08:54 +04:00
Andrey Mazo
9afed6b932 make various implementation-specific tables static const.
This should prevent possible name collisions, clean up ns3 namespace a little
and allow compiler to place them in a sharable read-only data section.
Also make various global variables static not to pollute ns3 namespace and to
force use of Attribute framework where appropriate.
2014-03-26 14:51:14 +04:00
Andrey Mazo
be090649a2 mark private global variables as static in log.cc 2014-03-23 16:51:32 +04:00
mmiozzo
efccb54a60 Add back forgotten rng testsuite (attibution: Peter Barnes noticed it) 2014-03-20 23:37:16 +01:00
Peter D. Barnes, Jr.
72cea610f0 [Bug 1882] int64x64 tests trigger valgrind bug 2014-03-14 15:31:15 -07:00
Peter D. Barnes, Jr.
a274c8ea37 [doxygen] Make introspected lists more visible, various other doxy 2014-03-10 10:57:50 -07:00
Peter D. Barnes, Jr.
cd3da7143d [doxygen] Revert r10410, r10411, r10412 2014-03-05 17:06:59 -08:00
Peter D. Barnes, Jr.
104ff32b23 [doxygen] Stop warnings from NS_LOG_COMPONENT_DEFINE and NS_OBJECT_ENSURE_REGISTERED 2014-03-05 16:55:49 -08:00
Peter D. Barnes, Jr.
f647edb0e5 [Bug 1856] Remove duplicate definition 2014-03-03 21:49:54 -08:00
Gustavo Carneiro
ff3054b592 Fixes to support Python >= 3.3 in ns3 python bindings 2014-03-02 23:48:27 +00:00
Peter D. Barnes, Jr.
b43ee31622 [Bug 1856] int64x64_t double conversions 2014-03-02 01:02:23 -08:00
Tom Henderson
727fa3f326 bindings rescan (another try) 2014-02-23 13:49:13 -08:00
Tom Henderson
0ba37f72a9 rescan bindings 2014-02-23 11:40:20 -08:00
Tommaso Pecorella
b24df55aa8 [Python Bindings] rescan bindings 2014-02-23 08:45:57 +01:00
Peter D. Barnes, Jr.
3ec3b6a878 [Bug 1862] NS_LOG="Time=*|prefix_time" causes stack overflow 2014-02-21 16:27:43 -08:00
Peter D. Barnes, Jr.
22e31f0c68 [Bug 1792] [Bug 1853] Remove inheritance from std::stream in ParameterLogger 2014-02-21 16:25:43 -08:00
Peter D. Barnes, Jr.
28ac4c7f40 [Bug 1653] Extension of CommandLine interface
Restore operator << (std::ostream, CommandLine) erroneously removed
in rev 10155.
2014-02-20 22:00:09 -08:00
Peter D. Barnes, Jr.
73ceda8109 [Bug 1852] Restore missing config header 2014-02-11 14:38:25 -08:00
Peter D. Barnes, Jr.
4a5acb6109 One waf to rule them all. 2014-02-07 17:00:28 -08:00
Peter D. Barnes, Jr.
eba6d81509 [Bug 1786] Fix undeclared identifiers cairo_impl64 and cairo_impl128 in int128 builds. 2014-02-05 10:58:19 -08:00
Peter D. Barnes, Jr.
1a54ac7031 [Bug 1786] Make cairo implementation type accessible. 2014-02-04 16:09:23 -08:00
Peter D. Barnes, Jr.
03fe7f5b3a Extend overeager signed comparison optimization to gcc-4.6 2014-02-04 09:38:42 -08:00
Peter D. Barnes, Jr.
e367628f60 [doxygen] Fix some minor doxygen errors. 2014-01-31 13:09:46 -08:00
Peter D. Barnes, Jr.
a6eea770e2 Fix overeager signed comparison optimization in gcc-4.4 2014-01-30 12:18:29 -08:00
Tommaso Pecorella
7ed263378e Fix int64x64 test (clang errors) 2014-01-30 18:23:54 +01:00
Peter D. Barnes, Jr.
8f6bcf630c [Bug 1786] Fix for os << (int64x64_t) and fractional arithmetic
Arithmetic with fractions was never tested and it had lots of bugs.
This patch set:

- Defines many more tests, giving complete coverage of all operations
  (signed/unsigned, integer, fractions, mixed)

- Replaces over-generous #define creation of functions with minimal
  set of C++ functions.

- Minimizes differences between implementations.

- Documents all functions.

int128 and cairo implementations agree exactly on all int64x64 tests,
and pass all ns-3 tests.

long double implementation agrees with the other two on most int64x64
tests; failures have to do with less precision in long doubles.
The prior double implementation failed five ns-3 tests:
	devices-mesh-dot11s-regression
	devices-mesh-flame-regression
	int64x64
	routing-aodv-regression
	routing-olsr-regression
This implementation fails routing-olsr-regression because of single
bit differences in the pcap files.
2014-01-29 19:09:35 -08:00
Peter D. Barnes, Jr.
f332b3cc2e Fix typos causing missing functions in cairo. 2014-01-29 17:47:09 -08:00
Peter D. Barnes, Jr.
0d2691af8b Enable minimal scaling and ratios with Time 2014-01-29 17:44:18 -08:00
Peter D. Barnes, Jr.
678da4f186 Mixing signed and unsigned types can lead to misleading results in NS_TEST macros. 2014-01-28 13:34:46 -08:00
Peter D. Barnes, Jr.
022f3ad024 Enable selection of high precision int64x64 implementation at configure time. 2014-01-28 12:51:47 -08:00
Peter D. Barnes, Jr.
3a447bbcc0 Enable tests to get the name of the parent suite. 2014-01-23 11:45:36 -08:00
Peter D. Barnes, Jr.
f593f652a1 [Bug 1786] os << int64x64_t prints un-normalized fractional values 2014-01-10 17:24:06 -08:00
Peter D. Barnes, Jr.
472839ca28 Make Time printer ignore stream flags. 2014-01-10 17:22:45 -08:00
Peter D. Barnes, Jr.
27967f1c68 Test failure should show condition, actual value, *and* expected (limit) value. 2014-01-10 17:21:54 -08:00
Vedran Miletić
6acf41814e Move tests outside ns3 namespace 2014-01-02 18:34:30 +01:00