This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Fix tgmath.h


Hi!

We have too many opening parens (resp. too few closing ones, your decision)
which is a bad thing.
Maybe we should cook up some test which will include tgmath.h and use all
functions declared there just to make sure it can be compiled.

2001-01-25  Jakub Jelinek  <jakub@redhat.com>

	* math/tgmath.h (__TGMATH_UNARY_REAL_IMAG,
	__TGMATH_BINARY_REAL_IMAG): Remove extraneous left parenthesis.

--- libc/math/tgmath.h.jj	Tue Aug 22 10:12:56 2000
+++ libc/math/tgmath.h	Thu Jan 25 16:53:33 2001
@@ -136,8 +136,8 @@
 			     __tgmres = Cfct##l (Val);			      \
 			 }						      \
 		       else if (sizeof (__real__ (Val)) == sizeof (double)    \
-				|| (__builtin_classify_type (__real__ (Val))  \
-				    != 8)				      \
+				|| __builtin_classify_type (__real__ (Val))   \
+				   != 8)				      \
 			 {						      \
 			   if (sizeof (__real__ (Val)) == sizeof (Val))	      \
 			     __tgmres = Fct (Val);			      \
@@ -182,8 +182,8 @@
 			 }						      \
 		       else if (sizeof (__real__ (Val1)) == sizeof (double)   \
 				|| sizeof (__real__ (Val2)) == sizeof(double) \
-				|| (__builtin_classify_type (__real__ (Val))  \
-				    != 8)				      \
+				|| __builtin_classify_type (__real__ (Val))   \
+				   != 8)				      \
 			 {						      \
 			   if (sizeof (__real__ (Val1)) == sizeof (Val1)      \
 			       && sizeof (__real__ (Val2)) == sizeof (Val2))  \

	Jakub

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]