2003-01-03  Andreas Jaeger  <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>

	* resolv/res_libc.c: Provide declaration for __res_init_weak and
	reorder declarations.

2003-01-03  Art Haas  <ahaas@airmail.net>

	* localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
	initiailzer syntax to C99.
	* localedata/tests-mbwc/dat_iswalpha.c: Likewise.
	* localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
	* localedata/tests-mbwc/dat_iswctype.c: Likewise.
	* localedata/tests-mbwc/dat_iswdigit.c: Likewise.
	* localedata/tests-mbwc/dat_iswgraph.c: Likewise.
	* localedata/tests-mbwc/dat_iswlower.c: Likewise.
	* localedata/tests-mbwc/dat_iswprint.c: Likewise.
	* localedata/tests-mbwc/dat_iswpunct.c: Likewise.
	* localedata/tests-mbwc/dat_iswspace.c: Likewise.
	* localedata/tests-mbwc/dat_iswupper.c: Likewise.
	* localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
	* localedata/tests-mbwc/dat_mblen.c: Likewise.
	* localedata/tests-mbwc/dat_mbrlen.c: Likewise.
	* localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
	* localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
	* localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
	* localedata/tests-mbwc/dat_mbtowc.c: Likewise.
	* localedata/tests-mbwc/dat_strcoll.c: Likewise.
	* localedata/tests-mbwc/dat_strfmon.c: Likewise.
	* localedata/tests-mbwc/dat_strxfrm.c: Likewise.
	* localedata/tests-mbwc/dat_swscanf.c: Likewise.
	* localedata/tests-mbwc/dat_towctrans.c: Likewise.
	* localedata/tests-mbwc/dat_towlower.c: Likewise.
	* localedata/tests-mbwc/dat_towupper.c: Likewise.
	* localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
	* localedata/tests-mbwc/dat_wcscat.c: Likewise.
	* localedata/tests-mbwc/dat_wcschr.c: Likewise.
	* localedata/tests-mbwc/dat_wcscmp.c: Likewise.
	* localedata/tests-mbwc/dat_wcscoll.c: Likewise.
	* localedata/tests-mbwc/dat_wcscpy.c: Likewise.
	* localedata/tests-mbwc/dat_wcscspn.c: Likewise.
	* localedata/tests-mbwc/dat_wcslen.c: Likewise.
	* localedata/tests-mbwc/dat_wcsncat.c: Likewise.
	* localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
	* localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
	* localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
	* localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
	* localedata/tests-mbwc/dat_wcsspn.c: Likewise.
	* localedata/tests-mbwc/dat_wcsstr.c: Likewise.
	* localedata/tests-mbwc/dat_wcstod.c: Likewise.
	* localedata/tests-mbwc/dat_wcstok.c: Likewise.
	* localedata/tests-mbwc/dat_wcstombs.c: Likewise.
	* localedata/tests-mbwc/dat_wcswidth.c: Likewise.
	* localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
	* localedata/tests-mbwc/dat_wctob.c: Likewise.
	* localedata/tests-mbwc/dat_wctomb.c: Likewise.
	* localedata/tests-mbwc/dat_wctrans.c: Likewise.
	* localedata/tests-mbwc/dat_wctype.c: Likewise.
	* localedata/tests-mbwc/dat_wcwidth.c: Likewise.

2003-01-03  Richard Henderson  <rth@redhat.com>

	* sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
	(inline_syscall_r0_constraint): New.
	(inline_syscall[0-6]): Use them.
This commit is contained in:
Ulrich Drepper 2003-01-03 22:32:41 +00:00
parent 733f25e6d3
commit 1cb990bc19
59 changed files with 298 additions and 202 deletions

View File

@ -1,3 +1,68 @@
2003-01-03 Andreas Jaeger <aj@suse.de>, Jakub Jelinek <jakub@redhat.com>
* resolv/res_libc.c: Provide declaration for __res_init_weak and
reorder declarations.
2003-01-03 Art Haas <ahaas@airmail.net>
* localedata/tests-mbwc/dat_iswalnum.c: Convert GCC extension
initiailzer syntax to C99.
* localedata/tests-mbwc/dat_iswalpha.c: Likewise.
* localedata/tests-mbwc/dat_iswcntrl.c: Likewise.
* localedata/tests-mbwc/dat_iswctype.c: Likewise.
* localedata/tests-mbwc/dat_iswdigit.c: Likewise.
* localedata/tests-mbwc/dat_iswgraph.c: Likewise.
* localedata/tests-mbwc/dat_iswlower.c: Likewise.
* localedata/tests-mbwc/dat_iswprint.c: Likewise.
* localedata/tests-mbwc/dat_iswpunct.c: Likewise.
* localedata/tests-mbwc/dat_iswspace.c: Likewise.
* localedata/tests-mbwc/dat_iswupper.c: Likewise.
* localedata/tests-mbwc/dat_iswxdigit.c: Likewise.
* localedata/tests-mbwc/dat_mblen.c: Likewise.
* localedata/tests-mbwc/dat_mbrlen.c: Likewise.
* localedata/tests-mbwc/dat_mbrtowc.c: Likewise.
* localedata/tests-mbwc/dat_mbsrtowcs.c: Likewise.
* localedata/tests-mbwc/dat_mbstowcs.c: Likewise.
* localedata/tests-mbwc/dat_mbtowc.c: Likewise.
* localedata/tests-mbwc/dat_strcoll.c: Likewise.
* localedata/tests-mbwc/dat_strfmon.c: Likewise.
* localedata/tests-mbwc/dat_strxfrm.c: Likewise.
* localedata/tests-mbwc/dat_swscanf.c: Likewise.
* localedata/tests-mbwc/dat_towctrans.c: Likewise.
* localedata/tests-mbwc/dat_towlower.c: Likewise.
* localedata/tests-mbwc/dat_towupper.c: Likewise.
* localedata/tests-mbwc/dat_wcrtomb.c: Likewise.
* localedata/tests-mbwc/dat_wcscat.c: Likewise.
* localedata/tests-mbwc/dat_wcschr.c: Likewise.
* localedata/tests-mbwc/dat_wcscmp.c: Likewise.
* localedata/tests-mbwc/dat_wcscoll.c: Likewise.
* localedata/tests-mbwc/dat_wcscpy.c: Likewise.
* localedata/tests-mbwc/dat_wcscspn.c: Likewise.
* localedata/tests-mbwc/dat_wcslen.c: Likewise.
* localedata/tests-mbwc/dat_wcsncat.c: Likewise.
* localedata/tests-mbwc/dat_wcsncmp.c: Likewise.
* localedata/tests-mbwc/dat_wcsncpy.c: Likewise.
* localedata/tests-mbwc/dat_wcspbrk.c: Likewise.
* localedata/tests-mbwc/dat_wcsrtombs.c: Likewise.
* localedata/tests-mbwc/dat_wcsspn.c: Likewise.
* localedata/tests-mbwc/dat_wcsstr.c: Likewise.
* localedata/tests-mbwc/dat_wcstod.c: Likewise.
* localedata/tests-mbwc/dat_wcstok.c: Likewise.
* localedata/tests-mbwc/dat_wcstombs.c: Likewise.
* localedata/tests-mbwc/dat_wcswidth.c: Likewise.
* localedata/tests-mbwc/dat_wcsxfrm.c: Likewise.
* localedata/tests-mbwc/dat_wctob.c: Likewise.
* localedata/tests-mbwc/dat_wctomb.c: Likewise.
* localedata/tests-mbwc/dat_wctrans.c: Likewise.
* localedata/tests-mbwc/dat_wctype.c: Likewise.
* localedata/tests-mbwc/dat_wcwidth.c: Likewise.
2003-01-03 Richard Henderson <rth@redhat.com>
* sysdeps/unix/sysv/linux/alpha/sysdep.h (inline_syscall_r0_asm): New.
(inline_syscall_r0_constraint): New.
(inline_syscall[0-6]): Use them.
2003-01-03 Jakub Jelinek <jakub@redhat.com>
* sysdeps/generic/ldsodefs.h (_dl_allocate_tls, _dl_deallocate_tls):

