wchar.h (132565) | wchar.h (133564) |
---|---|
1/*- 2 * Copyright (c)1999 Citrus Project, 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c)1999 Citrus Project, 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/include/wchar.h 132565 2004-07-23 02:29:37Z tjr $ | 26 * $FreeBSD: head/include/wchar.h 133564 2004-08-12 12:19:11Z tjr $ |
27 */ 28 29/*- 30 * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. 31 * All rights reserved. 32 * 33 * This code is derived from software contributed to The NetBSD Foundation 34 * by Julian Coleman. --- 31 unchanged lines hidden (view full) --- 66 67#ifndef _WCHAR_H_ 68#define _WCHAR_H_ 69 70#include <sys/cdefs.h> 71#include <sys/_null.h> 72#include <sys/_types.h> 73#include <machine/_limits.h> | 27 */ 28 29/*- 30 * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc. 31 * All rights reserved. 32 * 33 * This code is derived from software contributed to The NetBSD Foundation 34 * by Julian Coleman. --- 31 unchanged lines hidden (view full) --- 66 67#ifndef _WCHAR_H_ 68#define _WCHAR_H_ 69 70#include <sys/cdefs.h> 71#include <sys/_null.h> 72#include <sys/_types.h> 73#include <machine/_limits.h> |
74#include <_ctype.h> |
|
74 75#ifndef _MBSTATE_T_DECLARED 76typedef __mbstate_t mbstate_t; 77#define _MBSTATE_T_DECLARED 78#endif 79 80#ifndef _SIZE_T_DECLARED 81typedef __size_t size_t; --- 119 unchanged lines hidden (view full) --- 201unsigned long long 202 wcstoull(const wchar_t * __restrict, wchar_t ** __restrict, int); 203#endif 204#endif /* __ISO_C_VISIBLE >= 1999 */ 205 206#if __XSI_VISIBLE 207int wcswidth(const wchar_t *, size_t); 208int wcwidth(wchar_t); | 75 76#ifndef _MBSTATE_T_DECLARED 77typedef __mbstate_t mbstate_t; 78#define _MBSTATE_T_DECLARED 79#endif 80 81#ifndef _SIZE_T_DECLARED 82typedef __size_t size_t; --- 119 unchanged lines hidden (view full) --- 202unsigned long long 203 wcstoull(const wchar_t * __restrict, wchar_t ** __restrict, int); 204#endif 205#endif /* __ISO_C_VISIBLE >= 1999 */ 206 207#if __XSI_VISIBLE 208int wcswidth(const wchar_t *, size_t); 209int wcwidth(wchar_t); |
210#define wcwidth(_c) __wcwidth(_c) |
|
209#endif 210 211#if __BSD_VISIBLE 212wchar_t *fgetwln(struct __sFILE * __restrict, size_t * __restrict); 213size_t mbsnrtowcs(wchar_t * __restrict, const char ** __restrict, size_t, 214 size_t, mbstate_t * __restrict); 215size_t wcsnrtombs(char * __restrict, const wchar_t ** __restrict, size_t, 216 size_t, mbstate_t * __restrict); 217size_t wcslcat(wchar_t *, const wchar_t *, size_t); 218size_t wcslcpy(wchar_t *, const wchar_t *, size_t); 219#endif 220__END_DECLS 221 222#endif /* !_WCHAR_H_ */ | 211#endif 212 213#if __BSD_VISIBLE 214wchar_t *fgetwln(struct __sFILE * __restrict, size_t * __restrict); 215size_t mbsnrtowcs(wchar_t * __restrict, const char ** __restrict, size_t, 216 size_t, mbstate_t * __restrict); 217size_t wcsnrtombs(char * __restrict, const wchar_t ** __restrict, size_t, 218 size_t, mbstate_t * __restrict); 219size_t wcslcat(wchar_t *, const wchar_t *, size_t); 220size_t wcslcpy(wchar_t *, const wchar_t *, size_t); 221#endif 222__END_DECLS 223 224#endif /* !_WCHAR_H_ */ |