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 locale/C-*.c files


Hi.

Here's a set of patches for locale/C-*.c files. The patches are all
against the current CVS.

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

	* locale/C-address.c: Convert to C99 initializers.
	* locale/C-collate.c: Same.
	* locale/C-ctype.c: Same.
	* locale/C-identification.c: Same.
	* locale/C-measurement.c: Same.
	* locale/C-messages.c: Same.
	* locale/C-monetary.c: Same.
	* locale/C-name.c: Same.
	* locale/C-numeric.c: Same.
	* locale/C-paper.c: Same.
	* locale/C-telephone.c: Same.
	* locale/C-time.c: Same. 

Index: locale/C-address.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-address.c,v
retrieving revision 1.7
diff -u -r1.7 C-address.c
--- locale/C-address.c	28 Aug 2002 23:11:04 -0000	1.7
+++ locale/C-address.c	16 Dec 2002 01:16:51 -0000
@@ -33,18 +33,18 @@
   0,
   13,
   {
-    { string: "%a%N%f%N%d%N%b%N%s %h %e %r%N%C-%z %T%N%c%N" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: _nl_C_codeset }
+    { .string = "%a%N%f%N%d%N%b%N%s %h %e %r%N%C-%z %T%N%c%N" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = _nl_C_codeset }
   }
 };
Index: locale/C-collate.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-collate.c,v
retrieving revision 1.27
diff -u -r1.27 C-collate.c
--- locale/C-collate.c	28 Aug 2002 23:11:04 -0000	1.27
+++ locale/C-collate.c	16 Dec 2002 01:16:52 -0000
@@ -108,42 +108,42 @@
   19,
   {
     /* _NL_COLLATE_NRULES */
-    { word: 0 },
+    { .word = 0 },
     /* _NL_COLLATE_RULESETS */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_TABLEMB */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_WEIGHTMB */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_EXTRAMB */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_INDIRECTMB */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_GAP1 */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_GAP2 */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_GAP3 */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_TABLEWC */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_WEIGHTWC */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_EXTRAWC */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_INDIRECTWC */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_SYMB_HASH_SIZEMB */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_SYMB_TABLEMB */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_SYMB_EXTRAMB */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_COLLATE_COLLSEQMB */
-    { string: collseqmb },
+    { .string = collseqmb },
     /* _NL_COLLATE_COLLSEQWC */
-    { string: (const char *) collseqwc },
+    { .string = (const char *) collseqwc },
     /* _NL_COLLATE_CODESET */
-    { string: _nl_C_codeset }
+    { .string = _nl_C_codeset }
   }
 };
