Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
Roland McGrath committed Dec 16, 2002
1 parent c2e1311 commit 0274d73
Show file tree
Hide file tree
Showing 26 changed files with 416 additions and 391 deletions.
39 changes: 32 additions & 7 deletions ChangeLog
@@ -1,3 +1,35 @@
2002-12-15 Art Haas <ahaas@airmail.net>

* 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.

2002-12-15 Roland McGrath <roland@redhat.com>

* sysdeps/unix/sysv/linux/readv.c (do_readv): Use prototype defn.
Expand All @@ -18,13 +50,6 @@

* resolv/Versions (libresolv: GLIBC_2.3.2): New set, add __p_rcode.

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

* nscd/connections.c: C99 initializer conversion.
* nscd/grpcache.c: Same.
* nscd/hstcache.c: Same.
* nscd/pwdcache.c: Same.

2002-12-15 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/i386/fcntl.c (do_fcntl): This is the
Expand Down
10 changes: 5 additions & 5 deletions iconv/gconv_conf.c
Expand Up @@ -64,11 +64,11 @@ static struct gconv_module builtin_modules[] =
#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)

Expand Down
4 changes: 2 additions & 2 deletions iconvdata/gap.awk
Expand Up @@ -26,7 +26,7 @@ function tonum(str)
{
if (last)
{
printf (" { start: 0x%04x, end: 0x%04x, idx: %5d },\n",
printf (" { .start = 0x%04x, .end = 0x%04x, .idx = %5d },\n",
first, last, idx);
idx -= u - last - 1;
}
Expand All @@ -35,5 +35,5 @@ function tonum(str)
last = u;
}

END { printf (" { start: 0x%04x, end: 0x%04x, idx: %5d },\n",
END { printf (" { .start = 0x%04x, .end = 0x%04x, .idx = %5d },\n",
first, last, idx); }
2 changes: 1 addition & 1 deletion iconvdata/gen-8bit-gap-1.sh
Expand Up @@ -7,7 +7,7 @@ echo "};"
echo "static const struct gap from_idx[] = {"
sed -ne 's/^<U\(....\)>[[:space:]]*.x[A-Fa-f]..*/\1/p' \
"$@" | sort -u | $AWK -f gap.awk
echo " { start: 0xffff, end: 0xffff, idx: 0 }"
echo " { .start = 0xffff, .end = 0xffff, .idx = 0 }"
echo "};"
echo "static const char iso88597_from_ucs4[] = {"
sed -ne 's/^<U\(....\)>[[:space:]]*.x\([A-Fa-f].\).*/0x\1 0x\2/p' \
Expand Down
2 changes: 1 addition & 1 deletion iconvdata/gen-8bit-gap.sh
Expand Up @@ -7,7 +7,7 @@ echo "};"
echo "static const struct gap from_idx[] = {"
sed -ne 's/^<U\(....\).*/\1/p' \
"$@" | sort -u | $AWK -f gap.awk
echo " { start: 0xffff, end: 0xffff, idx: 0 }"
echo " { .start = 0xffff, .end = 0xffff, .idx = 0 }"
echo "};"
echo "static const char from_ucs4[] = {"
sed -ne 's/^<U\(....\)>[[:space:]]*.x\(..\).*/\1 \2/p' \
Expand Down
26 changes: 13 additions & 13 deletions locale/C-address.c
Expand Up @@ -33,18 +33,18 @@ const struct locale_data _nl_C_LC_ADDRESS attribute_hidden =
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 }
}
};
38 changes: 19 additions & 19 deletions locale/C-collate.c
Expand Up @@ -108,42 +108,42 @@ const struct locale_data _nl_C_LC_COLLATE attribute_hidden =
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 }
}
};

0 comments on commit 0274d73

Please sign in to comment.