early work to make python bindings work again with ns-3-time

This commit is contained in:
Mathieu Lacage
2011-04-13 09:08:05 +02:00
parent 3dac7a431e
commit 7ff702d6b1
6 changed files with 8 additions and 10 deletions

View File

@@ -303,7 +303,7 @@ def ns3_module_scan(top_builddir, pygen_file_name, everything_h, cflags):
#'NS3_ASSERT_ENABLE': None,
#'NS3_LOG_ENABLE': None,
},
cflags=('--gccxml-cxxflags %r' % (cflags,))
cflags=('--gccxml-cxxflags %r %s' % (cflags,'-DPYTHON_SCAN'))
)
module_parser.parse_init([everything_h],

View File

@@ -419,12 +419,6 @@ __dummy_function_to_force_template_instantiation_v2 ()
Time t1, t2, t3;
t1 = t2 + t3;
t1 = t2 - t3;
TimeSquare tsq = t2*t3;
Time tsqdiv = tsq/Seconds(1);
Scalar scal = t2/t3;
TimeInvert inv = scal/t3;
t1 = scal*t1;
t1 = t1/scal;
t1 < t2;
t1 <= t2;
t1 == t2;

View File

@@ -1,4 +1,5 @@
#ifndef INT64X64_128_H
#include "ns3/core-config.h"
#if !defined(INT64X64_128_H) && defined (INT64X64_USE_128) && !defined(PYTHON_SCAN)
#define INT64X64_128_H
#include "ns3/core-config.h"

View File

@@ -1,4 +1,5 @@
#ifndef INT64X64_CAIRO_H
#include "ns3/core-config.h"
#if !defined(INT64X64_CAIRO_H) && defined (INT64X64_USE_CAIRO) && !defined(PYTHON_SCAN)
#define INT64X64_CAIRO_H
#include <stdint.h>

View File

@@ -1,4 +1,5 @@
#ifndef INT64X64_DOUBLE_H
#include "ns3/core-config.h"
#if !defined(INT64X64_DOUBLE_H) && (defined (INT64X64_USE_DOUBLE) || defined(PYTHON_SCAN))
#define INT64X64_DOUBLE_H
#include <iostream>

View File

@@ -211,6 +211,7 @@ def build(bld):
'model/attribute-accessor-helper.h',
'model/boolean.h',
'model/int64x64.h',
'model/int64x64-double.h',
'model/integer.h',
'model/uinteger.h',
'model/double.h',