Index: locale/C-ctype.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-ctype.c,v
retrieving revision 1.46
diff -u -r1.46 C-ctype.c
--- locale/C-ctype.c	28 Aug 2002 23:11:04 -0000	1.46
+++ locale/C-ctype.c	16 Dec 2002 01:16:54 -0000
@@ -548,27 +548,27 @@
   NR_FIXED + NR_CLASSES + NR_MAPS,
   {
     /* _NL_CTYPE_CLASS */
-    { string: _nl_C_LC_CTYPE_class },
+    { .string = _nl_C_LC_CTYPE_class },
     /* _NL_CTYPE_TOUPPER */
-    { string: (const char *) _nl_C_LC_CTYPE_toupper },
+    { .string = (const char *) _nl_C_LC_CTYPE_toupper },
     /* _NL_CTYPE_GAP1 */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_CTYPE_TOLOWER */
-    { string: (const char *) _nl_C_LC_CTYPE_tolower },
+    { .string = (const char *) _nl_C_LC_CTYPE_tolower },
     /* _NL_CTYPE_GAP2 */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_CTYPE_CLASS32 */
-    { string: _nl_C_LC_CTYPE_class32 },
+    { .string = _nl_C_LC_CTYPE_class32 },
     /* _NL_CTYPE_GAP3 */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_CTYPE_GAP4 */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_CTYPE_GAP5 */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_CTYPE_GAP6 */
-    { string: NULL },
+    { .string = NULL },
     /* _NL_CTYPE_CLASS_NAMES */
-    { string: "upper\0" "lower\0" "alpha\0" "digit\0" "xdigit\0" "space\0"
+    { .string = "upper\0" "lower\0" "alpha\0" "digit\0" "xdigit\0" "space\0"
 	      "print\0" "graph\0" "blank\0" "cntrl\0" "punct\0"  "alnum\0"
 #ifdef PREDEFINED_CLASSES
 	      "left_to_right\0" "right_to_left\0" "num_terminator\0"
@@ -580,106 +580,106 @@
 #endif
     },
     /* _NL_CTYPE_MAP_NAMES */
-    { string: "toupper\0" "tolower\0"
+    { .string = "toupper\0" "tolower\0"
 #ifdef PREDEFINED_CLASSES
       "tosymmetric\0"
 #endif
     },
     /* _NL_CTYPE_WIDTH */
-    { string: (const char *) _nl_C_LC_CTYPE_width.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_width.header },
     /* _NL_CTYPE_MB_CUR_MAX */
-    { word: 1 },
+    { .word = 1 },
     /* _NL_CTYPE_CODESET_NAME */
-    { string: _nl_C_codeset },
+    { .string = _nl_C_codeset },
     /* _NL_CTYPE_TOUPPER32 */
-    { string: (const char *) &_nl_C_LC_CTYPE_toupper[128] },
+    { .string = (const char *) &_nl_C_LC_CTYPE_toupper[128] },
     /* _NL_CTYPE_TOLOWER32 */
-    { string: (const char *) &_nl_C_LC_CTYPE_tolower[128] },
+    { .string = (const char *) &_nl_C_LC_CTYPE_tolower[128] },
     /* _NL_CTYPE_CLASS_OFFSET */
-    { word: NR_FIXED },
+    { .word = NR_FIXED },
     /* _NL_CTYPE_MAP_OFFSET */
-    { word: NR_FIXED + NR_CLASSES },
+    { .word = NR_FIXED + NR_CLASSES },
     /* _NL_CTYPE_INDIGITS_MB_LEN */
-    { word: 1 },
+    { .word = 1 },
     /* _NL_CTYPE_INDIGITS0_MB .. _NL_CTYPE_INDIGITS9_MB */
-    { string: "0" },
-    { string: "1" },
-    { string: "2" },
-    { string: "3" },
-    { string: "4" },
-    { string: "5" },
-    { string: "6" },
-    { string: "7" },
-    { string: "8" },
-    { string: "9" },
+    { .string = "0" },
+    { .string = "1" },
+    { .string = "2" },
+    { .string = "3" },
+    { .string = "4" },
+    { .string = "5" },
+    { .string = "6" },
+    { .string = "7" },
+    { .string = "8" },
+    { .string = "9" },
     /* _NL_CTYPE_INDIGITS_WC_LEN */
-    { word: 1 },
+    { .word = 1 },
     /* _NL_CTYPE_INDIGITS0_WC .. _NL_CTYPE_INDIGITS9_WC */
-    { wstr: (uint32_t *) L"0" },
-    { wstr: (uint32_t *) L"1" },
-    { wstr: (uint32_t *) L"2" },
-    { wstr: (uint32_t *) L"3" },
-    { wstr: (uint32_t *) L"4" },
-    { wstr: (uint32_t *) L"5" },
-    { wstr: (uint32_t *) L"6" },
-    { wstr: (uint32_t *) L"7" },
-    { wstr: (uint32_t *) L"8" },
-    { wstr: (uint32_t *) L"9" },
+    { .wstr = (uint32_t *) L"0" },
+    { .wstr = (uint32_t *) L"1" },
+    { .wstr = (uint32_t *) L"2" },
+    { .wstr = (uint32_t *) L"3" },
+    { .wstr = (uint32_t *) L"4" },
+    { .wstr = (uint32_t *) L"5" },
+    { .wstr = (uint32_t *) L"6" },
+    { .wstr = (uint32_t *) L"7" },
+    { .wstr = (uint32_t *) L"8" },
+    { .wstr = (uint32_t *) L"9" },
     /* _NL_CTYPE_OUTDIGIT0_MB .. _NL_CTYPE_OUTDIGIT9_MB */
-    { string: "0" },
-    { string: "1" },
-    { string: "2" },
-    { string: "3" },
-    { string: "4" },
-    { string: "5" },
-    { string: "6" },
-    { string: "7" },
-    { string: "8" },
-    { string: "9" },
+    { .string = "0" },
+    { .string = "1" },
+    { .string = "2" },
+    { .string = "3" },
+    { .string = "4" },
+    { .string = "5" },
+    { .string = "6" },
+    { .string = "7" },
+    { .string = "8" },
+    { .string = "9" },
     /* _NL_CTYPE_OUTDIGIT0_WC .. _NL_CTYPE_OUTDIGIT9_WC */
-    { word: L'0' },
-    { word: L'1' },
-    { word: L'2' },
-    { word: L'3' },
-    { word: L'4' },
-    { word: L'5' },
-    { word: L'6' },
-    { word: L'7' },
-    { word: L'8' },
-    { word: L'9' },
+    { .word = L'0' },
+    { .word = L'1' },
+    { .word = L'2' },
+    { .word = L'3' },
+    { .word = L'4' },
+    { .word = L'5' },
+    { .word = L'6' },
+    { .word = L'7' },
+    { .word = L'8' },
+    { .word = L'9' },
     /* _NL_CTYPE_TRANSLIT_TAB_SIZE */
-    { word: NTRANSLIT },
+    { .word = NTRANSLIT },
     /* _NL_CTYPE_TRANSLIT_FROM_IDX */
-    { wstr: translit_from_idx },
+    { .wstr = translit_from_idx },
     /* _NL_CTYPE_TRANSLIT_FROM_TBL */
-    { wstr: (uint32_t *) translit_from_tbl },
+    { .wstr = (uint32_t *) translit_from_tbl },
     /* _NL_CTYPE_TRANSLIT_TO_IDX */
-    { wstr: translit_to_idx },
+    { .wstr = translit_to_idx },
     /* _NL_CTYPE_TRANSLIT_TO_TBL */
-    { wstr: (uint32_t *) translit_to_tbl },
+    { .wstr = (uint32_t *) translit_to_tbl },
     /* _NL_CTYPE_TRANSLIT_DEFAULT_MISSING_LEN */
-    { word: 1 },
+    { .word = 1 },
     /* _NL_CTYPE_TRANSLIT_DEFAULT_MISSING */
-    { wstr: (uint32_t *) L"?" },
+    { .wstr = (uint32_t *) L"?" },
     /* _NL_CTYPE_TRANSLIT_IGNORE_LEN */
-    { word: 0 },
+    { .word = 0 },
     /* _NL_CTYPE_TRANSLIT_IGNORE */
-    { wstr: NULL },
+    { .wstr = NULL },
     /* NR_CLASSES wctype_tables */
-    { string: (const char *) _nl_C_LC_CTYPE_class_upper.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_lower.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_alpha.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_digit.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_xdigit.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_space.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_print.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_graph.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_blank.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_cntrl.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_punct.header },
-    { string: (const char *) _nl_C_LC_CTYPE_class_alnum.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_upper.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_lower.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_alpha.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_digit.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_xdigit.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_space.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_print.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_graph.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_blank.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_cntrl.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_punct.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_class_alnum.header },
     /* NR_MAPS wctrans_tables */
-    { string: (const char *) _nl_C_LC_CTYPE_map_toupper.header },
-    { string: (const char *) _nl_C_LC_CTYPE_map_tolower.header }
+    { .string = (const char *) _nl_C_LC_CTYPE_map_toupper.header },
+    { .string = (const char *) _nl_C_LC_CTYPE_map_tolower.header }
   }
 };
Index: locale/C-identification.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-identification.c,v
retrieving revision 1.7
diff -u -r1.7 C-identification.c
--- locale/C-identification.c	28 Aug 2002 23:11:04 -0000	1.7
+++ locale/C-identification.c	16 Dec 2002 01:16:54 -0000
@@ -33,25 +33,25 @@
   0,
   16,
   {
-    { string: "ISO/IEC 14652 i18n FDCC-set" },
-    { string: "ISO/IEC JTC1/SC22/WG20 - internationalization" },
-    { string: "C/o Keld Simonsen, Skt. Jorgens Alle 8, DK-1615 Kobenhavn V" },
-    { string: "Keld Simonsen" },
-    { string: "keld@dkuug.dk" },
-    { string: "+45 3122-6543" },
-    { string: "+45 3325-6543" },
-    { string: "" },
-    { string: "ISO" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "1.0" },
-    { string: "1997-12-20" },
-    { string: "i18n:1999\0" "i18n:1999\0" "i18n:1999\0" "i18n:1999\0"
+    { .string = "ISO/IEC 14652 i18n FDCC-set" },
+    { .string = "ISO/IEC JTC1/SC22/WG20 - internationalization" },
+    { .string = "C/o Keld Simonsen, Skt. Jorgens Alle 8, DK-1615 Kobenhavn V" },
+    { .string = "Keld Simonsen" },
+    { .string = "keld@dkuug.dk" },
+    { .string = "+45 3122-6543" },
+    { .string = "+45 3325-6543" },
+    { .string = "" },
+    { .string = "ISO" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "1.0" },
+    { .string = "1997-12-20" },
+    { .string = "i18n:1999\0" "i18n:1999\0" "i18n:1999\0" "i18n:1999\0"
 	      "i18n:1999\0" "i18n:1999\0" "\0"          "i18n:1999\0"
 	      "i18n:1999\0" "i18n:1999\0" "i18n:1999\0" "i18n:1999\0"
 	      "i18n:1999\0" "i18n:1999\0" "i18n:1999\0" "i18n:1999\0"
 	      "i18n:1999" },
-    { string: _nl_C_codeset }
+    { .string = _nl_C_codeset }
   }
 };
Index: locale/C-measurement.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-measurement.c,v
retrieving revision 1.7
diff -u -r1.7 C-measurement.c
--- locale/C-measurement.c	28 Aug 2002 23:11:04 -0000	1.7
+++ locale/C-measurement.c	16 Dec 2002 01:16:54 -0000
@@ -33,7 +33,7 @@
   0,
   2,
   {
-    { string: "\1" },
-    { string: _nl_C_codeset }
+    { .string = "\1" },
+    { .string = _nl_C_codeset }
   }
 };
