mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-15 04:20:28 +08:00
0274d73c41
* 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.
40 lines
823 B
Awk
40 lines
823 B
Awk
BEGIN { hv["0"] = 0; hv["1"] = 1; hv["2"] = 2; hv["3"] = 3;
|
|
hv["4"] = 4; hv["5"] = 5; hv["6"] = 6; hv["7"] = 7;
|
|
hv["8"] = 8; hv["9"] = 9; hv["A"] = 10; hv["B"] = 11;
|
|
hv["C"] = 12; hv["D"] = 13; hv["E"] = 14; hv["F"] = 15;
|
|
hv["a"] = 10; hv["b"] = 11; hv["c"] = 12; hv["d"] = 13;
|
|
hv["e"] = 14; hv["f"] = 15;
|
|
|
|
first = 0; last = 0; idx = 0;
|
|
}
|
|
|
|
function tonum(str)
|
|
{
|
|
num=0;
|
|
cnt=1;
|
|
while (cnt <= length(str)) {
|
|
num *= 16;
|
|
num += hv[substr(str,cnt,1)];
|
|
++cnt;
|
|
}
|
|
return num;
|
|
}
|
|
|
|
{
|
|
u = tonum($1);
|
|
if (u - last > 6)
|
|
{
|
|
if (last)
|
|
{
|
|
printf (" { .start = 0x%04x, .end = 0x%04x, .idx = %5d },\n",
|
|
first, last, idx);
|
|
idx -= u - last - 1;
|
|
}
|
|
first = u;
|
|
}
|
|
last = u;
|
|
}
|
|
|
|
END { printf (" { .start = 0x%04x, .end = 0x%04x, .idx = %5d },\n",
|
|
first, last, idx); }
|