[Gmp-commit] /var/hg/gmp: Comment out long double function declarations. Half...

mercurial at gmplib.org mercurial at gmplib.org
Sat Feb 18 14:12:19 CET 2012


details:   /var/hg/gmp/rev/65e411ed6ca0
changeset: 14642:65e411ed6ca0
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Sat Feb 18 14:11:51 2012 +0100
description:
Comment out long double function declarations. Half of them were already commented out, and the other half had declarations but no definitions.

diffstat:

 ChangeLog |  2 ++
 gmpxx.h   |  6 +++---
 2 files changed, 5 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r 4e059a4847ec -r 65e411ed6ca0 ChangeLog
--- a/ChangeLog	Sat Feb 18 13:22:19 2012 +0100
+++ b/ChangeLog	Sat Feb 18 14:11:51 2012 +0100
@@ -3,6 +3,8 @@
 	* gmpxx.h (std::common_type): New partial specialization in C++11.
 	* tests/cxx/t-cxx11.cc: Test it.
 
+	* gmpxx.h: Don't declare long double functions that are never defined.
+
 2012-02-17  Marc Glisse  <marc.glisse at inria.fr>
 
 	* gmp-h.in (__GMP_WITHIN_GMP): Test with #ifdef instead of #if, for
diff -r 4e059a4847ec -r 65e411ed6ca0 gmpxx.h
--- a/gmpxx.h	Sat Feb 18 13:22:19 2012 +0100
+++ b/gmpxx.h	Sat Feb 18 14:11:51 2012 +0100
@@ -1406,7 +1406,7 @@
   __gmp_expr & fun(unsigned long int);        \
   __gmp_expr & fun(float);                    \
   __gmp_expr & fun(double);                   \
-  __gmp_expr & fun(long double);
+  /* __gmp_expr & fun(long double); */
 
 #define __GMP_DECLARE_COMPOUND_OPERATOR(fun) \
 __GMPP_DECLARE_COMPOUND_OPERATOR(fun)        \
@@ -2832,7 +2832,7 @@
 __GMPNU_DEFINE_BINARY_FUNCTION(fun, eval_fun, unsigned long int)  \
 __GMPND_DEFINE_BINARY_FUNCTION(fun, eval_fun, float)              \
 __GMPND_DEFINE_BINARY_FUNCTION(fun, eval_fun, double)             \
-__GMPNLD_DEFINE_BINARY_FUNCTION(fun, eval_fun, long double)
+/* __GMPNLD_DEFINE_BINARY_FUNCTION(fun, eval_fun, long double) */
 
 #define __GMP_DEFINE_BINARY_FUNCTION(fun, eval_fun) \
 __GMPP_DEFINE_BINARY_FUNCTION(fun, eval_fun)        \
@@ -2905,7 +2905,7 @@
 __GMPNU_DEFINE_BINARY_TYPE_FUNCTION(type, fun, eval_fun, unsigned long int)  \
 __GMPND_DEFINE_BINARY_TYPE_FUNCTION(type, fun, eval_fun, float)              \
 __GMPND_DEFINE_BINARY_TYPE_FUNCTION(type, fun, eval_fun, double)             \
-__GMPNLD_DEFINE_BINARY_TYPE_FUNCTION(type, fun, eval_fun, long double)
+/* __GMPNLD_DEFINE_BINARY_TYPE_FUNCTION(type, fun, eval_fun, long double) */
 
 #define __GMP_DEFINE_BINARY_TYPE_FUNCTION(type, fun, eval_fun) \
 __GMPP_DEFINE_BINARY_TYPE_FUNCTION(type, fun, eval_fun)        \


More information about the gmp-commit mailing list