about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-12-16 02:05:36 +0000
committerRoland McGrath <roland@gnu.org>2002-12-16 02:05:36 +0000
commit0274d73c41a807eeb10866f5211d727a5bc51b5c (patch)
tree4bbb9afc7877cf8d7a2de52036233d557485c422 /sysdeps
parentc2e131128be262e38f086465f3561c2faeaaef78 (diff)
downloadglibc-0274d73c41a807eeb10866f5211d727a5bc51b5c.tar.gz
glibc-0274d73c41a807eeb10866f5211d727a5bc51b5c.tar.xz
glibc-0274d73c41a807eeb10866f5211d727a5bc51b5c.zip
* iconv/gconv_conf.c: Convert GCC extension initializer syntax to C99.
	* iconvdata/gap.awk: Likewise.
	* iconvdata/gen-8bit-gap-1.sh: Likewise.
	* iconvdata/gen-8bit-gap.sh: Likewise.
	* locale/C-address.c: Likewise.
	* locale/C-collate.c: Likewise.
	* locale/C-ctype.c: Likewise.
	* locale/C-identification.c: Likewise.
	* locale/C-measurement.c: Likewise.
	* locale/C-messages.c: Likewise.
	* locale/C-monetary.c: Likewise.
	* locale/C-name.c: Likewise.
	* locale/C-numeric.c: Likewise.
	* locale/C-paper.c: Likewise.
	* locale/C-telephone.c: Likewise.
	* locale/C-time.c: Likewise.
	* nscd/connections.c: Likewise.
	* nscd/grpcache.c: Likewise.
	* nscd/hstcache.c: Likewise.
	* nscd/pwdcache.c: Likewise.
	* stdio-common/vfprintf.c: Likewise.
	* stdlib/random.c: Likewise.
	* sysdeps/generic/siglist.c: Likewise.
	* sysdeps/i386/fpu/bits/mathinline.h: Likewise.
	* sysdeps/ieee754/bits/nan.h: Likewise.
	* sysdeps/posix/sprofil.c: Likewise.
	* sysdeps/unix/sysv/linux/sleep.c: Likewise.
	* sysdeps/unix/sysv/linux/sysctl.c: Likewise.
	* sysdeps/unix/sysv/linux/usleep.c: Likewise.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/siglist.c4
-rw-r--r--sysdeps/i386/fpu/bits/mathinline.h10
-rw-r--r--sysdeps/ieee754/bits/nan.h2
-rw-r--r--sysdeps/posix/sprofil.c12
-rw-r--r--sysdeps/unix/sysv/linux/sleep.c2
-rw-r--r--sysdeps/unix/sysv/linux/sysctl.c12
-rw-r--r--sysdeps/unix/sysv/linux/usleep.c4
7 files changed, 23 insertions, 23 deletions
diff --git a/sysdeps/generic/siglist.c b/sysdeps/generic/siglist.c
index b7b48a786b..80847cd491 100644
--- a/sysdeps/generic/siglist.c
+++ b/sysdeps/generic/siglist.c
@@ -23,7 +23,7 @@
 
 const char *const _sys_siglist[NSIG] =
 {
-#define init_sig(sig, abbrev, desc)   [sig] desc,
+#define init_sig(sig, abbrev, desc)   [sig] = desc,
 #include <siglist.h>
 #undef init_sig
 };
@@ -32,7 +32,7 @@ strong_alias (_sys_siglist, _sys_siglist_internal)
 
 const char *const _sys_sigabbrev[NSIG] =
 {
-#define init_sig(sig, abbrev, desc)   [sig] abbrev,
+#define init_sig(sig, abbrev, desc)   [sig] = abbrev,
 #include <siglist.h>
 #undef init_sig
 };
diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h
index e8091df684..88a8f77aa1 100644
--- a/sysdeps/i386/fpu/bits/mathinline.h
+++ b/sysdeps/i386/fpu/bits/mathinline.h
@@ -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_mathop_declNP (atan, "fld1; fpatan", "0" (__x) : "st(1)")
 
 __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 @@ __MATH_INLINE int
 __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));
 }
 
