This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] C99 initializers for iconv/gconv_conf.c
- From: Art Haas <ahaas at airmail dot net>
- To: libc-alpha at sources dot redhat dot com
- Date: Sun, 15 Dec 2002 19:10:34 -0600
- Subject: [PATCH] C99 initializers for iconv/gconv_conf.c
Hi.
As sending more of the C99 conversion patches seems to be welcomed, here
is the first of several patches I'll be sending. This patch fixes the
file iconv/gconv_conf.c.
2002-12-15 Art Haas <ahaas@airmail.net>
* iconv/gconv_conf.c: C99 initializer conversion
Index: iconv/gconv_conf.c
===================================================================
RCS file: /cvs/glibc/libc/iconv/gconv_conf.c,v
retrieving revision 1.43
diff -u -r1.43 gconv_conf.c
--- iconv/gconv_conf.c 2 Dec 2002 21:46:44 -0000 1.43
+++ iconv/gconv_conf.c 16 Dec 2002 01:07:00 -0000
@@ -64,11 +64,11 @@
#define BUILTIN_TRANSFORMATION(From, To, Cost, Name, Fct, BtowcFct, \
MinF, MaxF, MinT, MaxT) \
{ \
- from_string: From, \
- to_string: To, \
- cost_hi: Cost, \
- cost_lo: INT_MAX, \
- module_name: Name \
+ .from_string = From, \
+ .to_string = To, \
+ .cost_hi = Cost, \
+ .cost_lo = INT_MAX, \
+ .module_name = Name \
},
#define BUILTIN_ALIAS(From, To)
--
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