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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] C99 initializers for sysdeps/i386/fpu/bits/mathinline.h


Hi.

This patch converts this file to C99 initializers.

2002-12-15  Art Haas <ahaas@airmail.net>

	* sysdeps/i386/fpu/bits/mathinline.h: Convert to C99
	initializers.

Index: sysdeps/i386/fpu/bits/mathinline.h
===================================================================
RCS file: /cvs/glibc/libc/sysdeps/i386/fpu/bits/mathinline.h,v
retrieving revision 1.48
diff -u -r1.48 mathinline.h
--- sysdeps/i386/fpu/bits/mathinline.h	6 Jul 2001 04:55:53 -0000	1.48
+++ sysdeps/i386/fpu/bits/mathinline.h	16 Dec 2002 01:29:58 -0000
@@ -127,19 +127,19 @@
 __MATH_INLINE int
 __signbitf (float __x) __THROW
 {
-  __extension__ union { float __f; int __i; } __u = { __f: __x };
+  __extension__ union { float __f; int __i; } __u = { .__f = __x };
   return __u.__i < 0;
 }
 __MATH_INLINE int
 __signbit (double __x) __THROW
 {
-  __extension__ union { double __d; int __i[2]; } __u = { __d: __x };
+  __extension__ union { double __d; int __i[2]; } __u = { .__d = __x };
   return __u.__i[1] < 0;
 }
 __MATH_INLINE int
 __signbitl (long double __x) __THROW
 {
-  __extension__ union { long double __l; int __i[3]; } __u = { __l: __x };
+  __extension__ union { long double __l; int __i[3]; } __u = { .__l = __x };
   return (__u.__i[2] & 0x8000) != 0;
 }
 # endif
@@ -467,7 +467,7 @@
 
 __inline_mathcode_ (long double, __sgn1l, __x, \
   __extension__ union { long double __xld; unsigned int __xi[3]; } __n =      \
-    { __xld: __x };							      \
+    { .__xld = __x };							      \
   __n.__xi[2] = (__n.__xi[2] & 0x8000) | 0x3fff;			      \
   __n.__xi[1] = 0x80000000;						      \
   __n.__xi[0] = 0;							      \
@@ -666,7 +666,7 @@
 __finite (double __x) __THROW
 {
   return (__extension__
-	  (((((union { double __d; int __i[2]; }) {__d: __x}).__i[1]
+	  (((((union { double __d; int __i[2]; }) {.__d = __x}).__i[1]
 	     | 0x800fffffu) + 1) >> 31));
 }
 
-- 
They that can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.
 -- Benjamin Franklin, Historical Review of Pennsylvania, 1759


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