summaryrefslogtreecommitdiff
path: root/lib/GMPString.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/GMPString.cc')
-rw-r--r--lib/GMPString.cc60
1 files changed, 30 insertions, 30 deletions
diff --git a/lib/GMPString.cc b/lib/GMPString.cc
index be39e38..5fb76c8 100644
--- a/lib/GMPString.cc
+++ b/lib/GMPString.cc
@@ -1,30 +1,30 @@
-#ifdef HAVE_CONFIG_H
-#include "config.h"
-#endif
-#ifdef HAVE_GMP
-#include <gmpxx.h>
-#include "GMPString.h"
-
-GMPString::GMPString(const GMPString & s) : str(s.str) {
-}
-
-GMPString::GMPString(const mpz_class & z) {
- gmp_asprintf(&str, "%Zd", z.get_mpz_t());
-}
-
-GMPString::GMPString(const mpq_class & q) {
- gmp_asprintf(&str, "%Qd", q.get_mpq_t());
-}
-
-GMPString::GMPString(const mpf_class & f) {
- gmp_asprintf(&str, "%Ff", f.get_mpf_t());
-}
-
-GMPString::operator String() const {
- return String(str);
-}
-
-GMPString::~GMPString() {
-}
-
-#endif
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+#ifdef HAVE_GMP
+#include <gmpxx.h>
+#include "GMPString.h"
+
+GMPString::GMPString(const GMPString & s) : str(s.str) {
+}
+
+GMPString::GMPString(const mpz_class & z) {
+ gmp_asprintf(&str, "%Zd", z.get_mpz_t());
+}
+
+GMPString::GMPString(const mpq_class & q) {
+ gmp_asprintf(&str, "%Qd", q.get_mpq_t());
+}
+
+GMPString::GMPString(const mpf_class & f) {
+ gmp_asprintf(&str, "%Ff", f.get_mpf_t());
+}
+
+GMPString::operator String() const {
+ return String(str);
+}
+
+GMPString::~GMPString() {
+}
+
+#endif