All pastes #1191694 Raw Edit

Diff

public text v1 · immutable
#1191694 ·published 2008-09-02 17:42 UTC
rendered paste body
diff -r 1f5d9b97a1a2 bindings/python/wscript--- a/bindings/python/wscript	Tue Sep 02 17:32:19 2008 +0100+++ b/bindings/python/wscript	Tue Sep 02 18:42:05 2008 +0100@@ -206,6 +206,37 @@      header_files.sort(sort_func) +    print >> outfile, """+#define _STDINT_H	1+#define	_SYS_TYPES_H	1+"""+    type_mappings = ['uint64_t', 'uint32_t', 'uint16_t', 'uint8_t',+                     'int64_t', 'int32_t', 'int16_t', 'int8_t']+    for typename in type_mappings:+        print >> outfile, """+struct %(TYPE)s+{+  %(TYPE)s &operator++ ();+  %(TYPE)s &operator-- ();+  %(TYPE)s operator++ (int);+  %(TYPE)s operator-- (int);+};++bool operator == (const  %(TYPE)s &lhs, const %(TYPE)s &rhs);+bool operator == (const  %(TYPE)s &lhs, const int &rhs);+bool operator != (const %(TYPE)s &lhs, const %(TYPE)s &rhs);+bool operator != (const %(TYPE)s &lhs, const int &rhs);+bool operator <= (const %(TYPE)s &lhs, const %(TYPE)s &rhs);+bool operator <= (const %(TYPE)s &lhs, const int &rhs);+bool operator < (const %(TYPE)s &lhs, const %(TYPE)s &rhs);+bool operator < (const %(TYPE)s &lhs, const int &rhs);+bool operator >= (const %(TYPE)s &lhs, const %(TYPE)s &rhs);+bool operator >= (const %(TYPE)s &lhs, const int &rhs);+bool operator > (const %(TYPE)s &lhs, const %(TYPE)s &rhs);+bool operator > (const %(TYPE)s &lhs, const int &rhs);++""" % dict(TYPE=typename)+     for header in header_files:         print >> outfile, "#include \"ns3/%s\"" % (header,)