View File

@ -1,3 +1,7 @@
2003-01-03 Andreas Jaeger <aj@suse.de>
* sysdeps/pthread/bits/libc-tsd.h: Declare weak_extern functions.
2003-01-03 Jakub Jelinek <jakub@redhat.com>
* Makefile ($(objpfx)libpthread.so): Depend on ld.so.

View File

@ -1,5 +1,5 @@
/* libc-internal interface for thread-specific data. LinuxThreads version.
Copyright (C) 1997,98,99,2001,02 Free Software Foundation, Inc.
Copyright (C) 1997-2002, 2003 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -33,6 +33,10 @@
# include <bits/libc-lock.h>
# ifndef SHARED
extern void ** __pthread_internal_tsd_address (int);
extern void *__pthread_internal_tsd_get (int);
extern int __pthread_internal_tsd_set (int, const void *);
weak_extern (__pthread_internal_tsd_address)
weak_extern (__pthread_internal_tsd_get)
weak_extern (__pthread_internal_tsd_set)

View File

@ -40,7 +40,7 @@ TST_ISW_LOC (ALNUM, alnum) = {
{ { 0x00F7 }, { 0,1,0 } }, /* division */
{ { 0x00F8 }, { 0,0,0 } }, /* o stroke */
{ { 0x00FF }, { 0,0,0 } }, /* y dia */
{ is_last: 1 } /* last element */
{ .is_last = 1 } /* last element */
}
},
{ TST_ISW_REC (de_UTF8, alnum)
@ -71,7 +71,7 @@ TST_ISW_LOC (ALNUM, alnum) = {
{ { 0x00F7 }, { 0,1,0 } }, /* division */
{ { 0x00F8 }, { 0,0,0 } }, /* o stroke */
{ { 0x00FF }, { 0,0,0 } }, /* y dia */
{ is_last: 1 } /* last element */
{ .is_last = 1 } /* last element */
}
},
{ TST_ISW_REC (enUS, alnum)
@ -96,7 +96,7 @@ TST_ISW_LOC (ALNUM, alnum) = {
{ { 0x007E }, { 0,1,0 } },
{ { 0x007F }, { 0,1,0 } },
{ { 0x0080 }, { 0,1,0 } },
{ is_last: 1 } /* last element */
{ .is_last = 1 } /* last element */
}
},
{ TST_ISW_REC (eucJP, alnum)
@ -185,7 +185,7 @@ TST_ISW_LOC (ALNUM, alnum) = {
{ { 0xFF71 }, { 0,0,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,0,0 } }, /* HALF KATA MI */
#endif
{ is_last: 1 } /* last element */
{ .is_last = 1 } /* last element */
}
},
{ TST_ISW_REC (end, alnum) }

View File

@ -40,7 +40,7 @@ TST_ISW_LOC (ALPHA, alpha) = {
{ { 0x00F7 }, { 0,1,0 } }, /* division */
{ { 0x00F8 }, { 0,0,0 } }, /* o stroke */
{ { 0x00FF }, { 0,0,0 } }, /* y dia */
{ is_last: 1 } /* last element */
{ .is_last = 1 } /* last element */
}
},
{ TST_ISW_REC (enUS, alpha)
@ -65,7 +65,7 @@ TST_ISW_LOC (ALPHA, alpha) = {
{ { 0x007E }, { 0,1,0 } },
{ { 0x007F }, { 0,1,0 } },
{ { 0x0080 }, { 0,1,0 } }, /* 20 */
{ is_last: 1 } /* last element */
{ .is_last = 1 } /* last element */
}
},
{ TST_ISW_REC (eucJP, alpha)
@ -158,7 +158,7 @@ TST_ISW_LOC (ALPHA, alpha) = {
{ { 0xFF71 }, { 0,0,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,0,0 } }, /* HALF KATA MI */
#endif
{ is_last: 1 } /* last element */
{ .is_last = 1 } /* last element */
}
},
{ TST_ISW_REC (end, alpha) }

View File

