[PATCH] C99 initializers for iconv/gconv_conf.c
Art Haas
ahaas@airmail.net
Sun Dec 15 17:10:00 GMT 2002
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
More information about the Libc-alpha
mailing list