Index: locale/C-messages.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-messages.c,v
retrieving revision 1.17
diff -u -r1.17 C-messages.c
--- locale/C-messages.c	28 Aug 2002 23:11:04 -0000	1.17
+++ locale/C-messages.c	16 Dec 2002 01:16:54 -0000
@@ -33,10 +33,10 @@
   0,
   5,
   {
-    { string: "^[yY]" },
-    { string: "^[nN]" },
-    { string: "" },
-    { string: "" },
-    { string: _nl_C_codeset }
+    { .string = "^[yY]" },
+    { .string = "^[nN]" },
+    { .string = "" },
+    { .string = "" },
+    { .string = _nl_C_codeset }
   }
 };
Index: locale/C-monetary.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-monetary.c,v
retrieving revision 1.25
diff -u -r1.25 C-monetary.c
--- locale/C-monetary.c	28 Aug 2002 23:11:04 -0000	1.25
+++ locale/C-monetary.c	16 Dec 2002 01:16:54 -0000
@@ -37,51 +37,51 @@
   0,
   46,
   {
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: "-" },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: "" },
-    { string: "" },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { string: not_available },
-    { word: 10101 },
-    { word: 99991231 },
-    { word: 10101 },
-    { word: 99991231 },
-    { word: 1 },
-    { word: (unsigned int) L'\0' },
-    { word: (unsigned int) L'\0' },
-    { string: _nl_C_codeset }
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = "-" },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = "" },
+    { .string = "" },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .string = not_available },
+    { .word = 10101 },
+    { .word = 99991231 },
+    { .word = 10101 },
+    { .word = 99991231 },
+    { .word = 1 },
+    { .word = (unsigned int) L'\0' },
+    { .word = (unsigned int) L'\0' },
+    { .string = _nl_C_codeset }
   }
 };