diff --git a/sysdeps/ieee754/bits/nan.h b/sysdeps/ieee754/bits/nan.h
index 6d88b551b1..251b14de0b 100644
--- a/sysdeps/ieee754/bits/nan.h
+++ b/sysdeps/ieee754/bits/nan.h
@@ -29,7 +29,7 @@
 # define NAN \
   (__extension__                                                            \
    ((union { unsigned __l __attribute__((__mode__(__SI__))); float __d; })  \
-    { __l: 0x7fc00000UL }).__d)
+    { .__l = 0x7fc00000UL }).__d)
 
 #else
 
diff --git a/sysdeps/posix/sprofil.c b/sysdeps/posix/sprofil.c
index 8f3270e1fc..afb6d2f84e 100644
--- a/sysdeps/posix/sprofil.c
+++ b/sysdeps/posix/sprofil.c
@@ -61,12 +61,12 @@ static unsigned int overflow_counter;
 
 static struct region default_overflow_region =
   {
-    offset:	0,
-    nsamples:	1,
-    scale:	2,
-    sample:	{ &overflow_counter },
-    start:	0,
-    end:	~(size_t) 0
+    .offset	= 0,
+    .nsamples	= 1,
+    .scale	= 2,
+    .sample	= { &overflow_counter },
+    .start	= 0,
+    .end	= ~(size_t) 0
   };
 
 static struct prof_info prof_info;
diff --git a/sysdeps/unix/sysv/linux/sleep.c b/sysdeps/unix/sysv/linux/sleep.c
index b73032263b..0cf6be285d 100644
--- a/sysdeps/unix/sysv/linux/sleep.c
+++ b/sysdeps/unix/sysv/linux/sleep.c
@@ -29,7 +29,7 @@
 unsigned int
 __sleep (unsigned int seconds)
 {
-  struct timespec ts = { tv_sec: (long int) seconds, tv_nsec: 0 };
+  struct timespec ts = { .tv_sec = (long int) seconds, .tv_nsec = 0 };
   sigset_t set, oset;
   unsigned int result;
 
diff --git a/sysdeps/unix/sysv/linux/sysctl.c b/sysdeps/unix/sysv/linux/sysctl.c
index c31eaaebcf..ee5b30a7b0 100644
--- a/sysdeps/unix/sysv/linux/sysctl.c
+++ b/sysdeps/unix/sysv/linux/sysctl.c
@@ -33,12 +33,12 @@ __sysctl (int *name, int nlen, void *oldval, size_t *oldlenp,
   /* GKM FIXME: force __sysctl_args decl to have unbounded pointers.  */
   struct __sysctl_args args =
   {
-    name: name,
-    nlen: nlen,
-    oldval: oldval,
-    oldlenp: oldlenp,
-    newval: newval,
-    newlen: newlen
+    .name = name,
+    .nlen = nlen,
+    .oldval = oldval,
+    .oldlenp = oldlenp,
+    .newval = newval,
+    .newlen = newlen
   };
   (void) CHECK_N (name, nlen);
   (void) CHECK_N (oldval, *oldlenp);
diff --git a/sysdeps/unix/sysv/linux/usleep.c b/sysdeps/unix/sysv/linux/usleep.c
index 1aae404098..643429eade 100644
--- a/sysdeps/unix/sysv/linux/usleep.c
+++ b/sysdeps/unix/sysv/linux/usleep.c
@@ -24,8 +24,8 @@
 int
 usleep (useconds_t useconds)
 {
-  struct timespec ts = { tv_sec: (long int) (useconds / 1000000),
-			 tv_nsec: (long int) (useconds % 1000000) * 1000ul };
+  struct timespec ts = { .tv_sec = (long int) (useconds / 1000000),
+			 .tv_nsec = (long int) (useconds % 1000000) * 1000ul };
 
   return __nanosleep (&ts, NULL);
 }