@ -40,7 +40,7 @@ TST_ISW_LOC (CNTRL, cntrl) = {
{ { 0x00F7 }, { 0,1,0 } }, /* division */
{ { 0x00F8 }, { 0,1,0 } }, /* o stroke */
{ { 0x00FF }, { 0,1,0 } }, /* y dia */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (enUS, cntrl)
@ -65,7 +65,7 @@ TST_ISW_LOC (CNTRL, cntrl) = {
{ { 0x007E }, { 0,1,0 } },
{ { 0x007F }, { 0,0,0 } },
{ { 0x0080 }, { 0,0,0 } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (eucJP, cntrl)
@ -114,7 +114,7 @@ TST_ISW_LOC (CNTRL, cntrl) = {
{ { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
{ { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC(end, cntrl) }

View File

@ -174,7 +174,7 @@ TST_ISWCTYPE tst_iswctype_loc [] = {
{ { 0x00FF, "upper" }, { 0,1,0 } }, /* y dia */
{ { 0x00B9, "xdigit" }, { 0,1,0 } }, /* SUP 1 */
{ { 0x00BC, "xdigit" }, { 0,1,0 } }, /* 1/4 */
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -383,7 +383,7 @@ TST_ISWCTYPE tst_iswctype_loc [] = {
{ { 0x007F, "xdigit" }, { 0,1,0 } },
{ { 0x0080, "xdigit" }, { 0,1,0 } },
{ { 0x0061, "xxxxxx" }, { 0,1,0 } },
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -651,7 +651,7 @@ TST_ISWCTYPE tst_iswctype_loc [] = {
{ { 0x4E06, "jkanji" }, { 0,1,0 } }, /* CJK UNI.IDEO.NON-J */
#endif
{ { 0x4E07, "jkanji" }, { 0,0,0 } }, /* CJK UNI.IDEO. */
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -40,7 +40,7 @@ TST_ISW_LOC (DIGIT, digit) = {
{ { 0x00F7 }, { 0,1,0 } }, /* division */
{ { 0x00F8 }, { 0,1,0 } }, /* o stroke */
{ { 0x00FF }, { 0,1,0 } }, /* y dia */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (enUS, digit)
@ -65,7 +65,7 @@ TST_ISW_LOC (DIGIT, digit) = {
{ { 0x007E }, { 0,1,0 } },
{ { 0x007F }, { 0,1,0 } },
{ { 0x0080 }, { 0,1,0 } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (eucJP, digit)
@ -114,7 +114,7 @@ TST_ISW_LOC (DIGIT, digit) = {
{ { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
{ { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (end, digit) }

View File

@ -44,7 +44,7 @@ TST_ISW_LOC (GRAPH, graph) = {
{ { 0x00F7 }, { 0,0,0 } }, /* division */
{ { 0x00F8 }, { 0,0,0 } }, /* o stroke */
{ { 0x00FF }, { 0,0,0 } }, /* y dia */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (enUS, graph)
@ -69,7 +69,7 @@ TST_ISW_LOC (GRAPH, graph) = {
{ { 0x007E }, { 0,0,0 } },
{ { 0x007F }, { 0,1,0 } },
{ { 0x0080 }, { 0,1,0 } }, /* 20 */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC( eucJP, graph )
@ -156,7 +156,7 @@ TST_ISW_LOC (GRAPH, graph) = {
{ { 0xFF70 }, { 0,0,0 } }, /* HALF KATA PL - */
{ { 0xFF71 }, { 0,0,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,0,0 } }, /* HALF KATA MI */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (end, graph) }

View File

@ -40,7 +40,7 @@ TST_ISW_LOC (LOWER, lower) = {
{ { 0x00F7 }, { 0,1,0 } }, /* division */
{ { 0x00F8 }, { 0,0,0 } }, /* o stroke */
{ { 0x00FF }, { 0,0,0 } }, /* y dia */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (enUS, lower)
@ -65,7 +65,7 @@ TST_ISW_LOC (LOWER, lower) = {
{ { 0x007E }, { 0,1,0 } },
{ { 0x007F }, { 0,1,0 } },
{ { 0x0080 }, { 0,1,0 } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (eucJP, lower)
@ -84,7 +84,7 @@ TST_ISW_LOC (LOWER, lower) = {
{ { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
{ { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (end, lower) }

View File

@ -44,7 +44,7 @@ TST_ISW_LOC (PRINT, print) = {
{ { 0x00F7 }, { 0,0,0 } }, /* division */
{ { 0x00F8 }, { 0,0,0 } }, /* o stroke */
{ { 0x00FF }, { 0,0,0 } }, /* y dia */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (enUS, print)
@ -72,7 +72,7 @@ TST_ISW_LOC (PRINT, print) = {
#ifdef NO_WAIVER
{ { 0x3042 }, { 0,1,0 } }, /* <WAIVER> */
#endif
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (eucJP, print)
@ -159,7 +159,7 @@ TST_ISW_LOC (PRINT, print) = {
{ { 0xFF70 }, { 0,0,0 } }, /* HALF KATA PL - */
{ { 0xFF71 }, { 0,0,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,0,0 } }, /* HALF KATA MI */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (end, print) }

View File

@ -44,7 +44,7 @@ TST_ISW_LOC (PUNCT, punct) = {
{ { 0x00F7 }, { 0,0,0 } }, /* division */
{ { 0x00F8 }, { 0,1,0 } }, /* o stroke */
{ { 0x00FF }, { 0,1,0 } }, /* y dia */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (enUS, punct)
@ -69,7 +69,7 @@ TST_ISW_LOC (PUNCT, punct) = {
{ { 0x007E }, { 0,0,0 } },
{ { 0x007F }, { 0,1,0 } },
{ { 0x0080 }, { 0,1,0 } }, /* 20 */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (eucJP, punct)
@ -144,7 +144,7 @@ TST_ISW_LOC (PUNCT, punct) = {
{ { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
{ { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (end, punct) }

View File

@ -40,7 +40,7 @@ TST_ISW_LOC (SPACE, space) = {
{ { 0x00F7 }, { 0,1,0 } }, /* division */
{ { 0x00F8 }, { 0,1,0 } }, /* o stroke */
{ { 0x00FF }, { 0,1,0 } }, /* y dia */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (enUS, space)
@ -69,7 +69,7 @@ TST_ISW_LOC (SPACE, space) = {
{ { 0x007E }, { 0,1,0 } },
{ { 0x007F }, { 0,1,0 } },
{ { 0x0080 }, { 0,1,0 } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (eucJP, space)
@ -118,7 +118,7 @@ TST_ISW_LOC (SPACE, space) = {
{ { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
{ { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (end, space) }

View File

@ -40,7 +40,7 @@ TST_ISW_LOC (UPPER, upper) = {
{ { 0x00F7 }, { 0,1,0 } }, /* division */
{ { 0x00F8 }, { 0,1,0 } }, /* o stroke */
{ { 0x00FF }, { 0,1,0 } }, /* y dia */
{ is_last: 1 } /* Last entry. */
{ .is_last = 1 } /* Last entry. */
}
},
{ TST_ISW_REC (enUS, upper)
@ -65,7 +65,7 @@ TST_ISW_LOC (UPPER, upper) = {
{ { 0x007E }, { 0,1,0 } },
{ { 0x007F }, { 0,1,0 } },
{ { 0x0080 }, { 0,1,0 } },
{ is_last: 1 } /* Last entry. */
{ .is_last = 1 } /* Last entry. */
}
},
{ TST_ISW_REC (eucJP, upper)
@ -83,7 +83,7 @@ TST_ISW_LOC (UPPER, upper) = {
{ { 0xFF6F }, { 0,1,0 } }, /* HALF KATA tu */
{ { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
{ is_last: 1 } /* Last entry. */
{ .is_last = 1 } /* Last entry. */
}
},
{ TST_ISW_REC (end, upper) }

View File

@ -40,7 +40,7 @@ TST_ISW_LOC (XDIGIT, xdigit) = {
{ { 0x00F7 }, { 0,1,0 } }, /* division */
{ { 0x00F8 }, { 0,1,0 } }, /* o stroke */
{ { 0x00FF }, { 0,1,0 } }, /* y dia */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC( enUS, xdigit )
@ -65,7 +65,7 @@ TST_ISW_LOC (XDIGIT, xdigit) = {
{ { 0x007E }, { 0,1,0 } },
{ { 0x007F }, { 0,1,0 } },
{ { 0x0080 }, { 0,1,0 } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC( eucJP, xdigit )
@ -114,7 +114,7 @@ TST_ISW_LOC (XDIGIT, xdigit) = {
{ { 0xFF70 }, { 0,1,0 } }, /* HALF KATA PL - */
{ { 0xFF71 }, { 0,1,0 } }, /* HALF KATA A */
{ { 0xFF9E }, { 0,1,0 } }, /* HALF KATA MI */
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_ISW_REC (end, xdigit) }

View File

@ -68,7 +68,7 @@ TST_MBLEN tst_mblen_loc [] = {
/* 06: a null pointer. */
{ { 0, "", USE_MBCURMAX }, { 0, 0, 0 } },
/* Last element. */
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -87,7 +87,7 @@ TST_MBLEN tst_mblen_loc [] = {
/* 06: a null pointer. */
{ { 0, "", USE_MBCURMAX }, { 0, 0, 0 } },
/* Last element. */
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -106,7 +106,7 @@ TST_MBLEN tst_mblen_loc [] = {
/* 06: a null pointer. */
{ { 0, "", USE_MBCURMAX }, { 0, 0, 0 } },
/* Last element. */
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -52,7 +52,7 @@ TST_MBRLEN tst_mbrlen_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -90,7 +90,7 @@ TST_MBRLEN tst_mbrlen_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -150,7 +150,7 @@ TST_MBRLEN tst_mbrlen_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -52,7 +52,7 @@ TST_MBRTOWC tst_mbrtowc_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
#if 0
@ -92,7 +92,7 @@ TST_MBRTOWC tst_mbrtowc_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -130,7 +130,7 @@ TST_MBRTOWC tst_mbrtowc_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
#endif

View File

@ -45,7 +45,7 @@ TST_MBSRTOWCS tst_mbsrtowcs_loc [] = {
}
},
{ /*----------------- END -----------------*/
is_last: 1
.is_last = 1
}
}
},
@ -86,7 +86,7 @@ TST_MBSRTOWCS tst_mbsrtowcs_loc [] = {
}
},
{ /*----------------- END -----------------*/
is_last: 1
.is_last = 1
}
}
},
@ -127,7 +127,7 @@ TST_MBSRTOWCS tst_mbsrtowcs_loc [] = {
}
},
{ /*----------------- END -----------------*/
is_last: 1
.is_last = 1
}
}
},

View File

@ -44,7 +44,7 @@ TST_MBSTOWCS tst_mbstowcs_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -82,7 +82,7 @@ TST_MBSTOWCS tst_mbstowcs_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -130,7 +130,7 @@ TST_MBSTOWCS tst_mbstowcs_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -146,7 +146,7 @@ TST_MBTOWC tst_mbtowc_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -232,7 +232,7 @@ TST_MBTOWC tst_mbtowc_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -332,7 +332,7 @@ TST_MBTOWC tst_mbtowc_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -54,7 +54,7 @@ TST_STRCOLL tst_strcoll_loc [] = {
{ /*input.*/ { "B", "ä" }, /* #9 */
/*expect*/ { 0,0,+1, },
},
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{
@ -109,7 +109,7 @@ TST_STRCOLL tst_strcoll_loc [] = {
/*expect*/ { EINVAL,0,0, },
},
#endif
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{
@ -153,7 +153,7 @@ TST_STRCOLL tst_strcoll_loc [] = {
/*expect*/ { EINVAL,0,0, },
},
#endif
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{

View File

@ -93,7 +93,7 @@ TST_STRFMON tst_strfmon_loc [] = {
/*inp*/ { 33, "%(#5n|%!(#5i", -1234.561 },
/*exp*/ { 0,1,27, "( 1.234,56 EUR)|( 1.234,56)"},
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -174,7 +174,7 @@ TST_STRFMON tst_strfmon_loc [] = {
/*inp*/ { 32, "%(#5n|%!(#5i", -1234.561 },
/*exp*/ { 0,1,24, "($ 1,234.56)|( 1,234.56)" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -255,7 +255,7 @@ TST_STRFMON tst_strfmon_loc [] = {
/*inp*/ { 32, "%(#5n|%!(#5i", -1234.561 },
/*exp*/ { 0,1,19, "(\241\357 1,235)|( 1,235)" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -50,7 +50,7 @@ TST_STRXFRM tst_strxfrm_loc [] = {
/*inp*/ { "abc", "\244\241\244\242", 13, 9 }, /* #07 */
/*exp*/ { 0,0,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -81,7 +81,7 @@ TST_STRXFRM tst_strxfrm_loc [] = {
/*exp*/ { EINVAL,0,0, },
},
#endif
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -108,7 +108,7 @@ TST_STRXFRM tst_strxfrm_loc [] = {
/*exp*/ { EINVAL,0,0, },
},
#endif
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -71,7 +71,7 @@ TST_SWSCANF tst_swscanf_loc [] =
},
},
/*---------------------------------------------------*/
{ is_last: 1} /* Last element. */
{ .is_last = 1} /* Last element. */
}
},
{
@ -112,7 +112,7 @@ TST_SWSCANF tst_swscanf_loc [] =
},
},
/*---------------------------------------------------*/
{ is_last: 1} /* Last element. */
{ .is_last = 1} /* Last element. */
}
},
{
@ -172,7 +172,7 @@ TST_SWSCANF tst_swscanf_loc [] =
},
#endif
/*---------------------------------------------------*/
{ is_last: 1} /* Last element. */
{ .is_last = 1} /* Last element. */
}
},
{

View File

@ -46,7 +46,7 @@ TST_TOWCTRANS tst_towctrans_loc [] = {
{ { 0x007F, "tolower" }, { 0, 1,0x007F } },
{ { 0x0061, "toupper" }, { 0, 1,0x0041 } },
{ { 0x0041, "tolower" }, { 0, 1,0x0061 } },
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -60,7 +60,7 @@ TST_TOWCTRANS tst_towctrans_loc [] = {
{ { 0x0080, "tolower" }, { 0, 1,0x0080 } },
{ { 0x00EC, "toupper" }, { 0, 1,0x00CC } },
{ { 0x00CC, "tolower" }, { 0, 1,0x00EC } },
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -74,7 +74,7 @@ TST_TOWCTRANS tst_towctrans_loc [] = {
{ { 0x007F, "tolower" }, { 0, 1,0x007F } },
{ { 0x0061, "toupper" }, { 0, 1,0x0041 } },
{ { 0x0041, "tolower" }, { 0, 1,0x0061 } },
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -84,7 +84,7 @@ TST_TOWCTRANS tst_towctrans_loc [] = {
{ { 0xFF41, "toupper" }, { 0, 1,0xFF21 } },
{ { 0x30A1, "tojhira" }, { 0, 1,0x3041 } },
{ { 0x3041, "tojkata" }, { 0, 1,0x30A1 } },
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -18,7 +18,7 @@ TST_TOW_LOC (LOWER, lower) = {
{ { 0x0080 }, { 0, 1, 0x0080 } },
{ { 0x00CC }, { 0, 1, 0x00EC } },
{ { 0x00EC }, { 0, 1, 0x00EC } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_TOW_REC (enUS, lower)
@ -27,7 +27,7 @@ TST_TOW_LOC (LOWER, lower) = {
{ { 0x007F }, { 0, 1, 0x007F } },
{ { 0x0041 }, { 0, 1, 0x0061 } },
{ { 0x0061 }, { 0, 1, 0x0061 } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_TOW_REC (eucJP, lower)
@ -36,7 +36,7 @@ TST_TOW_LOC (LOWER, lower) = {
{ { 0x0080 }, { 0, 1, 0x0080 } },
{ { 0xFF21 }, { 0, 1, 0xFF41 } },
{ { 0xFF41 }, { 0, 1, 0xFF41 } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_TOW_REC (end, lower) }

View File

@ -18,7 +18,7 @@ TST_TOW_LOC (UPPER, upper) = {
{ { 0x0080 }, { 0, 1, 0x0080 } },
{ { 0x00EC }, { 0, 1, 0x00CC } },
{ { 0x00CC }, { 0, 1, 0x00CC } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_TOW_REC (enUS, upper)
@ -27,7 +27,7 @@ TST_TOW_LOC (UPPER, upper) = {
{ { 0x0080 }, { 0, 1, 0x0080 } },
{ { 0x0041 }, { 0, 1, 0x0041 } },
{ { 0x0061 }, { 0, 1, 0x0041 } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_TOW_REC (eucJP, upper)
@ -36,7 +36,7 @@ TST_TOW_LOC (UPPER, upper) = {
{ { 0x007F }, { 0, 1, 0x007F } },
{ { 0xFF41 }, { 0, 1, 0xFF21 } },
{ { 0xFF21 }, { 0, 1, 0xFF21 } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ TST_TOW_REC (end, upper) }

View File

@ -31,7 +31,7 @@ TST_WCRTOMB tst_wcrtomb_loc [] = {
{ /*input.*/ { 0, 0x0092, 0,0 },
/*expect*/ { 0, 1,1, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -58,7 +58,7 @@ TST_WCRTOMB tst_wcrtomb_loc [] = {
{ /*input.*/ { 0, 0x0092, 0,0 },
/*expect*/ { 0, 1,1, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -84,7 +84,7 @@ TST_WCRTOMB tst_wcrtomb_loc [] = {
{ /*input.*/ { 0, 0x008E, 0,0 },
/*expect*/ { 0, 0,0, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -43,7 +43,7 @@ TST_WCSCAT tst_wcscat_loc [] = {
{ 0, 0, 0,
{ 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
},
{is_last: 1}
{.is_last = 1}
}
},
{
@ -73,7 +73,7 @@ TST_WCSCAT tst_wcscat_loc [] = {
{ 0, 0, 0,
{ 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
},
{is_last: 1}
{.is_last = 1}
}
},
{
@ -103,7 +103,7 @@ TST_WCSCAT tst_wcscat_loc [] = {
{ 0, 0, 0,
{ 0x0001,0xFFFF,0x0080,0x0090,0x0000 } },
},
{is_last: 1}
{.is_last = 1}
}
},
{

View File

@ -31,7 +31,7 @@ TST_WCSCHR tst_wcschr_loc [] = {
{ /*input.*/ { { 0x0000,0x00C2,0x00C3,0x0000 }, 0x0000 }, /* #7 */
/*expect*/ { 0,0,0 },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcschr, TST_LOC_enUS },
@ -57,7 +57,7 @@ TST_WCSCHR tst_wcschr_loc [] = {
{ /*input.*/ { { 0x0000,0x0042,0x0043,0x0000 }, 0x0000 }, /* #7 */
/*expect*/ { 0,0,0 },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcschr, TST_LOC_eucJP },
@ -83,7 +83,7 @@ TST_WCSCHR tst_wcschr_loc [] = {
{ /*input.*/ { { 0x0000,0x3042,0x3043,0x0000 }, 0x0000 }, /* #7 */
/*expect*/ { 0,0,0 },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcschr, TST_LOC_end } }

View File

@ -48,7 +48,7 @@ TST_WCSCMP tst_wcscmp_loc [] = {
{ 0x00D1,0x00D2,0x0000 }, }, /* #8 */
/*expect*/ { 0,1,1, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -86,7 +86,7 @@ TST_WCSCMP tst_wcscmp_loc [] = {
{ 0x0041,0x0042,0x0000 }, }, /* #8 */
/*expect*/ { 0,1,1, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -124,7 +124,7 @@ TST_WCSCMP tst_wcscmp_loc [] = {
{ 0x3041,0x3042,0x0000 }, }, /* #8 */
/*expect*/ { 0,1,1, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -83,7 +83,7 @@ TST_WCSCOLL tst_wcscoll_loc [] = {
{ 0x00E1,0x0092,0x00E9,0x0000 }, }, /* #10 */
/*expect*/ { 0,0,0, -1, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcscoll, TST_LOC_enUS },
@ -154,7 +154,7 @@ TST_WCSCOLL tst_wcscoll_loc [] = {
/*expect*/ { 0,0,0, 0, },
},
#endif
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcscoll, TST_LOC_eucJP },
@ -199,7 +199,7 @@ TST_WCSCOLL tst_wcscoll_loc [] = {
{ 0x30FF,0x3092,0x3049,0x0000 }, }, /* #10 */
/*expect*/ { 0,0,0, +1, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcscoll, TST_LOC_end } }

View File

@ -14,7 +14,7 @@ TST_WCSCPY tst_wcscpy_loc [] = {
{ 0,0,0, { 0x00F1,0x00F2,0x00F3,0x0000, } }, },
{ { { 0x0000,0x00F2,0x00F3,0x0000 }, }, /* 2 */
{ 0,0,0, { 0x0000, } }, },
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcscpy, TST_LOC_enUS },
@ -23,7 +23,7 @@ TST_WCSCPY tst_wcscpy_loc [] = {
{ 0,0,0, { 0x0041,0x0082,0x0043,0x0000, } }, },
{ { { 0x0000,0x0082,0x0043,0x0000 }, }, /* 2 */
{ 0,0,0, { 0x0000, } }, },
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcscpy, TST_LOC_eucJP },
@ -32,7 +32,7 @@ TST_WCSCPY tst_wcscpy_loc [] = {
{ 0,0,0, { 0x3041,0x0092,0x3043,0x0000, } }, },
{ { { 0x0000,0x0092,0x3043,0x0000 }, }, /* 2 */
{ 0,0,0, { 0x0000, } }, },
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcscpy, TST_LOC_end }}

View File

@ -55,7 +55,7 @@ TST_WCSCSPN tst_wcscspn_loc [] = {
{ 0x00D1,0x00D3,0x00D4,0x0000 }, }, /* #11 */
/*expect*/ { 0,1,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcscspn, TST_LOC_enUS },
@ -104,7 +104,7 @@ TST_WCSCSPN tst_wcscspn_loc [] = {
{ 0x0041,0x0043,0x0044,0x0000 }, }, /* #11 */
/*expect*/ { 0,1,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcscspn, TST_LOC_eucJP },
@ -153,7 +153,7 @@ TST_WCSCSPN tst_wcscspn_loc [] = {
{ 0x3041,0x3043,0x3044,0x0000 }, }, /* #11 */
/*expect*/ { 0,1,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcscspn, TST_LOC_end }}

View File

@ -29,7 +29,7 @@ TST_WCSLEN tst_wcslen_loc [] = {
{ /*input.*/ { { 0x0000 } }, /* #02 */
/*expect*/ { 0,1,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcslen, TST_LOC_enUS },
@ -40,7 +40,7 @@ TST_WCSLEN tst_wcslen_loc [] = {
{ /*input.*/ { { 0x0000 } }, /* #02 */
/*expect*/ { 0,1,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcslen, TST_LOC_eucJP },
@ -51,7 +51,7 @@ TST_WCSLEN tst_wcslen_loc [] = {
{ /*input.*/ { { 0x0000 } }, /* #02 */
/*expect*/ { 0,1,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twcslen, TST_LOC_end }}

View File

@ -58,7 +58,7 @@ TST_WCSNCAT tst_wcsncat_loc [] = {
{ 0, 0, 0,
{ 0x00E1,0x00E2,0x0000 } },
},
{is_last: 1}
{.is_last = 1}
}
},
{
@ -103,7 +103,7 @@ TST_WCSNCAT tst_wcsncat_loc [] = {
{ 0, 0, 0,
{ 0x0051,0x0052,0x0000 } },
},
{is_last: 1}
{.is_last = 1}
}
},
{
@ -145,7 +145,7 @@ TST_WCSNCAT tst_wcsncat_loc [] = {
{ 0, 0, 0,
{ 0x3051,0x3052,0x0000 } },
},
{is_last: 1}
{.is_last = 1}
}
},
{

View File

@ -47,7 +47,7 @@ TST_WCSNCMP tst_wcsncmp_loc [] = {
{ 0x00D1,0x00D2,0x0000 }, 4 }, /* #09 */
/*expect*/ { 0,1,0x00D3, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -89,7 +89,7 @@ TST_WCSNCMP tst_wcsncmp_loc [] = {
{ 0x0041,0x0042,0x0000 }, 4 }, /* #09 */
/*expect*/ { 0,1,0x0043, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -131,7 +131,7 @@ TST_WCSNCMP tst_wcsncmp_loc [] = {
{ 0x3041,0x3042,0x0000 }, 4 }, /* #09 */
/*expect*/ { 0,1,0x3043, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -46,7 +46,7 @@ TST_WCSNCPY tst_wcsncpy_loc [] = {
{{ { 0x0000,0x00D2,0x00D3,0x0000 }, 3 },
{ 0,0,0, { 0x0000,0x0000,0x0000,0x9999,0x9999,0x9999,0x0000 } },
},
{is_last: 1}
{.is_last = 1}
}
},
{
@ -76,7 +76,7 @@ TST_WCSNCPY tst_wcsncpy_loc [] = {
{{ { 0x0000,0x0042,0x0043,0x0000 }, 3 },
{ 0,0,0, { 0x0000,0x0000,0x0000,0x9999,0x9999,0x9999,0x0000 } },
},
{is_last: 1}
{.is_last = 1}
}
},
{
@ -106,7 +106,7 @@ TST_WCSNCPY tst_wcsncpy_loc [] = {
{{ { 0x0000,0x3042,0x3043,0x0000 }, 3 },
{ 0,0,0, { 0x0000,0x0000,0x0000,0x9999,0x9999,0x9999,0x0000 } },
},
{is_last: 1}
{.is_last = 1}
}
},
{

View File

@ -63,7 +63,7 @@ TST_WCSPBRK tst_wcspbrk_loc [] = {
{ 0x0000 }, }, /* #11 */
/*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -113,7 +113,7 @@ TST_WCSPBRK tst_wcspbrk_loc [] = {
{ 0x0000 }, }, /* #11 */
/*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -163,7 +163,7 @@ TST_WCSPBRK tst_wcspbrk_loc [] = {
{ 0x0000 }, }, /* #11 */
/*expect*/ { 0,1,(wchar_t *)NULL, 0x0000 },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -75,7 +75,7 @@ TST_WCSRTOMBS tst_wcsrtombs_loc [] = {
{ /*input.*/ { 0,1, { 0x0000 }, 5, 0, 0 },
/*expect*/ { 0,1,0, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -136,7 +136,7 @@ TST_WCSRTOMBS tst_wcsrtombs_loc [] = {
{ /*input.*/ { 0,1, { 0x0000 }, 5, 0, 0 },
/*expect*/ { 0,1,0, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -198,7 +198,7 @@ TST_WCSRTOMBS tst_wcsrtombs_loc [] = {
{ /*input.*/ { 0,1, { 0x0000 }, 5, 0, 0 },
/*expect*/ { 0,1,0, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -58,7 +58,7 @@ TST_WCSSPN tst_wcsspn_loc [] = {
{ 0x00D2,0x00D1,0x0000 }, }, /* #12 */
/*expect*/ { 0,1,2, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -112,7 +112,7 @@ TST_WCSSPN tst_wcsspn_loc [] = {
{ 0x0042,0x0041,0x0000 }, }, /* #12 */
/*expect*/ { 0,1,2, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -166,7 +166,7 @@ TST_WCSSPN tst_wcsspn_loc [] = {
{ 0x3042,0x3041,0x0000 }, }, /* #12 */
/*expect*/ { 0,1,2, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -62,7 +62,7 @@ TST_WCSSTR tst_wcsstr_loc [] = {
{ 0x0000 }, }, /* #11 */
/*expect*/ { 0,0,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -112,7 +112,7 @@ TST_WCSSTR tst_wcsstr_loc [] = {
{ 0x0000 }, }, /* #11 */
/*expect*/ { 0,0,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -162,7 +162,7 @@ TST_WCSSTR tst_wcsstr_loc [] = {
{ 0x0000 }, }, /* #11 */
/*expect*/ { 0,0,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -32,7 +32,7 @@ TST_WCSTOD tst_wcstod_loc [] = {
/*E*/
{ 0,1,123.456, 123.456, 0x0040 }
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -52,7 +52,7 @@ TST_WCSTOD tst_wcstod_loc [] = {
/*E*/
{ 0,1,123.456, 123.456, 0x0040 }
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -65,7 +65,7 @@ TST_WCSTOD tst_wcstod_loc [] = {
/*E*/
{ 0,1,123.456, 123.456, 0x0040 }
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -51,7 +51,7 @@ TST_WCSTOK tst_wcstok_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -88,7 +88,7 @@ TST_WCSTOK tst_wcstok_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -125,7 +125,7 @@ TST_WCSTOK tst_wcstok_loc [] = {
}
}
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -74,7 +74,7 @@ TST_WCSTOMBS tst_wcstombs_loc [] = {
{ /*input.*/ { 0,1, { 0x0000 }, 5 },
/*expect*/ { 0,1,0, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -135,7 +135,7 @@ TST_WCSTOMBS tst_wcstombs_loc [] = {
{ /*input.*/ { 0,1, { 0x0000 }, 5 },
/*expect*/ { 0,1,0, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -197,7 +197,7 @@ TST_WCSTOMBS tst_wcstombs_loc [] = {
{ /*input.*/ { 0,1, { 0x0000 }, 5 },
/*expect*/ { 0,1,0, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -74,7 +74,7 @@ TST_WCSWIDTH tst_wcswidth_loc [] = {
{ /*input.*/ { { 0x00C1,0x3044,0x0000 }, 2 }, /* 20 */
/*expect*/ { 0,1,-1 },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -158,7 +158,7 @@ TST_WCSWIDTH tst_wcswidth_loc [] = {
{ /*input.*/ { { 0x0041,0x3044,0x0000 }, 2 }, /* 20 */
/*expect*/ { 0,1,-1 },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -232,7 +232,7 @@ TST_WCSWIDTH tst_wcswidth_loc [] = {
{ /*input.*/ { { 0x0041,0x3044,0x0000 }, 2 }, /* 20 */
/*expect*/ { 0,1,3 },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -37,7 +37,7 @@ TST_WCSXFRM tst_wcsxfrm_loc [] = {
{ /*inp*/ { { 0x00DC,0x0000 }, { 0x00E4,0x0000 }, 7, 7 }, /* #05 */
/*exp*/ { 0, 0,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -62,7 +62,7 @@ TST_WCSXFRM tst_wcsxfrm_loc [] = {
/*exp*/ { EINVAL, 1,(size_t)-1, },
},
#endif
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -89,7 +89,7 @@ TST_WCSXFRM tst_wcsxfrm_loc [] = {
/*exp*/ { EINVAL, 1,(size_t)-1, },
},
#endif
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -17,7 +17,7 @@ TST_WCTOB tst_wctob_loc [] = {
{ { 0x0080 }, { 0, 1, 0x80 } },
{ { 0x00C4 }, { 0, 1, 0xC4 } },
{ { 0x30C4 }, { 0, 1, EOF } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ { Twctob, TST_LOC_enUS },
@ -34,7 +34,7 @@ TST_WCTOB tst_wctob_loc [] = {
{ { 0x00C4 }, { 0, 1, EOF } },
#endif
{ { 0x30C4 }, { 0, 1, EOF } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ { Twctob, TST_LOC_eucJP },
@ -46,7 +46,7 @@ TST_WCTOB tst_wctob_loc [] = {
{ { 0x00FF }, { 0, 1, EOF } },
{ { 0x00C4 }, { 0, 1, EOF } },
{ { 0x30C4 }, { 0, 1, EOF } },
{ is_last: 1 } /* Last element. */
{ .is_last = 1 } /* Last element. */
}
},
{ { Twctob, TST_LOC_end } }

View File

@ -77,7 +77,7 @@ TST_WCTOMB tst_wctomb_loc [] = {
{ /*input.*/ { 0, 0x0000 },
/*expect*/ { 0,0,0, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -104,7 +104,7 @@ TST_WCTOMB tst_wctomb_loc [] = {
{ /*input.*/ { 0, 0x0000 },
/*expect*/ { 0,0,0, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -130,7 +130,7 @@ TST_WCTOMB tst_wctomb_loc [] = {
{ /*input.*/ { 0, 0x008E },
/*expect*/ { 0,0,0, "" },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -36,7 +36,7 @@ TST_WCTRANS tst_wctrans_loc [] = {
{ /*inp*/ { "xxxxx" }, /* #6 */
/*exp*/ { 0,1,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twctrans, TST_LOC_enUS },
@ -59,7 +59,7 @@ TST_WCTRANS tst_wctrans_loc [] = {
{ /*inp*/ { "xxxxx" }, /* #6 */
/*exp*/ { 0,1,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twctrans, TST_LOC_eucJP },
@ -88,7 +88,7 @@ TST_WCTRANS tst_wctrans_loc [] = {
{ /*inp*/ { "tojkata" }, /* #8 */
/*exp*/ { 0,0,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twctrans, TST_LOC_end }}

View File

@ -66,7 +66,7 @@ TST_WCTYPE tst_wctype_loc [] = {
{ /*inp*/ { "special" }, /* #16 */
/*exp*/ { 0,1,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twctype, TST_LOC_enUS },
@ -119,7 +119,7 @@ TST_WCTYPE tst_wctype_loc [] = {
{ /*inp*/ { "special" }, /* #16 */
/*exp*/ { 0,1,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twctype, TST_LOC_eucJP },
@ -178,7 +178,7 @@ TST_WCTYPE tst_wctype_loc [] = {
{ /*inp*/ { "jdigit" }, /* #18 */
/*exp*/ { 0,0,0, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{ { Twctype, TST_LOC_end }}

View File

@ -38,7 +38,7 @@ TST_WCWIDTH tst_wcwidth_loc [] = {
/*exp*/ { 0, 1,EOF, },
},
#endif
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -65,7 +65,7 @@ TST_WCWIDTH tst_wcwidth_loc [] = {
{ /*inp*/ { 0x3041 }, /* #07 */
/*exp*/ { 0, 1,-1, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{
@ -101,7 +101,7 @@ TST_WCWIDTH tst_wcwidth_loc [] = {
{ /*inp*/ { 0x3041 }, /* #07 */
/*exp*/ { 0, 1,2, },
},
{ is_last: 1 }
{ .is_last = 1 }
}
},
{

View File

@ -37,7 +37,7 @@ __pthread_cond_broadcast_2_0 (cond)
if (newcond == NULL)
return ENOMEM;
*newcond = (struct pthread_cond_t) PTHREAD_COND_INITIALIZER;
*newcond = (pthread_cond_t) PTHREAD_COND_INITIALIZER;
atomic_write_barrier ();

View File

@ -37,7 +37,7 @@ __pthread_cond_signal_2_0 (cond)
if (newcond == NULL)
return ENOMEM;
*newcond = (struct pthread_cond_t) PTHREAD_COND_INITIALIZER;
*newcond = (pthread_cond_t) PTHREAD_COND_INITIALIZER;
atomic_write_barrier ();

View File

@ -39,7 +39,7 @@ __pthread_cond_timedwait_2_0 (cond, mutex, abstime)
if (newcond == NULL)
return ENOMEM;
*newcond = (struct pthread_cond_t) PTHREAD_COND_INITIALIZER;
*newcond = (pthread_cond_t) PTHREAD_COND_INITIALIZER;
atomic_write_barrier ();

View File

@ -38,7 +38,7 @@ __pthread_cond_wait_2_0 (cond, mutex)
if (newcond == NULL)
return ENOMEM;
*newcond = (struct pthread_cond_t) PTHREAD_COND_INITIALIZER;
*newcond = (pthread_cond_t) PTHREAD_COND_INITIALIZER;
atomic_write_barrier ();

View File

@ -92,7 +92,8 @@ compat_symbol (libc, _res, _res, GLIBC_2_0);
#if SHLIB_COMPAT(libc, GLIBC_2_0, GLIBC_2_2)
# undef res_init
strong_alias (__res_init, __res_init_weak);
extern int __res_init_weak (void);
weak_extern (__res_init_weak);
strong_alias (__res_init, __res_init_weak);
compat_symbol (libc, __res_init_weak, res_init, GLIBC_2_0);
#endif

View File

@ -87,44 +87,64 @@
"$1", "$2", "$3", "$4", "$5", "$6", "$7", "$8", \
"$22", "$23", "$24", "$25", "$27", "$28", "memory"
/* If TLS is in use, we have a conflict between the PAL_rduniq primitive,
as modeled within GCC, and explicit use of the R0 register. If we use
the register via the asm, the scheduler may place the PAL_rduniq insn
before we've copied the data from R0 into _sc_ret. If this happens
we'll get a reload abort, since R0 is live at the same time it is
needed for the PAL_rduniq.
Solve this by using the "v" constraint instead of an asm for the syscall
output. We don't do this unconditionally to allow compilation with
older compilers. */
#ifdef USE_TLS
#define inline_syscall_r0_asm
#define inline_syscall_r0_constraint "v"
#else
#define inline_syscall_r0_asm __asm__("$0")
#define inline_syscall_r0_constraint "r"
#endif
/* It is moderately important optimization-wise to limit the lifetime
of the hard-register variables as much as possible. Thus we copy
in/out as close to the asm as possible. */
#define inline_syscall0(name) \
{ \
register long _sc_0 __asm__("$0"); \
register long _sc_19 __asm__("$19"); \
\
_sc_0 = __NR_##name; \
__asm__("callsys # %0 %1 <= %2" \
: "=r"(_sc_0), "=r"(_sc_19) \
: "0"(_sc_0) \
: inline_syscall_clobbers, \
"$16", "$17", "$18", "$20", "$21"); \
_sc_ret = _sc_0, _sc_err = _sc_19; \
#define inline_syscall0(name, args...) \
{ \
register long _sc_0 inline_syscall_r0_asm; \
register long _sc_19 __asm__("$19"); \
\
_sc_0 = __NR_##name; \
__asm__("callsys # %0 %1 <= %2" \
: "=" inline_syscall_r0_constraint (_sc_0), \
"=r"(_sc_19) \
: "0"(_sc_0) \
: inline_syscall_clobbers, \
"$16", "$17", "$18", "$20", "$21"); \
_sc_ret = _sc_0, _sc_err = _sc_19; \
}
#define inline_syscall1(name,arg1) \
{ \
register long _sc_0 __asm__("$0"); \
register long _sc_16 __asm__("$16"); \
register long _sc_19 __asm__("$19"); \
\
_sc_0 = __NR_##name; \
_sc_16 = (long) (arg1); \
__asm__("callsys # %0 %1 <= %2 %3" \
: "=r"(_sc_0), "=r"(_sc_19), \
"=r"(_sc_16) \
: "0"(_sc_0), "2"(_sc_16) \
: inline_syscall_clobbers, \
"$17", "$18", "$20", "$21"); \
_sc_ret = _sc_0, _sc_err = _sc_19; \
#define inline_syscall1(name,arg1) \
{ \
register long _sc_0 inline_syscall_r0_asm; \
register long _sc_16 __asm__("$16"); \
register long _sc_19 __asm__("$19"); \
\
_sc_0 = __NR_##name; \
_sc_16 = (long) (arg1); \
__asm__("callsys # %0 %1 <= %2 %3" \
: "=" inline_syscall_r0_constraint (_sc_0), \
"=r"(_sc_19), "=r"(_sc_16) \
: "0"(_sc_0), "2"(_sc_16) \
: inline_syscall_clobbers, \
"$17", "$18", "$20", "$21"); \
_sc_ret = _sc_0, _sc_err = _sc_19; \
}
#define inline_syscall2(name,arg1,arg2) \
{ \
register long _sc_0 __asm__("$0"); \
register long _sc_0 inline_syscall_r0_asm; \
register long _sc_16 __asm__("$16"); \
register long _sc_17 __asm__("$17"); \
register long _sc_19 __asm__("$19"); \
@ -133,8 +153,8 @@
_sc_16 = (long) (arg1); \
_sc_17 = (long) (arg2); \
__asm__("callsys # %0 %1 <= %2 %3 %4" \
: "=r"(_sc_0), "=r"(_sc_19), \
"=r"(_sc_16), "=r"(_sc_17) \
: "=" inline_syscall_r0_constraint (_sc_0), \
"=r"(_sc_19), "=r"(_sc_16), "=r"(_sc_17) \
: "0"(_sc_0), "2"(_sc_16), "3"(_sc_17) \
: inline_syscall_clobbers, \
"$18", "$20", "$21"); \
@ -143,7 +163,7 @@
#define inline_syscall3(name,arg1,arg2,arg3) \
{ \
register long _sc_0 __asm__("$0"); \
register long _sc_0 inline_syscall_r0_asm; \
register long _sc_16 __asm__("$16"); \
register long _sc_17 __asm__("$17"); \
register long _sc_18 __asm__("$18"); \
@ -154,8 +174,9 @@
_sc_17 = (long) (arg2); \
_sc_18 = (long) (arg3); \
__asm__("callsys # %0 %1 <= %2 %3 %4 %5" \
: "=r"(_sc_0), "=r"(_sc_19), \
"=r"(_sc_16), "=r"(_sc_17), "=r"(_sc_18) \
: "=" inline_syscall_r0_constraint (_sc_0), \
"=r"(_sc_19), "=r"(_sc_16), "=r"(_sc_17), \
"=r"(_sc_18) \
: "0"(_sc_0), "2"(_sc_16), "3"(_sc_17), \
"4"(_sc_18) \
: inline_syscall_clobbers, "$20", "$21"); \
@ -164,7 +185,7 @@
#define inline_syscall4(name,arg1,arg2,arg3,arg4) \
{ \
register long _sc_0 __asm__("$0"); \
register long _sc_0 inline_syscall_r0_asm; \
register long _sc_16 __asm__("$16"); \
register long _sc_17 __asm__("$17"); \
register long _sc_18 __asm__("$18"); \
@ -176,8 +197,9 @@
_sc_18 = (long) (arg3); \
_sc_19 = (long) (arg4); \
__asm__("callsys # %0 %1 <= %2 %3 %4 %5 %6" \
: "=r"(_sc_0), "=r"(_sc_19), \
"=r"(_sc_16), "=r"(_sc_17), "=r"(_sc_18) \
: "=" inline_syscall_r0_constraint (_sc_0), \
"=r"(_sc_19), "=r"(_sc_16), "=r"(_sc_17), \
"=r"(_sc_18) \
: "0"(_sc_0), "2"(_sc_16), "3"(_sc_17), \
"4"(_sc_18), "1"(_sc_19) \
: inline_syscall_clobbers, "$20", "$21"); \
@ -186,7 +208,7 @@
#define inline_syscall5(name,arg1,arg2,arg3,arg4,arg5) \
{ \
register long _sc_0 __asm__("$0"); \
register long _sc_0 inline_syscall_r0_asm; \
register long _sc_16 __asm__("$16"); \
register long _sc_17 __asm__("$17"); \
register long _sc_18 __asm__("$18"); \
@ -200,9 +222,9 @@
_sc_19 = (long) (arg4); \
_sc_20 = (long) (arg5); \
__asm__("callsys # %0 %1 <= %2 %3 %4 %5 %6 %7" \
: "=r"(_sc_0), "=r"(_sc_19), \
"=r"(_sc_16), "=r"(_sc_17), "=r"(_sc_18), \
"=r"(_sc_20) \
: "=" inline_syscall_r0_constraint (_sc_0), \
"=r"(_sc_19), "=r"(_sc_16), "=r"(_sc_17), \
"=r"(_sc_18), "=r"(_sc_20) \
: "0"(_sc_0), "2"(_sc_16), "3"(_sc_17), \
"4"(_sc_18), "1"(_sc_19), "5"(_sc_20) \
: inline_syscall_clobbers, "$21"); \
@ -211,7 +233,7 @@
#define inline_syscall6(name,arg1,arg2,arg3,arg4,arg5,arg6) \
{ \
register long _sc_0 __asm__("$0"); \
register long _sc_0 inline_syscall_r0_asm; \
register long _sc_16 __asm__("$16"); \
register long _sc_17 __asm__("$17"); \
register long _sc_18 __asm__("$18"); \
@ -227,9 +249,9 @@
_sc_20 = (long) (arg5); \
_sc_21 = (long) (arg6); \
__asm__("callsys # %0 %1 <= %2 %3 %4 %5 %6 %7 %8" \
: "=r"(_sc_0), "=r"(_sc_19) \
"=r"(_sc_16), "=r"(_sc_17), "=r"(_sc_18), \
"=r"(_sc_20), "=r"(_sc_21) \
: "=" inline_syscall_r0_constraint (_sc_0), \
"=r"(_sc_19) "=r"(_sc_16), "=r"(_sc_17), \
"=r"(_sc_18), "=r"(_sc_20), "=r"(_sc_21) \
: "0"(_sc_0), "2"(_sc_16), "3"(_sc_17), \
"4"(_sc_18), "1"(_sc_19), "5"(_sc_20), \
"6"(_sc_21) \