Index: locale/C-name.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-name.c,v
retrieving revision 1.7
diff -u -r1.7 C-name.c
--- locale/C-name.c	28 Aug 2002 23:11:04 -0000	1.7
+++ locale/C-name.c	16 Dec 2002 01:16:54 -0000
@@ -33,12 +33,12 @@
   0,
   7,
   {
-    { string: "%p%t%g%t%m%t%f" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: _nl_C_codeset }
+    { .string = "%p%t%g%t%m%t%f" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = _nl_C_codeset }
   }
 };
Index: locale/C-numeric.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-numeric.c,v
retrieving revision 1.22
diff -u -r1.22 C-numeric.c
--- locale/C-numeric.c	28 Aug 2002 23:11:04 -0000	1.22
+++ locale/C-numeric.c	16 Dec 2002 01:16:54 -0000
@@ -30,11 +30,11 @@
   0,
   6,
   {
-    { string: "." },
-    { string: "" },
-    { string: "" },
-    { word: (unsigned int) L'.' },
-    { word: (unsigned int) L'\0' },
-    { string: _nl_C_codeset }
+    { .string = "." },
+    { .string = "" },
+    { .string = "" },
+    { .word = (unsigned int) L'.' },
+    { .word = (unsigned int) L'\0' },
+    { .string = _nl_C_codeset }
   }
 };
