table.c (119757) | table.c (121845) |
---|---|
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 * Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#if defined(LIBC_SCCS) && !defined(lint) 38static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 6/27/93"; 39#endif /* LIBC_SCCS and not lint */ 40#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 * Redistribution and use in source and binary forms, with or without --- 24 unchanged lines hidden (view full) --- 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 */ 36 37#if defined(LIBC_SCCS) && !defined(lint) 38static char sccsid[] = "@(#)table.c 8.1 (Berkeley) 6/27/93"; 39#endif /* LIBC_SCCS and not lint */ 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/lib/libc/locale/table.c 119757 2003-09-05 09:01:31Z tjr $"); | 41__FBSDID("$FreeBSD: head/lib/libc/locale/table.c 121845 2003-11-01 05:13:13Z tjr $"); |
42 43#include <ctype.h> 44#include <rune.h> | 42 43#include <ctype.h> 44#include <rune.h> |
45#include <wchar.h> |
|
45 | 46 |
46extern rune_t _none_sgetrune(const char *, size_t, char const **); 47extern int _none_sputrune(rune_t, char *, size_t, char **); | 47extern size_t _none_mbrtowc(wchar_t * __restrict, const char * __restrict, size_t, 48 mbstate_t * __restrict); 49extern size_t _none_wcrtomb(char * __restrict, wchar_t, mbstate_t * __restrict); 50extern size_t __emulated_mbrtowc(wchar_t * __restrict, 51 const char * __restrict, size_t, 52 mbstate_t * __restrict ps); 53extern size_t __emulated_wcrtomb(char * __restrict, wchar_t, 54 mbstate_t * __restrict ps); 55extern rune_t __emulated_sgetrune(const char *, size_t, const char **); 56extern int __emulated_sputrune(rune_t, char *, size_t, char **); |
48 49_RuneLocale _DefaultRuneLocale = { 50 _RUNE_MAGIC_1, 51 "NONE", | 57 58_RuneLocale _DefaultRuneLocale = { 59 _RUNE_MAGIC_1, 60 "NONE", |
52 _none_sgetrune, 53 _none_sputrune, | 61 __emulated_sgetrune, 62 __emulated_sputrune, |
54 0xFFFD, 55 56 { /*00*/ _CTYPE_C, 57 _CTYPE_C, 58 _CTYPE_C, 59 _CTYPE_C, 60 _CTYPE_C, 61 _CTYPE_C, --- 186 unchanged lines hidden (view full) --- 248 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 249 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, 250 }, 251}; 252 253_RuneLocale *_CurrentRuneLocale = &_DefaultRuneLocale; 254 255int __mb_cur_max = 1; | 63 0xFFFD, 64 65 { /*00*/ _CTYPE_C, 66 _CTYPE_C, 67 _CTYPE_C, 68 _CTYPE_C, 69 _CTYPE_C, 70 _CTYPE_C, --- 186 unchanged lines hidden (view full) --- 257 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 258 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, 259 }, 260}; 261 262_RuneLocale *_CurrentRuneLocale = &_DefaultRuneLocale; 263 264int __mb_cur_max = 1; |
256 | 265size_t (*__mbrtowc)(wchar_t * __restrict, const char * __restrict, size_t, 266 mbstate_t * __restrict) = _none_mbrtowc; 267size_t (*__wcrtomb)(char * __restrict, wchar_t, mbstate_t * __restrict) = 268 _none_wcrtomb; |