Deleted Added
full compact
table.c (231673) table.c (231714)
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Paul Borman at Krystal Technologies.
7 *
8 * Copyright (c) 2011 The FreeBSD Foundation

--- 25 unchanged lines hidden (view full) ---

34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 */
37
38#if defined(LIBC_SCCS) && !defined(lint)
39static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 6/27/93";
40#endif /* LIBC_SCCS and not lint */
41#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Paul Borman at Krystal Technologies.
7 *
8 * Copyright (c) 2011 The FreeBSD Foundation

--- 25 unchanged lines hidden (view full) ---

34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 */
37
38#if defined(LIBC_SCCS) && !defined(lint)
39static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 6/27/93";
40#endif /* LIBC_SCCS and not lint */
41#include <sys/cdefs.h>
42__FBSDID("$FreeBSD: head/lib/libc/locale/table.c 231673 2012-02-14 12:03:23Z theraven $");
42__FBSDID("$FreeBSD: head/lib/libc/locale/table.c 231714 2012-02-14 21:48:46Z dim $");
43
44#include <ctype.h>
45#include <runetype.h>
46#include <wchar.h>
47#include "mblocal.h"
48
49const _RuneLocale _DefaultRuneLocale = {
50 _RUNE_MAGIC_1,

--- 195 unchanged lines hidden (view full) ---

246 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
247 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
248 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
249 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
250 },
251};
252
253#undef _CurrentRuneLocale
43
44#include <ctype.h>
45#include <runetype.h>
46#include <wchar.h>
47#include "mblocal.h"
48
49const _RuneLocale _DefaultRuneLocale = {
50 _RUNE_MAGIC_1,

--- 195 unchanged lines hidden (view full) ---

246 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7,
247 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef,
248 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7,
249 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff,
250 },
251};
252
253#undef _CurrentRuneLocale
254const _RuneLocale *_CurrentRuneLocale = &_DefaultRuneLocale;
254_RuneLocale *_CurrentRuneLocale = (_RuneLocale*)&_DefaultRuneLocale;
255
256_RuneLocale *
257__runes_for_locale(locale_t locale, int *mb_sb_limit)
258{
259 FIX_LOCALE(locale);
260 struct xlocale_ctype *c = XLOCALE_CTYPE(locale);
261 *mb_sb_limit = c->__mb_sb_limit;
262 return c->runes;
263}
255
256_RuneLocale *
257__runes_for_locale(locale_t locale, int *mb_sb_limit)
258{
259 FIX_LOCALE(locale);
260 struct xlocale_ctype *c = XLOCALE_CTYPE(locale);
261 *mb_sb_limit = c->__mb_sb_limit;
262 return c->runes;
263}