Index: locale/C-paper.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-paper.c,v
retrieving revision 1.8
diff -u -r1.8 C-paper.c
--- locale/C-paper.c	28 Aug 2002 23:11:04 -0000	1.8
+++ locale/C-paper.c	16 Dec 2002 01:16:54 -0000
@@ -33,8 +33,8 @@
   0,
   3,
   {
-    { word: 297 },
-    { word: 210 },
-    { string: _nl_C_codeset }
+    { .word = 297 },
+    { .word = 210 },
+    { .string = _nl_C_codeset }
   }
 };
Index: locale/C-telephone.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-telephone.c,v
retrieving revision 1.7
diff -u -r1.7 C-telephone.c
--- locale/C-telephone.c	28 Aug 2002 23:11:04 -0000	1.7
+++ locale/C-telephone.c	16 Dec 2002 01:16:54 -0000
@@ -33,10 +33,10 @@
   0,
   5,
   {
-    { string: "+%c %a %l" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: _nl_C_codeset }
+    { .string = "+%c %a %l" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = _nl_C_codeset }
   }
 };
Index: locale/C-time.c
===================================================================
RCS file: /cvs/glibc/libc/locale/C-time.c,v
retrieving revision 1.25
diff -u -r1.25 C-time.c
--- locale/C-time.c	28 Aug 2002 23:11:04 -0000	1.25
+++ locale/C-time.c	16 Dec 2002 01:16:55 -0000
@@ -32,116 +32,116 @@
   0,
   111,
   {
-    { string: "Sun" },
-    { string: "Mon" },
-    { string: "Tue" },
-    { string: "Wed" },
-    { string: "Thu" },
-    { string: "Fri" },
-    { string: "Sat" },
-    { string: "Sunday" },
-    { string: "Monday" },
-    { string: "Tuesday" },
-    { string: "Wednesday" },
-    { string: "Thursday" },
-    { string: "Friday" },
-    { string: "Saturday" },
-    { string: "Jan" },
-    { string: "Feb" },
-    { string: "Mar" },
-    { string: "Apr" },
-    { string: "May" },
-    { string: "Jun" },
-    { string: "Jul" },
-    { string: "Aug" },
-    { string: "Sep" },
-    { string: "Oct" },
-    { string: "Nov" },
-    { string: "Dec" },
-    { string: "January" },
-    { string: "February" },
-    { string: "March" },
-    { string: "April" },
-    { string: "May" },
-    { string: "June" },
-    { string: "July" },
-    { string: "August" },
-    { string: "September" },
-    { string: "October" },
-    { string: "November" },
-    { string: "December" },
-    { string: "AM" },
-    { string: "PM" },
-    { string: "%a %b %e %H:%M:%S %Y" },
-    { string: "%m/%d/%y" },
-    { string: "%H:%M:%S" },
-    { string: "%I:%M:%S %p" },
-    { string: NULL },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { string: "" },
-    { word: 0 },
-    { string: "" },
-    { wstr: (const uint32_t *) L"Sun" },
-    { wstr: (const uint32_t *) L"Mon" },
-    { wstr: (const uint32_t *) L"Tue" },
-    { wstr: (const uint32_t *) L"Wed" },
-    { wstr: (const uint32_t *) L"Thu" },
-    { wstr: (const uint32_t *) L"Fri" },
-    { wstr: (const uint32_t *) L"Sat" },
-    { wstr: (const uint32_t *) L"Sunday" },
-    { wstr: (const uint32_t *) L"Monday" },
-    { wstr: (const uint32_t *) L"Tuesday" },
-    { wstr: (const uint32_t *) L"Wednesday" },
-    { wstr: (const uint32_t *) L"Thursday" },
-    { wstr: (const uint32_t *) L"Friday" },
-    { wstr: (const uint32_t *) L"Saturday" },
-    { wstr: (const uint32_t *) L"Jan" },
-    { wstr: (const uint32_t *) L"Feb" },
-    { wstr: (const uint32_t *) L"Mar" },
-    { wstr: (const uint32_t *) L"Apr" },
-    { wstr: (const uint32_t *) L"May" },
-    { wstr: (const uint32_t *) L"Jun" },
-    { wstr: (const uint32_t *) L"Jul" },
-    { wstr: (const uint32_t *) L"Aug" },
-    { wstr: (const uint32_t *) L"Sep" },
-    { wstr: (const uint32_t *) L"Oct" },
-    { wstr: (const uint32_t *) L"Nov" },
-    { wstr: (const uint32_t *) L"Dec" },
-    { wstr: (const uint32_t *) L"January" },
-    { wstr: (const uint32_t *) L"February" },
-    { wstr: (const uint32_t *) L"March" },
-    { wstr: (const uint32_t *) L"April" },
-    { wstr: (const uint32_t *) L"May" },
-    { wstr: (const uint32_t *) L"June" },
-    { wstr: (const uint32_t *) L"July" },
-    { wstr: (const uint32_t *) L"August" },
-    { wstr: (const uint32_t *) L"September" },
-    { wstr: (const uint32_t *) L"October" },
-    { wstr: (const uint32_t *) L"November" },
-    { wstr: (const uint32_t *) L"December" },
-    { wstr: (const uint32_t *) L"AM" },
-    { wstr: (const uint32_t *) L"PM" },
-    { wstr: (const uint32_t *) L"%a %b %e %H:%M:%S %Y" },
-    { wstr: (const uint32_t *) L"%m/%d/%y" },
-    { wstr: (const uint32_t *) L"%H:%M:%S" },
-    { wstr: (const uint32_t *) L"%I:%M:%S %p" },
-    { wstr: (const uint32_t *) L"" },
-    { wstr: (const uint32_t *) L"" },
-    { wstr: (const uint32_t *) L"" },
-    { wstr: (const uint32_t *) L"" },
-    { wstr: (const uint32_t *) L"" },
-    { string: "\7" },
-    { word: 19971130 },
-    { string: "\4" },
-    { string: "\7" },
-    { string: "\1" },
-    { string: "\1" },
-    { string: "" },
-    { string: "%a %b %e %H:%M:%S %Z %Y" },
-    { wstr: (const uint32_t *) L"%a %b %e %H:%M:%S %Z %Y" },
-    { string: _nl_C_codeset }
+    { .string = "Sun" },
+    { .string = "Mon" },
+    { .string = "Tue" },
+    { .string = "Wed" },
+    { .string = "Thu" },
+    { .string = "Fri" },
+    { .string = "Sat" },
+    { .string = "Sunday" },
+    { .string = "Monday" },
+    { .string = "Tuesday" },
+    { .string = "Wednesday" },
+    { .string = "Thursday" },
+    { .string = "Friday" },
+    { .string = "Saturday" },
+    { .string = "Jan" },
+    { .string = "Feb" },
+    { .string = "Mar" },
+    { .string = "Apr" },
+    { .string = "May" },
+    { .string = "Jun" },
+    { .string = "Jul" },
+    { .string = "Aug" },
+    { .string = "Sep" },
+    { .string = "Oct" },
+    { .string = "Nov" },
+    { .string = "Dec" },
+    { .string = "January" },
+    { .string = "February" },
+    { .string = "March" },
+    { .string = "April" },
+    { .string = "May" },
+    { .string = "June" },
+    { .string = "July" },
+    { .string = "August" },
+    { .string = "September" },
+    { .string = "October" },
+    { .string = "November" },
+    { .string = "December" },
+    { .string = "AM" },
+    { .string = "PM" },
+    { .string = "%a %b %e %H:%M:%S %Y" },
+    { .string = "%m/%d/%y" },
+    { .string = "%H:%M:%S" },
+    { .string = "%I:%M:%S %p" },
+    { .string = NULL },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .string = "" },
+    { .word = 0 },
+    { .string = "" },
+    { .wstr = (const uint32_t *) L"Sun" },
+    { .wstr = (const uint32_t *) L"Mon" },
+    { .wstr = (const uint32_t *) L"Tue" },
+    { .wstr = (const uint32_t *) L"Wed" },
+    { .wstr = (const uint32_t *) L"Thu" },
+    { .wstr = (const uint32_t *) L"Fri" },
+    { .wstr = (const uint32_t *) L"Sat" },
+    { .wstr = (const uint32_t *) L"Sunday" },
+    { .wstr = (const uint32_t *) L"Monday" },
+    { .wstr = (const uint32_t *) L"Tuesday" },
+    { .wstr = (const uint32_t *) L"Wednesday" },
+    { .wstr = (const uint32_t *) L"Thursday" },
+    { .wstr = (const uint32_t *) L"Friday" },
+    { .wstr = (const uint32_t *) L"Saturday" },
+    { .wstr = (const uint32_t *) L"Jan" },
+    { .wstr = (const uint32_t *) L"Feb" },
+    { .wstr = (const uint32_t *) L"Mar" },
+    { .wstr = (const uint32_t *) L"Apr" },
+    { .wstr = (const uint32_t *) L"May" },
+    { .wstr = (const uint32_t *) L"Jun" },
+    { .wstr = (const uint32_t *) L"Jul" },
+    { .wstr = (const uint32_t *) L"Aug" },
+    { .wstr = (const uint32_t *) L"Sep" },
+    { .wstr = (const uint32_t *) L"Oct" },
+    { .wstr = (const uint32_t *) L"Nov" },
+    { .wstr = (const uint32_t *) L"Dec" },
+    { .wstr = (const uint32_t *) L"January" },
+    { .wstr = (const uint32_t *) L"February" },
+    { .wstr = (const uint32_t *) L"March" },
+    { .wstr = (const uint32_t *) L"April" },
+    { .wstr = (const uint32_t *) L"May" },
+    { .wstr = (const uint32_t *) L"June" },
+    { .wstr = (const uint32_t *) L"July" },
+    { .wstr = (const uint32_t *) L"August" },
+    { .wstr = (const uint32_t *) L"September" },
+    { .wstr = (const uint32_t *) L"October" },
+    { .wstr = (const uint32_t *) L"November" },
+    { .wstr = (const uint32_t *) L"December" },
+    { .wstr = (const uint32_t *) L"AM" },
+    { .wstr = (const uint32_t *) L"PM" },
+    { .wstr = (const uint32_t *) L"%a %b %e %H:%M:%S %Y" },
+    { .wstr = (const uint32_t *) L"%m/%d/%y" },
+    { .wstr = (const uint32_t *) L"%H:%M:%S" },
+    { .wstr = (const uint32_t *) L"%I:%M:%S %p" },
+    { .wstr = (const uint32_t *) L"" },
+    { .wstr = (const uint32_t *) L"" },
+    { .wstr = (const uint32_t *) L"" },
+    { .wstr = (const uint32_t *) L"" },
+    { .wstr = (const uint32_t *) L"" },
+    { .string = "\7" },
+    { .word = 19971130 },
+    { .string = "\4" },
+    { .string = "\7" },
+    { .string = "\1" },
+    { .string = "\1" },
+    { .string = "" },
+    { .string = "%a %b %e %H:%M:%S %Z %Y" },
+    { .wstr = (const uint32_t *) L"%a %b %e %H:%M:%S %Z %Y" },
+    { .string = _nl_C_codeset }
   }
 };

-- 
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]