summaryrefslogtreecommitdiff
path: root/src/py_amount.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-10-31 04:50:29 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-10-31 04:50:29 -0400
commit423d674c6bec05a9d1be36b5a5125007bfbbbeef (patch)
treeb8d85010bae44f1f4c7020d68e8b840b81da354f /src/py_amount.cc
parent97a9b42b2c5ef908e0c47ecfd39771a79f8fa8a2 (diff)
parent3909d2678ede154f9a7fe19617973d4daa173c47 (diff)
downloadfork-ledger-423d674c6bec05a9d1be36b5a5125007bfbbbeef.tar.gz
fork-ledger-423d674c6bec05a9d1be36b5a5125007bfbbbeef.tar.bz2
fork-ledger-423d674c6bec05a9d1be36b5a5125007bfbbbeef.zip
Merge branch 'next'
Diffstat (limited to 'src/py_amount.cc')
-rw-r--r--src/py_amount.cc58
1 files changed, 0 insertions, 58 deletions
diff --git a/src/py_amount.cc b/src/py_amount.cc
index 68fd8698..7fe12674 100644
--- a/src/py_amount.cc
+++ b/src/py_amount.cc
@@ -119,9 +119,6 @@ void export_amount()
make_getter(&amount_t::stream_fullstrings),
make_setter(&amount_t::stream_fullstrings))
-#if 0
- .def(init<double>())
-#endif
.def(init<long>())
.def(init<std::string>())
@@ -137,108 +134,56 @@ internal precision."))
.def(self == self)
.def(self == long())
.def(long() == self)
-#if 0
- .def(self == double())
- .def(double() == self)
-#endif
.def(self != self)
.def(self != long())
.def(long() != self)
-#if 0
- .def(self != double())
- .def(double() != self)
-#endif
.def(! self)
.def(self < self)
.def(self < long())
.def(long() < self)
-#if 0
- .def(self < double())
- .def(double() < self)
-#endif
.def(self <= self)
.def(self <= long())
.def(long() <= self)
-#if 0
- .def(self <= double())
- .def(double() <= self)
-#endif
.def(self > self)
.def(self > long())
.def(long() > self)
-#if 0
- .def(self > double())
- .def(double() > self)
-#endif
.def(self >= self)
.def(self >= long())
.def(long() >= self)
-#if 0
- .def(self >= double())
- .def(double() >= self)
-#endif
.def(self += self)
.def(self += long())
-#if 0
- .def(self += double())
-#endif
.def(self + self)
.def(self + long())
.def(long() + self)
-#if 0
- .def(self + double())
- .def(double() + self)
-#endif
.def(self -= self)
.def(self -= long())
-#if 0
- .def(self -= double())
-#endif
.def(self - self)
.def(self - long())
.def(long() - self)
-#if 0
- .def(self - double())
- .def(double() - self)
-#endif
.def(self *= self)
.def(self *= long())
-#if 0
- .def(self *= double())
-#endif
.def(self * self)
.def(self * long())
.def(long() * self)
-#if 0
- .def(self * double())
- .def(double() * self)
-#endif
.def(self /= self)
.def(self /= long())
-#if 0
- .def(self /= double())
-#endif
.def(self / self)
.def(self / long())
.def(long() / self)
-#if 0
- .def(self / double())
- .def(double() / self)
-#endif
.def("precision", &amount_t::precision)
@@ -326,9 +271,6 @@ internal precision."))
register_optional_to_python<amount_t>();
-#if 0
- implicitly_convertible<double, amount_t>();
-#endif
implicitly_convertible<long, amount_t>();
implicitly_convertible<string, amount_t>();